Package org.compiere.server
Interface IServerManager
- All Known Implementing Classes:
AdempiereServerMgr
,ClusterServerMgr
public interface IServerManager
- Author:
- hengsin
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionaddScheduler
(MScheduler scheduler) getServerInstance
(String serverId) Get server instance by iddefault int
getServerStatus
(String serverId) reload()
removeScheduler
(MScheduler scheduler) startAll()
stopAll()
-
Field Details
-
SERVER_STATE_NOT_SCHEDULE
static final int SERVER_STATE_NOT_SCHEDULE- See Also:
-
SERVER_STATE_STARTED
static final int SERVER_STATE_STARTED- See Also:
-
SERVER_STATE_STOPPED
static final int SERVER_STATE_STOPPED- See Also:
-
-
Method Details
-
getServerInstance
Get server instance by id- Parameters:
serverId
-- Returns:
- ServerInstance or null if not found
-
getServerStatus
- Parameters:
serverId
-- Returns:
- server status
-
runNow
- Parameters:
serverId
-- Returns:
- error
-
start
- Parameters:
serverId
-- Returns:
- error
-
stop
- 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
- Parameters:
scheduler
-- Returns:
- error
-
removeScheduler
- Parameters:
scheduler
-- Returns:
- error
-