|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void reloadService(java.lang.String servicedescription) throws EGOException, org.apache.xmlbeans.XmlException
servicedescription
- : description of service.
EGOException
org.apache.xmlbeans.XmlException
void reloadService(ServiceContext sc) throws EGOException
sc
- : context of service.
EGOException
void disable() throws EGOException
Exception.
EGOException
void enable() throws EGOException
Exception.
EGOException
void stopInstance(ServiceInstanceControl instance) throws EGOException
instance
- : specifies instance of service.
EGOException
java.lang.String getName()
ServiceState getState()
ServiceAllocation getServiceAllocation()
ServiceContext getContext()
ServiceInstance[] getInstances()
ServiceInfo getServiceInfo() throws EGOException
EGOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |