public class TopologyService extends AbstractResinSubSystem
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Constructor and Description |
---|
TopologyService(java.lang.String serverId) |
Modifier and Type | Method and Description |
---|---|
static TopologyService |
createAndAddService(java.lang.String serverId) |
static CloudCluster |
findCluster(java.lang.String id) |
static CloudServer |
findServer(java.lang.String id)
Returns the server with the given id in the active cloud system.
|
static TopologyService |
getCurrent() |
static CloudSystem |
getCurrentSystem() |
java.lang.String |
getId() |
CloudServer |
getSelfServer() |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
CloudSystem |
getSystem() |
void |
start()
Starts the service.
|
java.lang.String |
toString() |
destroy, getStopPriority, isActive, preCreate, stop
public static final int START_PRIORITY
public static TopologyService createAndAddService(java.lang.String serverId)
public static TopologyService getCurrent()
public static CloudSystem getCurrentSystem()
public static CloudCluster findCluster(java.lang.String id)
public static CloudServer findServer(java.lang.String id)
id
- the server id within the system.public CloudSystem getSystem()
public java.lang.String getId()
public CloudServer getSelfServer()
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public java.lang.String toString()
toString
in class AbstractResinSubSystem