public DateRobotThread(CouchDesignDocument atlasDesign, Tree clusterTree) throws Exception { this.atlasDesign = atlasDesign; this.clusterTree = clusterTree; noWorkDelayInMs = DELAY_NO_WORK_POLLING; CouchDbChangeMonitor changeMonitor = atlasDesign.getDatabase().getChangeMonitor(); if( null != changeMonitor ){ changeMonitor.addChangeListener(this); noWorkDelayInMs = DELAY_NO_WORK_MONITOR; } }
CouchDbChangeMonitor changeMonitor = documentDbDesign.getDatabase().getChangeMonitor(); if( null != changeMonitor ){ changeMonitor.addChangeListener(this); noWorkDelayInMs = DELAY_NO_WORK_MONITOR; changeMonitor = submissionDbDesign.getDatabase().getChangeMonitor(); if( null != changeMonitor ){ changeMonitor.addChangeListener(this);
public AgreementRobotThread(AgreementRobotSettings settings) throws Exception { this.atlasName = settings.getAtlasName(); this.documentDbDesignDocument = settings.getDocumentDesignDocument(); this.userDbDesignDocument = settings.getUserDb().getDesignDocument("nunaliit_user"); agreementRole = "nunaliit_agreement_atlas"; if( null != atlasName ){ agreementRole = "nunaliit_agreement_" + atlasName; } noWorkDelay = DELAY_NO_WORK_POLLING; CouchDbChangeMonitor changeMonitor = documentDbDesignDocument.getDatabase().getChangeMonitor(); if( null != changeMonitor ){ noWorkDelay = DELAY_NO_WORK_MONITOR; changeMonitor.addChangeListener(this); } }
public SubmissionRobotThread(SubmissionRobotSettings settings) throws Exception { this.submissionDbDesignDocument = settings.getSubmissionDesignDocument(); this.documentDbDesignDocument = settings.getDocumentDesignDocument(); this.userDb = settings.getUserDb(); this.mailNotifier = settings.getMailNotifier(); if( null != settings.getAtlasName() ){ adminRole = settings.getAtlasName() + "_administrator"; vetterRole = settings.getAtlasName() + "_vetter"; } noWorkDelay = DELAY_NO_WORK_POLLING; CouchDbChangeMonitor changeMonitor = submissionDbDesignDocument.getDatabase().getChangeMonitor(); if( null != changeMonitor ){ noWorkDelay = DELAY_NO_WORK_MONITOR; changeMonitor.addChangeListener(this); } }