Package org.compiere.server
Class ServerInstance
java.lang.Object
org.compiere.server.ServerInstance
- All Implemented Interfaces:
Serializable
- Author:
- hengsin
- See Also:
-
Constructor Summary
ConstructorDescriptionServerInstance
(String serverId, AdempiereProcessor model, boolean started, boolean interrupted, boolean sleeping, Timestamp startTime, String statistics, String serverInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetModel()
Get Server InfoGet Run Statisticsboolean
boolean
is instance idle waiting for next run (at the time of getting this ServerInstance reference)boolean
void
setClusterMember
(IClusterMember clusterMember)
-
Constructor Details
-
ServerInstance
public ServerInstance(String serverId, AdempiereProcessor model, boolean started, boolean interrupted, boolean sleeping, Timestamp startTime, String statistics, String serverInfo) - Parameters:
serverId
-model
-started
-interrupted
-sleeping
-startTime
-statistics
-serverInfo
-
-
-
Method Details
-
isStarted
public boolean isStarted()- Returns:
- is instance started
-
isInterrupted
public boolean isInterrupted()- Returns:
- is instance interrupted/stopped
-
isSleeping
public boolean isSleeping()is instance idle waiting for next run (at the time of getting this ServerInstance reference)- Returns:
- true if instance is idle, false otherwise
-
getStartTime
- Returns:
- latest start time
-
getStatistics
Get Run Statistics- Returns:
- Statistic info
-
getServerInfo
Get Server Info- Returns:
- info
-
getServerId
- Returns:
- server id
-
getModel
- Returns:
AdempiereProcessor
-
setClusterMember
- Parameters:
clusterMember
-
-
getClusterMember
- Returns:
IClusterMember
-