com.caucho.cloud.topology
Class TopologyService
java.lang.Object
com.caucho.env.service.AbstractResinSubSystem
com.caucho.cloud.topology.TopologyService
- All Implemented Interfaces:
- ResinSubSystem
public class TopologyService
- extends AbstractResinSubSystem
Interface for a service registered with the Resin Server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
START_PRIORITY
public static final int START_PRIORITY
- See Also:
- Constant Field Values
TopologyService
public TopologyService(java.lang.String serverId)
createAndAddService
public static TopologyService createAndAddService(java.lang.String serverId)
getCurrent
public static TopologyService getCurrent()
getCurrentSystem
public static CloudSystem getCurrentSystem()
findCluster
public static CloudCluster findCluster(java.lang.String id)
findServer
public static CloudServer findServer(java.lang.String id)
- Returns the server with the given id in the active cloud system.
- Parameters:
id
- the server id within the system.
getSystem
public CloudSystem getSystem()
getId
public java.lang.String getId()
getSelfServer
public CloudServer getSelfServer()
getStartPriority
public int getStartPriority()
- Description copied from interface:
ResinSubSystem
- Returns the start priority of the service, used to determine which
services to start first.
- Specified by:
getStartPriority
in interface ResinSubSystem
- Overrides:
getStartPriority
in class AbstractResinSubSystem
start
public void start()
- Description copied from interface:
ResinSubSystem
- Starts the service.
- Specified by:
start
in interface ResinSubSystem
- Overrides:
start
in class AbstractResinSubSystem
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractResinSubSystem