org.oddjob.util
Class ManagementDiagnostics

java.lang.Object
  extended by org.oddjob.util.ManagementDiagnostics
All Implemented Interfaces:
Runnable

public class ManagementDiagnostics
extends Object
implements Runnable

Some useful diagnostics. This can be dropped into an Oddjob configuration and run.

Author:
rob

Constructor Summary
ManagementDiagnostics()
           
 
Method Summary
 String getHeapMemory()
          Getter for heapMemory.
 String getJvmName()
          Getter for jvmName.
 String getNonHeapMemory()
          Getter for nonHeapMemory.
 Date getStartTime()
          Getter for startTime.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementDiagnostics

public ManagementDiagnostics()
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getJvmName

public String getJvmName()
Getter for jvmName.

Returns:
the JVM name.

getStartTime

public Date getStartTime()
Getter for startTime.

Returns:
The JVM start time.

getHeapMemory

public String getHeapMemory()
Getter for heapMemory.

Returns:
Description of heap memory usage.

getNonHeapMemory

public String getNonHeapMemory()
Getter for nonHeapMemory.

Returns:
Description of non heap memory usage.