Package org.compiere.server
Class ServerInstance
- java.lang.Object
-
- org.compiere.server.ServerInstance
-
- All Implemented Interfaces:
Serializable
public class ServerInstance extends Object implements Serializable
- Author:
- hengsin
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerInstance(String serverId, AdempiereProcessor model, boolean started, boolean interrupted, boolean sleeping, Timestamp startTime, String statistics, String serverInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClusterMember
getClusterMember()
AdempiereProcessor
getModel()
String
getServerId()
String
getServerInfo()
Get Server InfoTimestamp
getStartTime()
String
getStatistics()
Get Run Statisticsboolean
isInterrupted()
boolean
isSleeping()
is instance idle waiting for next run (at the time of getting this ServerInstance reference)boolean
isStarted()
void
setClusterMember(IClusterMember clusterMember)
-
-
-
Constructor Detail
-
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 Detail
-
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
public Timestamp getStartTime()
- Returns:
- latest start time
-
getStatistics
public String getStatistics()
Get Run Statistics- Returns:
- Statistic info
-
getServerInfo
public String getServerInfo()
Get Server Info- Returns:
- info
-
getServerId
public String getServerId()
- Returns:
- server id
-
getModel
public AdempiereProcessor getModel()
- Returns:
AdempiereProcessor
-
setClusterMember
public void setClusterMember(IClusterMember clusterMember)
- Parameters:
clusterMember
-
-
getClusterMember
public IClusterMember getClusterMember()
- Returns:
IClusterMember
-
-