Package ca.carleton.gcrc.couch.client

Examples of ca.carleton.gcrc.couch.client.CouchDbChangeMonitor


  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;
    }
  }
View Full Code Here


      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);
    }
  }
View Full Code Here

    this.mediaDir = mediaDir;
    this.mailNotification = mailNotification;
    this.fileConverters = fileConverters;
   
    noWorkDelayInMs = DELAY_NO_WORK_POLLING;
    CouchDbChangeMonitor changeMonitor = documentDbDesign.getDatabase().getChangeMonitor();
    if( null != changeMonitor ){
      changeMonitor.addChangeListener(this);
      noWorkDelayInMs = DELAY_NO_WORK_MONITOR;
    }
   
    if( null != submissionDbDesign ){
      changeMonitor = submissionDbDesign.getDatabase().getChangeMonitor();
      if( null != changeMonitor ){
        changeMonitor.addChangeListener(this);
      }     
    }
  }
View Full Code Here

    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);
    }
  }
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.couch.client.CouchDbChangeMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.