com.metamatrix.server
Interface HostManagement

All Known Implementing Classes:
HostController

public interface HostManagement

Server life-cycle management interface for the host controller


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
 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 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;
 

Method Detail

startAllServersInCluster

void startAllServersInCluster()
Start all servers in the all the hosts


killAllServersInCluster

void killAllServersInCluster()
Kill all the servers at all the hosts


bounceAllServersInCluster

void bounceAllServersInCluster()
Kill and re-start all the servers in the cluster


startServers

void startServers(java.lang.String hostName)
                  throws MetaMatrixComponentException
Start all servers on the given host;

Parameters:
hostName - - name of the host; can not be null
Throws:
MetaMatrixComponentException

killServers

void killServers(java.lang.String hostName,
                 boolean stopNow)
                 throws MetaMatrixComponentException
Kill all servers on a this host

Parameters:
hostName - - name of the host; can not be null
stopNow - - true if need to be stopped immediately
Throws:
MetaMatrixComponentException

bounceServers

void bounceServers(java.lang.String hostName)
                   throws MetaMatrixComponentException
Kill and restart all the servers on this host

Parameters:
hostName - - name of the host; can not be null
Throws:
MetaMatrixComponentException

startServer

void startServer(java.lang.String hostName,
                 java.lang.String processName)
                 throws MetaMatrixComponentException
Start a server process on this host with specified processName

Parameters:
hostName - - name of the host; can not be null
processName - - virtual machine name
Throws:
MetaMatrixComponentException

killServer

void killServer(java.lang.String hostName,
                java.lang.String processName,
                boolean stopNow)
                throws MetaMatrixComponentException
Kill the server process on this host with specified processName

Parameters:
hostName - - name of the host; can not be null
processName -
Throws:
MetaMatrixComponentException

pingServer

boolean pingServer(java.lang.String hostName,
                   java.lang.String processName)
Ping the server process on this host with given processName.

Parameters:
hostName - - name of the host; can not be null
processName -
Returns:
true if available; false otherwise

ping

boolean ping(java.lang.String hostName)
Ping the local host controller

Parameters:
hostName - - name of the host; can not be null
Returns:
true if available; false otherwise

shutdown

void shutdown(java.lang.String hostname)
              throws MetaMatrixComponentException
Kill the host controller; this will also kill all the server processes on this host.

Parameters:
hostName - - name of the host; can not be null
Throws:
MetaMatrixComponentException

shutdownCluster

void shutdownCluster()
                     throws MetaMatrixComponentException
shutdown all the host controllers and all the servers processes

Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.