Package org.compiere.server
Interface IServerManager
-
- All Known Implementing Classes:
AdempiereServerMgr
,ClusterServerMgr
public interface IServerManager
- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description static int
SERVER_STATE_NOT_SCHEDULE
static int
SERVER_STATE_STARTED
static int
SERVER_STATE_STOPPED
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
addScheduler(MScheduler scheduler)
String
getDescription()
ServerCount
getServerCount()
ServerInstance
getServerInstance(String serverId)
Get server instance by idServerInstance[]
getServerInstances()
default int
getServerStatus(String serverId)
Timestamp
getStartTime()
String
reload()
String
removeScheduler(MScheduler scheduler)
String
runNow(String serverId)
String
start(String serverId)
String
startAll()
String
stop(String serverId)
String
stopAll()
-
-
-
Field Detail
-
SERVER_STATE_NOT_SCHEDULE
static final int SERVER_STATE_NOT_SCHEDULE
- See Also:
- Constant Field Values
-
SERVER_STATE_STARTED
static final int SERVER_STATE_STARTED
- See Also:
- Constant Field Values
-
SERVER_STATE_STOPPED
static final int SERVER_STATE_STOPPED
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
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
-
-