Package org.idempiere.server.cluster
Class ClusterServerMgr
java.lang.Object
org.idempiere.server.cluster.ClusterServerMgr
- All Implemented Interfaces:
IServerManager
- Author:
- hengsin
-
Field Summary
Fields inherited from interface org.compiere.server.IServerManager
SERVER_STATE_NOT_SCHEDULE, SERVER_STATE_STARTED, SERVER_STATE_STOPPED
-
Method Summary
Modifier and TypeMethodDescriptionaddScheduler
(MScheduler scheduler) static IClusterMember
getClusterMember
(String nodeId) static IClusterService
static ClusterServerMgr
getServerInstance
(String serverId) Get server instance by idreload()
removeScheduler
(MScheduler scheduler) startAll()
stopAll()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.compiere.server.IServerManager
getServerStatus
-
Method Details
-
getInstance
- Returns:
- share instance
-
getClusterService
- Returns:
- cluster service
-
getClusterMember
- Parameters:
nodeId
-- Returns:
- cluster member node
-
getServerInstance
Description copied from interface:IServerManager
Get server instance by id- Specified by:
getServerInstance
in interfaceIServerManager
- Returns:
- ServerInstance or null if not found
-
runNow
- Specified by:
runNow
in interfaceIServerManager
- Returns:
- error
-
start
- Specified by:
start
in interfaceIServerManager
- Returns:
- error
-
stop
- Specified by:
stop
in interfaceIServerManager
- Returns:
- error
-
reload
- Specified by:
reload
in interfaceIServerManager
- Returns:
- error
-
getStartTime
- Specified by:
getStartTime
in interfaceIServerManager
- Returns:
- start time stamp
-
getServerCount
- Specified by:
getServerCount
in interfaceIServerManager
- Returns:
- ServerCount
-
getServerInstances
- Specified by:
getServerInstances
in interfaceIServerManager
- Returns:
- all server instances
-
getDescription
- Specified by:
getDescription
in interfaceIServerManager
- Returns:
- description
-
startAll
- Specified by:
startAll
in interfaceIServerManager
- Returns:
- error
-
stopAll
- Specified by:
stopAll
in interfaceIServerManager
- Returns:
- error
-
addScheduler
- Specified by:
addScheduler
in interfaceIServerManager
- Returns:
- error
-
removeScheduler
- Specified by:
removeScheduler
in interfaceIServerManager
- Returns:
- error
-