com.platform.ego
Interface ClusterAdmin


public interface ClusterAdmin

This interface supports the control and management functions of EGO. This includes the vast number of operations that enable the cluster administrator to set up and manage entities such as resource host groups.

Version:
1.2.3

Method Summary
 void addResourceGroup(ResourceGroup conf)
          Add one new resource group configuration.
 void closeHost(java.lang.String host)
          Close PEM on a host.
 java.lang.String createService(java.lang.String xmlstr)
          Create one new service.
 void delResourceGroup(java.lang.String resourcegroupname)
          Delete one resource group configuration.
 void disableService(java.lang.String servicename)
          Disable an existing service.
 void enableService(java.lang.String servicename)
          Enable an existing service.
 void halt()
          Halt EGO Master.
 void openHost(java.lang.String host)
          Open PEM on a host.
 void reboot()
          Reboot EGO Master.
 void removeClient(java.lang.String clientname)
          This routine works only for disconnected client.
 void removeService(java.lang.String servicename)
          Disable an existing service, and remove it from the service control manager database.
 void restartHost(java.lang.String host)
          Restart PEM on a host.
 void setMasterList(java.lang.String[] hostlist)
          Administrative operation to set the master candidate list.
 void setResourceGroup(ResourceGroup conf)
          Modify one resource group configuration.
 void shutdownHost(java.lang.String host)
          Shutdown PEM on a host.
 

Method Detail

reboot

void reboot()
            throws EGOException
Reboot EGO Master.

Throws:
EGOException

halt

void halt()
          throws EGOException
Halt EGO Master.

Throws:
EGOException

openHost

void openHost(java.lang.String host)
              throws EGOException
Open PEM on a host.

Parameters:
host - : specifies which host open.
Throws:
EGOException

closeHost

void closeHost(java.lang.String host)
               throws EGOException
Close PEM on a host.

Parameters:
host - : specifies which host close.
Throws:
EGOException

restartHost

void restartHost(java.lang.String host)
                 throws EGOException
Restart PEM on a host.

Parameters:
host - : specifies which host restart.
Throws:
EGOException

shutdownHost

void shutdownHost(java.lang.String host)
                  throws EGOException
Shutdown PEM on a host.

Parameters:
host - : specifies which host shutdown.
Throws:
EGOException

setMasterList

void setMasterList(java.lang.String[] hostlist)
                   throws EGOException
Administrative operation to set the master candidate list.

Parameters:
hostlist - : speciies list of candidate.
Throws:
EGOException - note: hostlist[0] is the name of master host

removeClient

void removeClient(java.lang.String clientname)
                  throws EGOException
This routine works only for disconnected client.

Parameters:
clientname - : specifies name of client.
Throws:
EGOException

createService

java.lang.String createService(java.lang.String xmlstr)
                               throws EGOException,
                                      org.apache.xmlbeans.XmlException
Create one new service.

Parameters:
xmlstr - : specifies definition of service.
Returns:
the service name
Throws:
EGOException, - XmlException
EGOException
org.apache.xmlbeans.XmlException

removeService

void removeService(java.lang.String servicename)
                   throws EGOException
Disable an existing service, and remove it from the service control manager database.

Parameters:
servicename - : specifies name of service.
Throws:
EGOException

enableService

void enableService(java.lang.String servicename)
                   throws EGOException
Enable an existing service.

Parameters:
servicename - : specifies name of service.
Throws:
EGOException

disableService

void disableService(java.lang.String servicename)
                    throws EGOException
Disable an existing service.

Parameters:
servicename - : specifies name of service.
Throws:
EGOException

addResourceGroup

void addResourceGroup(ResourceGroup conf)
                      throws EGOException
Add one new resource group configuration.

Parameters:
conf - : specifies configuration of resource group.
Throws:
EGOException

setResourceGroup

void setResourceGroup(ResourceGroup conf)
                      throws EGOException
Modify one resource group configuration.

Parameters:
conf - : specifies configuration of resource group.
Throws:
EGOException

delResourceGroup

void delResourceGroup(java.lang.String resourcegroupname)
                      throws EGOException
Delete one resource group configuration.

Parameters:
resourcegroupname - : specifies name of resource group.
Throws:
EGOException


Copyright (C) 1992-2007 Platform Computing Corporation