Class ServerInstance

java.lang.Object
org.compiere.server.ServerInstance
All Implemented Interfaces:
Serializable

public class ServerInstance extends Object implements Serializable
Author:
hengsin
See Also:
  • 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

      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