Class ServerInstance

    • 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
      • setClusterMember

        public void setClusterMember​(IClusterMember clusterMember)
        Parameters:
        clusterMember -