org.outerj.daisy.jmx
Class SystemInfoImpl

java.lang.Object
  extended byorg.outerj.daisy.jmx.SystemInfoImpl
All Implemented Interfaces:
SystemInfoImplMBean

public class SystemInfoImpl
extends java.lang.Object
implements SystemInfoImplMBean


Constructor Summary
SystemInfoImpl()
           
 
Method Summary
 int getAvailableProcessors()
          Shows the number of available processors for the VM
 java.lang.String getFileEncoding()
          Shows file encoding.
 long getFreeVmMemory()
          Shows the current amount of free memory in the VM, measured in bytes.
 java.lang.String getFreeVmMemoryFormatted()
           
 long getMaxVmMemory()
          Shows the maximum amount of memory that the VM will attempt to use, measured in bytes.
 java.lang.String getMaxVmMemoryFormatted()
           
 java.util.Date getStartTime()
          Shows the (approx.) time when the system was started.
 long getTotalVmMemory()
          Shows the total amount of free memory in the VM, measured in bytes.
 java.lang.String getTotalVmMemoryFormatted()
           
 java.lang.String getUpTime()
          Shows the (approx.) current system uptime
 void triggerGarbageCollector()
          Suggests the VM to run the Garbage Collector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemInfoImpl

public SystemInfoImpl()
Method Detail

getFreeVmMemory

public long getFreeVmMemory()
Description copied from interface: SystemInfoImplMBean
Shows the current amount of free memory in the VM, measured in bytes.

Specified by:
getFreeVmMemory in interface SystemInfoImplMBean

getUpTime

public java.lang.String getUpTime()
Description copied from interface: SystemInfoImplMBean
Shows the (approx.) current system uptime

Specified by:
getUpTime in interface SystemInfoImplMBean

triggerGarbageCollector

public void triggerGarbageCollector()
Description copied from interface: SystemInfoImplMBean
Suggests the VM to run the Garbage Collector

Specified by:
triggerGarbageCollector in interface SystemInfoImplMBean

getStartTime

public java.util.Date getStartTime()
Description copied from interface: SystemInfoImplMBean
Shows the (approx.) time when the system was started.

Specified by:
getStartTime in interface SystemInfoImplMBean

getMaxVmMemory

public long getMaxVmMemory()
Description copied from interface: SystemInfoImplMBean
Shows the maximum amount of memory that the VM will attempt to use, measured in bytes.

Specified by:
getMaxVmMemory in interface SystemInfoImplMBean

getTotalVmMemory

public long getTotalVmMemory()
Description copied from interface: SystemInfoImplMBean
Shows the total amount of free memory in the VM, measured in bytes.

Specified by:
getTotalVmMemory in interface SystemInfoImplMBean

getAvailableProcessors

public int getAvailableProcessors()
Description copied from interface: SystemInfoImplMBean
Shows the number of available processors for the VM

Specified by:
getAvailableProcessors in interface SystemInfoImplMBean

getFreeVmMemoryFormatted

public java.lang.String getFreeVmMemoryFormatted()
Specified by:
getFreeVmMemoryFormatted in interface SystemInfoImplMBean

getMaxVmMemoryFormatted

public java.lang.String getMaxVmMemoryFormatted()
Specified by:
getMaxVmMemoryFormatted in interface SystemInfoImplMBean

getTotalVmMemoryFormatted

public java.lang.String getTotalVmMemoryFormatted()
Specified by:
getTotalVmMemoryFormatted in interface SystemInfoImplMBean

getFileEncoding

public java.lang.String getFileEncoding()
Description copied from interface: SystemInfoImplMBean
Shows file encoding.

Specified by:
getFileEncoding in interface SystemInfoImplMBean


Copyright © -2005 . All Rights Reserved.