|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.server.HostController
public class HostController
Nested Class Summary | |
---|---|
protected class |
HostController.MonitoredProcess
|
Constructor Summary | |
---|---|
HostController(Host host,
ClusteredRegistryState registry,
HostMonitor hostMonitor,
MessageBus bus)
|
Method Summary | |
---|---|
void |
bounceAllServersInCluster()
Kill and re-start all the servers in the cluster |
void |
bounceServers(java.lang.String hostName)
Kill and restart all the servers on this host |
void |
killAllServersInCluster()
Kill all the servers at all the hosts |
void |
killServer(java.lang.String hostName,
java.lang.String processName,
boolean stopNow)
Kill the server process on this host with specified processName |
void |
killServers(java.lang.String hostName,
boolean stopNow)
Kill all servers on a this host |
static void |
main(java.lang.String[] args)
|
boolean |
ping(java.lang.String hostName)
Ping the local host controller |
boolean |
pingServer(java.lang.String hostName,
java.lang.String processName)
Ping the server process on this host with given processName. |
void |
run(boolean startProcesses)
|
void |
shutdown(java.lang.String hostName)
Kill the host controller; this will also kill all the server processes on this host. |
void |
shutdownCluster()
shutdown all the host controllers and all the servers processes |
void |
startAllServersInCluster()
Start all servers in the all the hosts |
void |
startServer(java.lang.String hostName,
java.lang.String processName)
Start a server process on this host with specified processName |
void |
startServers(java.lang.String hostName)
Start all servers on the given host; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HostController(Host host, ClusteredRegistryState registry, HostMonitor hostMonitor, MessageBus bus) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void run(boolean startProcesses) throws java.lang.Throwable
java.lang.Throwable
public static void main(java.lang.String[] args)
public void killServer(java.lang.String hostName, java.lang.String processName, boolean stopNow) throws MetaMatrixComponentException
HostManagement
killServer
in interface HostManagement
hostName
- - name of the host; can not be null
MetaMatrixComponentException
public void killServers(java.lang.String hostName, boolean stopNow) throws MetaMatrixComponentException
HostManagement
killServers
in interface HostManagement
hostName
- - name of the host; can not be nullstopNow
- - true if need to be stopped immediately
MetaMatrixComponentException
public boolean ping(java.lang.String hostName)
HostManagement
ping
in interface HostManagement
hostName
- - name of the host; can not be null
public boolean pingServer(java.lang.String hostName, java.lang.String processName)
HostManagement
pingServer
in interface HostManagement
hostName
- - name of the host; can not be null
public void shutdown(java.lang.String hostName) throws MetaMatrixComponentException
HostManagement
shutdown
in interface HostManagement
MetaMatrixComponentException
public void shutdownCluster() throws MetaMatrixComponentException
HostManagement
shutdownCluster
in interface HostManagement
MetaMatrixComponentException
public void startServer(java.lang.String hostName, java.lang.String processName) throws MetaMatrixComponentException
HostManagement
startServer
in interface HostManagement
hostName
- - name of the host; can not be nullprocessName
- - virtual machine name
MetaMatrixComponentException
public void startServers(java.lang.String hostName) throws MetaMatrixComponentException
HostManagement
startServers
in interface HostManagement
hostName
- - name of the host; can not be null
MetaMatrixComponentException
public void bounceAllServersInCluster()
HostManagement
bounceAllServersInCluster
in interface HostManagement
public void bounceServers(java.lang.String hostName) throws MetaMatrixComponentException
HostManagement
bounceServers
in interface HostManagement
hostName
- - name of the host; can not be null
MetaMatrixComponentException
public void killAllServersInCluster()
HostManagement
killAllServersInCluster
in interface HostManagement
public void startAllServersInCluster()
HostManagement
startAllServersInCluster
in interface HostManagement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |