Examples of disablePeer()


Examples of freenet.node.DarknetPeerNode.disablePeer()

    DarknetPeerNode dpn = (DarknetPeerNode) pn;
    String isDisabledString = fs.get("IsDisabled");
    if(isDisabledString != null) {
      if(!isDisabledString.equals("")) {
        if(Fields.stringToBool(isDisabledString, false)) {
          dpn.disablePeer();
        } else {
          dpn.enablePeer();
        }
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.replication.ReplicationAdmin.disablePeer()

  private void disablePeer(String id, int masterClusterNumber) throws Exception {
    ReplicationAdmin replicationAdmin = null;
    try {
      replicationAdmin = new ReplicationAdmin(
          configurations[masterClusterNumber]);
      replicationAdmin.disablePeer(id);
    } finally {
      close(replicationAdmin);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.replication.ReplicationAdmin.disablePeer()

  private void disablePeer(String id, int masterClusterNumber) throws Exception {
    ReplicationAdmin replicationAdmin = null;
    try {
      replicationAdmin = new ReplicationAdmin(
          configurations[masterClusterNumber]);
      replicationAdmin.disablePeer(id);
    } finally {
      close(replicationAdmin);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.replication.ReplicationAdmin.disablePeer()

  private void disablePeer(String id, int masterClusterNumber) throws Exception {
    ReplicationAdmin replicationAdmin = null;
    try {
      replicationAdmin = new ReplicationAdmin(
          configurations[masterClusterNumber]);
      replicationAdmin.disablePeer(id);
    } finally {
      close(replicationAdmin);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.replication.ReplicationAdmin.disablePeer()

    htd.setRegionReplication(regionReplication);
    HTU.getHBaseAdmin().createTable(htd);

    // both tables are created, now pause replication
    ReplicationAdmin admin = new ReplicationAdmin(HTU.getConfiguration());
    admin.disablePeer(ServerRegionReplicaUtil.getReplicationPeerId());

    // now that the replication is disabled, write to the table to be dropped, then drop the table.

    HConnection connection = HConnectionManager.createConnection(HTU.getConfiguration());
    Table table = connection.getTable(tableName);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.replication.ReplicationAdmin.disablePeer()

  private void disablePeer(String id, int masterClusterNumber) throws Exception {
    ReplicationAdmin replicationAdmin = null;
    try {
      replicationAdmin = new ReplicationAdmin(
          configurations[masterClusterNumber]);
      replicationAdmin.disablePeer(id);
    } finally {
      close(replicationAdmin);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.