Package tigase.server.monitor
Class MonitorRuntime
- java.lang.Object
-
- tigase.sys.TigaseRuntime
-
- tigase.server.monitor.MonitorRuntime
-
public class MonitorRuntime extends TigaseRuntime
Created: Feb 19, 2009 12:31:14 PM- Author:
- Artur Hefczyc
-
-
Field Summary
-
Fields inherited from class tigase.sys.TigaseRuntime
HOUR, MINUTE, SECOND
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCPULoadListener(CPULoadListener cpuListener)
void
addMemoryChangeListener(MemoryChangeListener memListener)
void
addOnlineJidsReporter(OnlineJidsReporter onlineReporter)
void
addShutdownHook(ShutdownHook hook)
JID[]
getConnectionIdsForJid(JID jid)
static MonitorRuntime
getMonitorRuntime()
boolean
hasCompleteJidsInfo()
boolean
isJidOnline(JID jid)
boolean
isJidOnlineLocally(BareJID jid)
boolean
isJidOnlineLocally(JID jid)
boolean
isShutdownThreadDump()
void
removeShutdownHook(ShutdownHook hook)
void
setShutdownThreadDump(boolean shutdownThreadDump)
-
Methods inherited from class tigase.sys.TigaseRuntime
getCPUsNumber, getCPUState, getCPUUsage, getDirectMemUsed, getGcStatistics, getHeapMemMax, getHeapMemUsage, getHeapMemUsed, getLoadAverage, getMemoryPoolMXBeans, getMemoryState, getNativeMemoryTracking, getNonHeapMemMax, getNonHeapMemUsage, getNonHeapMemUsed, getOldGenName, getOldMemPool, getProcessCPUTime, getThreadsNumber, getTigaseRuntime, getUptime, getUptimeString, main, shutdownTigase, shutdownTigase
-
-
-
-
Method Detail
-
getMonitorRuntime
public static MonitorRuntime getMonitorRuntime()
-
addShutdownHook
public void addShutdownHook(ShutdownHook hook)
- Specified by:
addShutdownHook
in classTigaseRuntime
-
addMemoryChangeListener
public void addMemoryChangeListener(MemoryChangeListener memListener)
- Specified by:
addMemoryChangeListener
in classTigaseRuntime
-
addCPULoadListener
public void addCPULoadListener(CPULoadListener cpuListener)
- Specified by:
addCPULoadListener
in classTigaseRuntime
-
addOnlineJidsReporter
public void addOnlineJidsReporter(OnlineJidsReporter onlineReporter)
- Specified by:
addOnlineJidsReporter
in classTigaseRuntime
-
hasCompleteJidsInfo
public boolean hasCompleteJidsInfo()
- Specified by:
hasCompleteJidsInfo
in classTigaseRuntime
-
isJidOnline
public boolean isJidOnline(JID jid)
- Specified by:
isJidOnline
in classTigaseRuntime
-
isJidOnlineLocally
public boolean isJidOnlineLocally(BareJID jid)
- Specified by:
isJidOnlineLocally
in classTigaseRuntime
-
isJidOnlineLocally
public boolean isJidOnlineLocally(JID jid)
- Specified by:
isJidOnlineLocally
in classTigaseRuntime
-
getConnectionIdsForJid
public JID[] getConnectionIdsForJid(JID jid)
- Specified by:
getConnectionIdsForJid
in classTigaseRuntime
-
removeShutdownHook
public void removeShutdownHook(ShutdownHook hook)
- Specified by:
removeShutdownHook
in classTigaseRuntime
-
isShutdownThreadDump
public boolean isShutdownThreadDump()
-
setShutdownThreadDump
public void setShutdownThreadDump(boolean shutdownThreadDump)
-
-