class: sysmon
[46:14] (extern: com.lehman.aussom.Sysmon) extends: object
The sysmon class implements system information and monitoring support.
Methods
-
sysmon ()
Constructor instantiates a new sysmon object. This will throw an exception if the host OS/Arch isn't supported.
- @r
Thisobject.
- @r
-
newSysmon ()
-
kilobyte ()
Returns an int with the number of bytes in a KB.
- @r
Anint with the number of bytes in a KB.
- @r
-
megabyte ()
Returns an int with the number of bytes in a MB.
- @r
Anint with the number of bytes in a MB.
- @r
-
gigabyte ()
Returns an int with the number of bytes in a GB.
- @r
Anint with the number of bytes in a GB.
- @r
-
formatPerc (
double Val)Returns a string formatted as a percent.
- @p
Valis a double with the value to be formatted. - @r
Astring formatted as a percent.
- @p
-
getCpuInfo ()
Returns a map with CPU info.
- @r
Amap with the CPU info.
- @r
-
getCpuPerc ()
Returns a map with cpu percent values. Note: When calling this function back to back you need to put in a sleep for some period of time or else the subsequent calls will be inaccurate.
-
getCpuPercFormatted ()
Returns a map with CPU percent formatted strings. Note: When calling this function back to back you need to put in a sleep for some period of time or else the subsequent calls will be inaccurate.
- @r
Amap with the CPU percent formatted strings.
- @r
-
getCpuPercByCore ()
Returns a list of maps with CPU percent values by core. Note: When calling this function back to back you need to put in a sleep for some period of time or else the subsequent calls will be inaccurate.
- @r
Alist of maps with the CPU percent.
- @r
-
getCpuPercByCoreFormatted ()
Returns a list of maps with CPU percent values by core formatted strings. Note: When calling this function back to back you need to put in a sleep for some period of time or else the subsequent calls will be inaccurate.
- @r
Alist of maps with the CPU percent values by core.
- @r
-
getMem ()
Returns a map with memory usage information.
- @r
Amap with the memory usage.
- @r
-
getFsInfo ()
Gets basic file system information.
- @r
Alist of maps with the file system information.
- @r
-
getFsUsage (
string FsName)Gets the file system usage for the provided file system name.
- @r
Amap with the file system usage.
- @r
-
getAllFsInfo ()
Gets all file system information including usage.
- @r
Alist of maps with the file system information including usage.
- @r
-
getNetInfo ()
Returns a map with general network information.
- @r
Amap with the general network info.
- @r
-
getNetIntInfo ()
Returns a list of network interfaces.
- @r
Alist of network interfaces.
- @r
-
getNetIntUsage (
string IntName)Returns a map with usage information for the provided interface.
- @p
IntNameis a string with the interface name to get. - @r
Amap with the usage information.
- @p
-
getAllNetIntInfo ()
Returns a list of network interfaces.
- @r
Alist of network interfaces.
- @r
-
getTcpInfo ()
Returns a map with TCP stats.
- @r
Amap with the TCP stats.
- @r
class: fsType
[32:6] static extends: object
Enum fsType defines file system types.
Members
- cdrom
- localDisk
- network
- none
- ramDisk
- swap
- unknown
class: sysmon_module
[22:14] static extends: object
Module JAR loader class.
Methods
- sysmon_module ()