public abstract class TigaseRuntime extends Object
Modifier and Type | Field and Description |
---|---|
protected static long |
HOUR
Field description
|
protected static long |
MINUTE
Field description
|
protected static long |
SECOND
Field description
|
Modifier | Constructor and Description |
---|---|
protected |
TigaseRuntime()
Constructs ...
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addCPULoadListener(CPULoadListener cpuListener)
Method description
|
abstract void |
addMemoryChangeListener(MemoryChangeListener memListener)
Method description
|
abstract void |
addOnlineJidsReporter(OnlineJidsReporter onlineReporter)
Method description
|
abstract void |
addShutdownHook(ShutdownHook hook)
Method description
|
abstract tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.JID jid)
Method description
|
int |
getCPUsNumber()
Method description
|
ResourceState |
getCPUState()
Method description
|
float |
getCPUUsage()
Method description
|
long |
getDirectMemUsed()
Method description
|
long |
getHeapMemMax()
We try to return OLD memory pool size as this is what is the most interesting
to us.
|
float |
getHeapMemUsage()
Method description
|
long |
getHeapMemUsed()
We try to return OLD memory pool size as this is what is the most interesting
to us.
|
double |
getLoadAverage()
Method description
|
ResourceState |
getMemoryState()
Method description
|
long |
getNonHeapMemMax()
Method description
|
float |
getNonHeapMemUsage()
Method description
|
long |
getNonHeapMemUsed()
Method description
|
long |
getProcessCPUTime()
Method description
|
int |
getThreadsNumber()
Method description
|
static TigaseRuntime |
getTigaseRuntime()
Method description
|
long |
getUptime()
Method description
|
String |
getUptimeString()
Method description
|
abstract boolean |
hasCompleteJidsInfo()
Method description
|
abstract boolean |
isJidOnline(tigase.xmpp.JID jid)
Method description
|
abstract boolean |
isJidOnlineLocally(tigase.xmpp.BareJID jid) |
abstract boolean |
isJidOnlineLocally(tigase.xmpp.JID jid) |
void |
shutdownTigase(String[] msg) |
protected static final long SECOND
protected static final long MINUTE
protected static final long HOUR
public abstract void addCPULoadListener(CPULoadListener cpuListener)
cpuListener
- is a CPULoadListener
public abstract void addMemoryChangeListener(MemoryChangeListener memListener)
memListener
- is a MemoryChangeListener
public abstract void addOnlineJidsReporter(OnlineJidsReporter onlineReporter)
onlineReporter
- is a OnlineJidsReporter
public abstract void addShutdownHook(ShutdownHook hook)
hook
- is a ShutdownHook
public abstract tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.JID jid)
jid
- is a JID
JID[]
public int getCPUsNumber()
int
public ResourceState getCPUState()
ResourceState
public float getCPUUsage()
float
public long getDirectMemUsed()
long
public long getHeapMemMax()
long
public float getHeapMemUsage()
float
public long getHeapMemUsed()
long
public double getLoadAverage()
double
public ResourceState getMemoryState()
ResourceState
public long getNonHeapMemMax()
long
public float getNonHeapMemUsage()
float
public long getNonHeapMemUsed()
long
public long getProcessCPUTime()
long
public int getThreadsNumber()
int
public static TigaseRuntime getTigaseRuntime()
TigaseRuntime
public long getUptime()
long
public String getUptimeString()
String
public abstract boolean hasCompleteJidsInfo()
boolean
public abstract boolean isJidOnline(tigase.xmpp.JID jid)
jid
- is a JID
boolean
public abstract boolean isJidOnlineLocally(tigase.xmpp.BareJID jid)
public abstract boolean isJidOnlineLocally(tigase.xmpp.JID jid)
public void shutdownTigase(String[] msg)
Copyright © 2014 "Tigase, Inc.". All rights reserved.