Package ca.carleton.gcrc.nunaliit2.couch.replication

Examples of ca.carleton.gcrc.nunaliit2.couch.replication.ReplicationConfiguration


  }
 
  @Override
  public void configurationUpdated(CouchConfig config) {
   
    ReplicationConfiguration c = new ReplicationConfiguration();
   
    c.setReplicationInterval( config.getReplicationInterval() );
   
    // Adjust user name/password
    for(ReplicationRequest request : config.getReplications()) {
      if( request.getSourceUserName() == ReplicationRequest.REMOTE_USER_NAME ) {
        request.setSourceUserName(userName);
      }
      if( request.getSourcePassword() == ReplicationRequest.REMOTE_USER_PASSWORD ) {
        request.setSourcePassword(password);
      }
      if( request.getTargetUserName() == ReplicationRequest.REMOTE_USER_NAME ) {
        request.setTargetUserName(userName);
      }
      if( request.getTargetPassword() == ReplicationRequest.REMOTE_USER_PASSWORD ) {
        request.setTargetPassword(password);
      }
     
      c.addReplication(request);
    }
   
    replicationWorker.configurationUpdated(c);
  }
View Full Code Here


    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

    if( null == couchClient ) {
      throw new ServletException("Replication worker requires a CouchDb client");
    }
   
    try {
      replicationWorker = new ReplicationWorker();
      replicationWorker.setCouchClient(couchClient);
      replicationWorker.start();
     
    } catch (Exception e) {
      throw new ServletException("Error starting replication worker",e);
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.nunaliit2.couch.replication.ReplicationConfiguration

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.