Package tigase.sys
Class TigaseRuntime
java.lang.Object
tigase.sys.TigaseRuntime
- Direct Known Subclasses:
MonitorRuntime
Created: Feb 19, 2009 12:15:02 PM
- Author:
- Artur Hefczyc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddCPULoadListener(CPULoadListener cpuListener) abstract voidaddMemoryChangeListener(MemoryChangeListener memListener) abstract voidaddOnlineJidsReporter(OnlineJidsReporter onlineReporter) abstract voidaddShutdownHook(ShutdownHook hook) abstract JID[]intfloatlonglongWe try to return OLD memory pool size as this is what is the most interesting to us.floatlongWe try to return OLD memory pool size as this is what is the most interesting to us.doublestatic Optional<NativeMemoryTracking> Deprecated.static Optional<NativeMemoryTracking> getNativeMemoryTracking(tigase.sys.NativeMemoryTracking.SCALE scale) longfloatlonglongintstatic TigaseRuntimelongabstract booleanabstract booleanisJidOnline(JID jid) abstract booleanabstract booleanisJidOnlineLocally(JID jid) static voidabstract voidvoidshutdownTigase(String[] msg) voidshutdownTigase(String[] msg, int exitCode)
-
Field Details
-
SECOND
protected static final long SECOND- See Also:
-
MINUTE
protected static final long MINUTE- See Also:
-
HOUR
protected static final long HOUR- See Also:
-
-
Constructor Details
-
TigaseRuntime
protected TigaseRuntime()
-
-
Method Details
-
getNativeMemoryTracking
Deprecated. -
getNativeMemoryTracking
public static Optional<NativeMemoryTracking> getNativeMemoryTracking(tigase.sys.NativeMemoryTracking.SCALE scale) -
getTigaseRuntime
-
main
-
getMemoryPoolMXBeans
-
getOldMemPool
-
addCPULoadListener
-
addMemoryChangeListener
-
addOnlineJidsReporter
-
addShutdownHook
-
getConnectionIdsForJid
-
getCPUsNumber
public int getCPUsNumber() -
getCPUState
-
getCPUUsage
public float getCPUUsage() -
getDirectMemUsed
public long getDirectMemUsed() -
getGcStatistics
-
getHeapMemMax
public long getHeapMemMax()We try to return OLD memory pool size as this is what is the most interesting to us. If this is not possible then we return total Heap size.- Returns:
- a value of
long
-
getHeapMemUsage
public float getHeapMemUsage() -
getHeapMemUsed
public long getHeapMemUsed()We try to return OLD memory pool size as this is what is the most interesting to us. If this is not possible then we return total Heap used.- Returns:
- a value of
long
-
getLoadAverage
public double getLoadAverage() -
getMemoryState
-
getNonHeapMemMax
public long getNonHeapMemMax() -
getNonHeapMemUsage
public float getNonHeapMemUsage() -
getNonHeapMemUsed
public long getNonHeapMemUsed() -
getProcessCPUTime
public long getProcessCPUTime() -
getThreadsNumber
public int getThreadsNumber() -
getUptime
public long getUptime() -
getUptimeString
-
hasCompleteJidsInfo
public abstract boolean hasCompleteJidsInfo() -
isJidOnline
-
isJidOnlineLocally
-
isJidOnlineLocally
-
removeShutdownHook
-
getOldGenName
-
shutdownTigase
-
shutdownTigase
-