public class RESTApiClusterManager
extends Configured
Modifier and Type | Class and Description |
---|---|
static class |
org.apache.hadoop.hbase.ClusterManager.ServiceType
Type of the service daemon
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Returns whether the service is running on the remote host.
|
void |
kill(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Kills the service running on the given host
|
void |
restart(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Restart the service on the given host
|
void |
resume(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Resumes the services running on the given host
|
void |
setConf(Configuration conf) |
void |
start(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Start the service on the given host
|
void |
stop(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Stop the service on the given host
|
void |
suspend(org.apache.hadoop.hbase.ClusterManager.ServiceType service,
String hostname,
int port)
Suspends the service running on the given host
|
public void setConf(Configuration conf)
public void start(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public void stop(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public void restart(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public boolean isRunning(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public void kill(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public void suspend(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException
public void resume(org.apache.hadoop.hbase.ClusterManager.ServiceType service, String hostname, int port) throws IOException
IOException