Java 类org.apache.hadoop.hbase.ClusterManager.ServiceType 实例源码

项目:ditb    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting for service: " + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname(), serverName.getPort())) {
      return;
    }
    Threads.sleep(100);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:ditb    文件:DistributedHBaseCluster.java   
private void waitForServiceToStart(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting for service: " + service + " to start: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (clusterManager.isRunning(service, serverName.getHostname(), serverName.getPort())) {
      return;
    }
    Threads.sleep(100);
  }
  throw new IOException("did timeout waiting for service to start:" + serverName);
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:HIndex    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:IRIndex    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:hbase    文件:DistributedHBaseCluster.java   
@Override
public void killRegionServer(ServerName serverName) throws IOException {
  LOG.info("Aborting RS: " + serverName.getServerName());
  killedRegionServers.add(serverName);
  clusterManager.kill(ServiceType.HBASE_REGIONSERVER,
    serverName.getHostname(), serverName.getPort());
}
项目:hbase    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting for service: " + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname(), serverName.getPort())) {
      return;
    }
    Threads.sleep(100);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:hbase    文件:DistributedHBaseCluster.java   
private void waitForServiceToStart(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting for service: " + service + " to start: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (clusterManager.isRunning(service, serverName.getHostname(), serverName.getPort())) {
      return;
    }
    Threads.sleep(100);
  }
  throw new IOException("did timeout waiting for service to start:" + serverName);
}
项目:PyroDB    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:HBase-Research    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:hbase-0.94.8-qod    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:hbase-0.94.8-qod    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:DominoHBase    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:hindex    文件:DistributedHBaseCluster.java   
private void waitForServiceToStop(ServiceType service, ServerName serverName, long timeout)
  throws IOException {
  LOG.info("Waiting service:" + service + " to stop: " + serverName.getServerName());
  long start = System.currentTimeMillis();

  while ((System.currentTimeMillis() - start) < timeout) {
    if (!clusterManager.isRunning(service, serverName.getHostname())) {
      return;
    }
    Threads.sleep(1000);
  }
  throw new IOException("did timeout waiting for service to stop:" + serverName);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void startRegionServer(String hostname, int port) throws IOException {
  LOG.info("Starting RS on: " + hostname);
  clusterManager.start(ServiceType.HBASE_REGIONSERVER, hostname, port);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void killRegionServer(ServerName serverName) throws IOException {
  LOG.info("Aborting RS: " + serverName.getServerName());
  clusterManager.kill(ServiceType.HBASE_REGIONSERVER,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void stopRegionServer(ServerName serverName) throws IOException {
  LOG.info("Stopping RS: " + serverName.getServerName());
  clusterManager.stop(ServiceType.HBASE_REGIONSERVER,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForRegionServerToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.HBASE_REGIONSERVER, serverName, timeout);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void startZkNode(String hostname, int port) throws IOException {
  LOG.info("Starting Zookeeper node on: " + hostname);
  clusterManager.start(ServiceType.ZOOKEEPER_SERVER, hostname, port);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void killZkNode(ServerName serverName) throws IOException {
  LOG.info("Aborting Zookeeper node on: " + serverName.getServerName());
  clusterManager.kill(ServiceType.ZOOKEEPER_SERVER,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void stopZkNode(ServerName serverName) throws IOException {
  LOG.info("Stopping Zookeeper node: " + serverName.getServerName());
  clusterManager.stop(ServiceType.ZOOKEEPER_SERVER,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForZkNodeToStart(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStart(ServiceType.ZOOKEEPER_SERVER, serverName, timeout);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForZkNodeToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.ZOOKEEPER_SERVER, serverName, timeout);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void startDataNode(ServerName serverName) throws IOException {
  LOG.info("Starting data node on: " + serverName.getServerName());
  clusterManager.start(ServiceType.HADOOP_DATANODE,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void killDataNode(ServerName serverName) throws IOException {
  LOG.info("Aborting data node on: " + serverName.getServerName());
  clusterManager.kill(ServiceType.HADOOP_DATANODE,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void stopDataNode(ServerName serverName) throws IOException {
  LOG.info("Stopping data node on: " + serverName.getServerName());
  clusterManager.stop(ServiceType.HADOOP_DATANODE,
    serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForDataNodeToStart(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStart(ServiceType.HADOOP_DATANODE, serverName, timeout);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForDataNodeToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.HADOOP_DATANODE, serverName, timeout);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void startMaster(String hostname, int port) throws IOException {
  LOG.info("Starting Master on: " + hostname + ":" + port);
  clusterManager.start(ServiceType.HBASE_MASTER, hostname, port);
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void killMaster(ServerName serverName) throws IOException {
  LOG.info("Aborting Master: " + serverName.getServerName());
  clusterManager.kill(ServiceType.HBASE_MASTER, serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void stopMaster(ServerName serverName) throws IOException {
  LOG.info("Stopping Master: " + serverName.getServerName());
  clusterManager.stop(ServiceType.HBASE_MASTER, serverName.getHostname(), serverName.getPort());
}
项目:ditb    文件:DistributedHBaseCluster.java   
@Override
public void waitForMasterToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.HBASE_MASTER, serverName, timeout);
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void startRegionServer(String hostname) throws IOException {
  LOG.info("Starting RS on: " + hostname);
  clusterManager.start(ServiceType.HBASE_REGIONSERVER, hostname);
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void killRegionServer(ServerName serverName) throws IOException {
  LOG.info("Aborting RS: " + serverName.getServerName());
  clusterManager.kill(ServiceType.HBASE_REGIONSERVER, serverName.getHostname());
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void stopRegionServer(ServerName serverName) throws IOException {
  LOG.info("Stopping RS: " + serverName.getServerName());
  clusterManager.stop(ServiceType.HBASE_REGIONSERVER, serverName.getHostname());
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void waitForRegionServerToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.HBASE_REGIONSERVER, serverName, timeout);
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void startMaster(String hostname) throws IOException {
  LOG.info("Starting Master on: " + hostname);
  clusterManager.start(ServiceType.HBASE_MASTER, hostname);
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void killMaster(ServerName serverName) throws IOException {
  LOG.info("Aborting Master: " + serverName.getServerName());
  clusterManager.kill(ServiceType.HBASE_MASTER, serverName.getHostname());
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void stopMaster(ServerName serverName) throws IOException {
  LOG.info("Stopping Master: " + serverName.getServerName());
  clusterManager.stop(ServiceType.HBASE_MASTER, serverName.getHostname());
}
项目:LCIndex-HBase-0.94.16    文件:DistributedHBaseCluster.java   
@Override
public void waitForMasterToStop(ServerName serverName, long timeout) throws IOException {
  waitForServiceToStop(ServiceType.HBASE_MASTER, serverName, timeout);
}