Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: sysmon

[47:14] (extern: com.lehman.aussom.AussomSysmon) 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 This object.
  • newSysmon ()

  • kilobyte ()

    Returns an int with the number of bytes in a KB.

    • @r An int with the number of bytes in a KB.
  • megabyte ()

    Returns an int with the number of bytes in a MB.

    • @r An int with the number of bytes in a MB.
  • gigabyte ()

    Returns an int with the number of bytes in a GB.

    • @r An int with the number of bytes in a GB.
  • formatPerc (double Val)

    Returns a string formatted as a percent.

    • @p Val is a double with the value to be formatted.
    • @r A string formatted as a percent.
  • getCpuInfo ()

    Returns a map with CPU info.

    • @r A map with the CPU info.
  • 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 A map with the CPU percent formatted strings.
  • 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 A list of maps with the CPU percent.
  • 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 A list of maps with the CPU percent values by core.
  • getMem ()

    Returns a map with memory usage information.

    • @r A map with the memory usage.
  • getFsInfo ()

    Gets basic file system information.

    • @r A list of maps with the file system information.
  • getFsUsage (string FsName)

    Gets the file system usage for the provided file system name.

    • @r A map with the file system usage.
  • getAllFsInfo ()

    Gets all file system information including usage.

    • @r A list of maps with the file system information including usage.
  • getNetInfo ()

    Returns a map with general network information.

    • @r A map with the general network info.
  • getNetIntInfo ()

    Returns a list of network interfaces.

    • @r A list of network interfaces.
  • getNetIntUsage (string IntName)

    Returns a map with usage information for the provided interface.

    • @p IntName is a string with the interface name to get.
    • @r A map with the usage information.
  • getAllNetIntInfo ()

    Returns a list of network interfaces.

    • @r A list of network interfaces.
  • getTcpInfo ()

    Returns a map with TCP stats.

    • @r A map with the TCP stats.

class: fsType

[33:6] static extends: object

Enum fsType defines file system types.

Members

  • cdrom
  • localDisk
  • network
  • none
  • ramDisk
  • swap
  • unknown

class: sysmon_module

[23:14] static extends: object

Module JAR loader class.

Methods

  • sysmon_module ()