com.platform.ego
Interface Service


public interface Service

The interface defines how to control and monitor service under EGO.

A service under EGO is an arbitrary application that is configured to be managed by the Service Controller. EGO service management provides centralized control, virtualization of service placement and guaranteed fail over. Services are assumed to be able to float, accessing any state information from shared storage. An EGO service can contain multiple concurrent service instances running on EGO hosts.

Version:
1.2.3

Method Summary
 void disable()
          Disable one service.
 void enable()
          Enable one service.
 ServiceContext getContext()
          Get context of service.
 ServiceInstance[] getInstances()
          Get instance of service.
 java.lang.String getName()
          Get name of service.
 ServiceAllocation getServiceAllocation()
          Get allocation of service.
 ServiceInfo getServiceInfo()
          Get detailed information of service instance.
 ServiceState getState()
          Get state of service.
 void reloadService(ServiceContext sc)
          reload one service by new description of service.
 void reloadService(java.lang.String servicedescription)
          reload one service by new description of service.
 void stopInstance(ServiceInstanceControl instance)
          Stop instances of service.
 

Method Detail

reloadService

void reloadService(java.lang.String servicedescription)
                   throws EGOException,
                          org.apache.xmlbeans.XmlException
reload one service by new description of service.

Parameters:
servicedescription - : description of service.
Throws:
EGOException
org.apache.xmlbeans.XmlException

reloadService

void reloadService(ServiceContext sc)
                   throws EGOException
reload one service by new description of service.

Parameters:
sc - : context of service.
Throws:
EGOException

disable

void disable()
             throws EGOException
Disable one service.

Throws:
Exception.
EGOException

enable

void enable()
            throws EGOException
Enable one service.

Throws:
Exception.
EGOException

stopInstance

void stopInstance(ServiceInstanceControl instance)
                  throws EGOException
Stop instances of service.

Parameters:
instance - : specifies instance of service.
Throws:
EGOException

getName

java.lang.String getName()
Get name of service.

Returns:
name of service.

getState

ServiceState getState()
Get state of service.

Returns:
one ServiceState object which indicates the service's state.

getServiceAllocation

ServiceAllocation getServiceAllocation()
Get allocation of service.

Returns:
allocation information of the service.

getContext

ServiceContext getContext()
Get context of service.

Returns:
context of service.

getInstances

ServiceInstance[] getInstances()
Get instance of service.

Returns:
instance of service.

getServiceInfo

ServiceInfo getServiceInfo()
                           throws EGOException
Get detailed information of service instance.

Returns:
information of service.
Throws:
EGOException


Copyright (C) 1992-2007 Platform Computing Corporation