Package net.sf.katta.protocol

Examples of net.sf.katta.protocol.ReplicationReport


      throw new IllegalArgumentException(shardName + " is not a valid shard name");
    }
  }

  protected boolean canAndShouldRegulateReplication(InteractionProtocol protocol, IndexMetaData indexMD) {
    ReplicationReport replicationReport = protocol.getReplicationReport(indexMD);
    return canAndShouldRegulateReplication(protocol, replicationReport);
  }
View Full Code Here


    protocol.updateIndexMD(indexMD);
  }

  protected void handleDeploymentComplete(MasterContext context, List<OperationResult> results, IndexMetaData indexMD,
          boolean newIndex) {
    ReplicationReport replicationReport = context.getProtocol().getReplicationReport(indexMD);
    if (replicationReport.isDeployed()) {
      indexMD.setDeployError(null);
      updateShardMetaData(results, indexMD);
      // we ignore possible shard errors
      if (canAndShouldRegulateReplication(context.getProtocol(), replicationReport)) {
        context.getProtocol().addMasterOperation(new BalanceIndexOperation(indexMD.getName()));
View Full Code Here

TOP

Related Classes of net.sf.katta.protocol.ReplicationReport

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.