ORG.oclc.opserve.opsmanager
Class OpsManager
java.lang.Object
|
+--java.lang.Thread
|
+--ORG.oclc.opserve.opsmanager.OpsManager
- Direct Known Subclasses:
- JaSSIOpsManager, ZBaseOpsManager, ZBrokerOpsManager
- public class OpsManager
- extends Thread
- implements OpsClient
Constructor Summary |
OpsManager()
Constructs an OpsManager object. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
yield |
ROOT
public static final int ROOT
METHOD
public static final int METHOD
PARMS
public static final int PARMS
LOG_TYPE
public static final int LOG_TYPE
TRACE_LEVEL
public static final int TRACE_LEVEL
TIMER_TYPE
public static final int TIMER_TYPE
TIMER_VALUE
public static final int TIMER_VALUE
COMMAND_STRING
public static final int COMMAND_STRING
ACTIVATE
public static final String ACTIVATE
FLUSHLOG
public static final String FLUSHLOG
FLUSHSTATS
public static final String FLUSHSTATS
HOUSEKEEPING
public static final String HOUSEKEEPING
POLL
public static final String POLL
QUIESCE
public static final String QUIESCE
SETTIMER
public static final String SETTIMER
SETTRACELEVEL
public static final String SETTRACELEVEL
STOP_GRACEFULLY
public static final String STOP_GRACEFULLY
STOP_IMMEDIATELY
public static final String STOP_IMMEDIATELY
UPDATE
public static final String UPDATE
SERVER_LOG
public static final String SERVER_LOG
USER_LOG
public static final String USER_LOG
SESSION_TIMER
public static final String SESSION_TIMER
THREAD_TIMER
public static final String THREAD_TIMER
LOGGING_TIMER
public static final String LOGGING_TIMER
HOUSEKEEPING_TIMER
public static final String HOUSEKEEPING_TIMER
state
protected static ORG.oclc.opserve.opserve.ServerState state
memThresholds
protected int[] memThresholds
sessionThresholds
protected int[] sessionThresholds
fdThresholds
protected int[] fdThresholds
threadThresholds
protected int[] threadThresholds
OpsManager
public OpsManager()
- Constructs an OpsManager object.
run
public void run()
- Overrides:
- run in class Thread
getHostMap
public static ORG.oclc.opserve.opserve.HostMap getHostMap()
register
public void register(int serverPort)
throws Exception
- Specified by:
- register in interface OpsClient
init
public void init(IniFile ini)
throws Exception
- Specified by:
- init in interface OpsClient
listenForOpsCommands
public void listenForOpsCommands()
- Specified by:
- listenForOpsCommands in interface OpsClient
getHostID
public String getHostID()
- Specified by:
- getHostID in interface OpsClient
unRegister
public void unRegister()
throws Exception
- Specified by:
- unRegister in interface OpsClient
updateStatus
public void updateStatus(boolean force)
throws Exception
- Specified by:
- updateStatus in interface OpsClient
alert
public void alert(Object alertData)
throws Exception
- Specified by:
- alert in interface OpsClient
setSessionCount
public void setSessionCount(int sessions)
- Specified by:
- setSessionCount in interface OpsClient
getServerLocation
public ServerLocation getServerLocation(String serverName,
String sessionId)
throws Exception
- Specified by:
- getServerLocation in interface OpsClient
beginSession
public void beginSession(Object user)
- Specified by:
- beginSession in interface OpsClient
endSession
public void endSession(Object user)
- Specified by:
- endSession in interface OpsClient
setFD
public final void setFD(int openFD)
- Specified by:
- setFD in interface OpsClient
incrFD
public final void incrFD()
- Specified by:
- incrFD in interface OpsClient
decrFD
public final void decrFD()
- Specified by:
- decrFD in interface OpsClient
setConnectedClients
public void setConnectedClients(int clients)
- Specified by:
- setConnectedClients in interface OpsClient
incrConnectedClients
public void incrConnectedClients()
- Specified by:
- incrConnectedClients in interface OpsClient
decrConnectedClients
public void decrConnectedClients()
- Specified by:
- decrConnectedClients in interface OpsClient
updateTransRate
public void updateTransRate()
- Specified by:
- updateTransRate in interface OpsClient
responseTime
public void responseTime(long timeToRespond)
- Specified by:
- responseTime in interface OpsClient
toString
public String toString()
- Overrides:
- toString in class Thread
setServerPort
public void setServerPort(int port)
- Specified by:
- setServerPort in interface OpsClient
stopGracefully
public void stopGracefully()
stopImmediately
public void stopImmediately()
activate
public void activate()
quiesce
public void quiesce()
flushLog
public void flushLog(String whichLog)
update
public void update(String commandParms)
flushStats
public void flushStats()
setTraceLevel
public void setTraceLevel(int traceLevel,
String whichLog)
setTimer
public void setTimer(long msec,
String whichTimer)
houseKeeping
public void houseKeeping()
opStopNow
public final void opStopNow()
opStopLater
public final void opStopLater()
opPoll
public final DataDir opPoll()
opActivate
public final DataDir opActivate()
opQuiesce
public final DataDir opQuiesce()
opFlushLog
public final DataDir opFlushLog(DataDir parms)
opUpdate
public final DataDir opUpdate(DataDir parms)
opFlushStats
public final DataDir opFlushStats()
opSetTraceLevel
public final DataDir opSetTraceLevel(DataDir parms)
opSetTimer
public final DataDir opSetTimer(DataDir parms)
opHouseKeeping
public final DataDir opHouseKeeping()
countThreads
protected int countThreads()
loadFactor
protected void loadFactor()
calcLoad
protected int calcLoad(int value,
int[] thresholds)
getState
public ORG.oclc.opserve.opserve.ServerState getState()