Interface IServerManager

All Known Implementing Classes:
AdempiereServerMgr, ClusterServerMgr

public interface IServerManager
Author:
hengsin
  • Field Details

  • Method Details

    • getServerInstance

      ServerInstance getServerInstance(String serverId)
      Get server instance by id
      Parameters:
      serverId -
      Returns:
      ServerInstance or null if not found
    • getServerStatus

      default int getServerStatus(String serverId)
      Parameters:
      serverId -
      Returns:
      server status
    • runNow

      String runNow(String serverId)
      Parameters:
      serverId -
      Returns:
      error
    • start

      String start(String serverId)
      Parameters:
      serverId -
      Returns:
      error
    • stop

      String stop(String serverId)
      Parameters:
      serverId -
      Returns:
      error
    • startAll

      String startAll()
      Returns:
      error
    • stopAll

      String stopAll()
      Returns:
      error
    • reload

      String reload()
      Returns:
      error
    • getStartTime

      Timestamp getStartTime()
      Returns:
      start time stamp
    • getServerCount

      ServerCount getServerCount()
      Returns:
      ServerCount
    • getServerInstances

      ServerInstance[] getServerInstances()
      Returns:
      all server instances
    • getDescription

      String getDescription()
      Returns:
      description
    • addScheduler

      String addScheduler(MScheduler scheduler)
      Parameters:
      scheduler -
      Returns:
      error
    • removeScheduler

      String removeScheduler(MScheduler scheduler)
      Parameters:
      scheduler -
      Returns:
      error