public interface PlatformMonitoringAPI
PlatformMonitoringAPI
allows to monitor certains indicator at platform level.
Some indicators are based on the JVM running the platform.Modifier and Type | Method and Description |
---|---|
int |
getAvailableProcessors()
Returns the number of processors available to the Java virtual machine.
|
long |
getCommittedVirtualMemorySize()
Returns the amount of virtual memory that is guaranteed to be available to the running process in bytes, or -1 if this operation is not supported.
|
long |
getCurrentMemoryUsage()
Get the sum of both heap and non-heap memory usage.
|
long |
getFreePhysicalMemorySize()
Get the amount of free physical memory in bytes.
|
long |
getFreeSwapSpaceSize()
Get the amount of free swap space in bytes.
|
String |
getJvmName()
Returns the Java virtual machine implementation name.
|
Map<String,String> |
getJvmSystemProperties()
Returns the Java virtual machine System properties list.
|
String |
getJvmVendor()
Returns the Java virtual machine implementation vendor.
|
String |
getJvmVersion()
Returns the Java virtual machine implementation version.
|
Map<String,GcInfo> |
getLastGcInfo()
Returns the last GC info.
|
float |
getMemoryUsagePercentage()
Returns the percentage of memory used compare to maximum available memory.
|
long |
getNumberOfActiveTransactions()
Get the number of all active transactions
If no active transactions there, return 0
|
String |
getOSArch()
Returns the operating system architecture.
|
String |
getOSName()
Return the OS name.
|
String |
getOSVersion()
Return the OS version.
|
long |
getProcessCpuTime()
Returns the CPU time used by the process on which the Java virtual machine is running in nanoseconds.
|
long |
getStartTime()
Returns a timestamp (in millisecond) which indicates the date when the Java virtual
machine started.
|
double |
getSystemLoadAverage()
Returns the system load average for the last minute.
|
int |
getThreadCount()
Returns the current number of live threads including both daemon and non-daemon threads.
|
long |
getTotalPhysicalMemorySize()
Get the total amount of physical memory in bytes.
|
long |
getTotalSwapSpaceSize()
Get the total amount of swap space in bytes.
|
long |
getTotalThreadsCpuTime()
Returns the total CPU time for all live threads in nanoseconds.
|
long |
getUpTime()
Returns the number of milliseconds elapsed since the Java Virtual Machine started.
|
boolean |
isOptionalMonitoringInformationAvailable()
Returns true if engine is running on top of a SUN/Oracle JVM
|
boolean |
isSchedulerStarted()
Check if the scheduler is started.
|
long getCurrentMemoryUsage() throws MonitoringException
MonitoringException
- occurs when an exception is thrown during monitoringInvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.float getMemoryUsagePercentage() throws MonitoringException
MonitoringException
- occurs when an exception is thrown during monitoringInvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.double getSystemLoadAverage() throws MonitoringException
MonitoringException
- occurs when an exception is thrown during monitoringInvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.long getUpTime() throws MonitoringException
MonitoringException
- occurs when an exception is thrown during monitoringInvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.long getStartTime() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringlong getTotalThreadsCpuTime() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringint getThreadCount() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringint getAvailableProcessors() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getOSArch() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getOSName() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getOSVersion() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getJvmName() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getJvmVendor() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringString getJvmVersion() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringMap<String,String> getJvmSystemProperties() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringboolean isSchedulerStarted() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringlong getNumberOfActiveTransactions() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringlong getProcessCpuTime() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the Process CPU time is not available for the current JVM.long getCommittedVirtualMemorySize() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMlong getTotalSwapSpaceSize() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMlong getFreeSwapSpaceSize() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMlong getFreePhysicalMemorySize() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMlong getTotalPhysicalMemorySize() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMboolean isOptionalMonitoringInformationAvailable() throws MonitoringException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringMap<String,GcInfo> getLastGcInfo() throws MonitoringException, UnavailableInformationException
InvalidSessionException
- Generic exception thrown if API Session is invalid, e.g session has expired.MonitoringException
- occurs when an exception is thrown during monitoringUnavailableInformationException
- if the information is not available for the current JVMCopyright © 2018 Bonitasoft S.A.. All rights reserved.