Package com.streambase.sb.monitor
Class SystemInfo
java.lang.Object
com.streambase.sb.monitor.SystemInfo
Represents system-level information. Instances of this class should be
retrieved from a Snapshot.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInformation about GC collectors in the JVM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the current number of clientsintReturns the current number of dequeuing clientslongReturns the amount of free memory in the StreamBase server process.Return a collection of information on all the garbage collectors in the JVMlongReturns the maximum amount of memory which the StreamBase server process is allowed to allocate.intDeprecated.As of StreamBase 3.0, use getTotalMemory(), which returns a size in bytes.intReturns the time that the StreamBase Server has been running, in seconds.longReturns the total amount of memory available for use in the StreamBase server process.intReturn the total number of threads running in the JVM (including non-StreamBase threads)longReturns the total amount of memory currently in use in the StreamBase server process.
-
Constructor Details
-
SystemInfo
public SystemInfo()
-
-
Method Details
-
getTimeRunning
public int getTimeRunning()Returns the time that the StreamBase Server has been running, in seconds.- Returns:
- the seconds that sbd has been running
-
getProcessSize
Deprecated.As of StreamBase 3.0, use getTotalMemory(), which returns a size in bytes.Returns the amount of memory used by the StreamBase server process, in Megabytes.- Returns:
- size of the server process, in Mbytes
-
getTotalMemory
public long getTotalMemory()Returns the total amount of memory available for use in the StreamBase server process.- Returns:
- the amount of memory, in bytes
-
getUsedMemory
public long getUsedMemory()Returns the total amount of memory currently in use in the StreamBase server process.- Returns:
- the amount of memory, in bytes
-
getFreeMemory
public long getFreeMemory()Returns the amount of free memory in the StreamBase server process.- Returns:
- the amount of memory, in bytes
-
getMaxMemory
public long getMaxMemory()Returns the maximum amount of memory which the StreamBase server process is allowed to allocate.- Returns:
- the amount of memory, in bytes
-
getDequeueClientCount
public int getDequeueClientCount()Returns the current number of dequeuing clients- Returns:
- the number of dequeueing clients
-
getClientCount
public int getClientCount()Returns the current number of clients- Returns:
- the number of clients
-
getTotalNumberThreads
public int getTotalNumberThreads()Return the total number of threads running in the JVM (including non-StreamBase threads)- Returns:
- total number of threads running in the JVM (including non-StreamBase threads)
-
getGCollectors
Return a collection of information on all the garbage collectors in the JVM- Returns:
- A collection of information on all the garbage collectors in the JVM
- Since:
- 7.1.0
-