public class HeartbeatSystem 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
Modifier and Type | Method and Description |
---|---|
static HeartbeatSystem |
createAndAddService(CloudServer cloudServer) |
static HeartbeatSystem |
getCurrent() |
long |
getHeartbeatTimeout() |
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
void |
setHeartbeatPeriod(long timeout) |
void |
setHeartbeatTimeout(long timeout) |
void |
start()
Starts the heartbeat actor with a server start message to the pod
|
void |
stop()
Stops the heartbeat actor with a server start message to the pod
|
destroy, getStopPriority, isActive, preCreate, toString
public static final int START_PRIORITY
public static HeartbeatSystem createAndAddService(CloudServer cloudServer)
public static HeartbeatSystem getCurrent()
public void setHeartbeatPeriod(long timeout)
public void setHeartbeatTimeout(long timeout)
public long getHeartbeatTimeout()
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public void stop()
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem