Framework Professional Edition Package


com.prosyst.util.system
Class RuntimeInfo

java.lang.Object
  extended by com.prosyst.util.system.RuntimeInfo
All Implemented Interfaces:
com.prosyst.util.io.Externalizable

public class RuntimeInfo
extends java.lang.Object
implements com.prosyst.util.io.Externalizable

This class represents Runtime Info including used memory and active threads.


Field Summary
 long allSpace
          The total space on the platform.
 java.lang.String[] classpath
          The classpath of the server's JVM.
 long freeMemory
          The free memory framework JVM.
 long freeSpace
          The free space on the platform.
 long memoryUsage
          The used memory of the framework JVM.
 ThreadGroupInfo threadsInfo
          Representation of the active thread groups with their threads in the framework's JVM.
 long totalMemory
          The total memory of the framework JVM.
 long usedSpace
          The used space on the platform.
 
Constructor Summary
RuntimeInfo()
           
 
Method Summary
 void readObject(java.io.InputStream inputstream)
          No necessecity to be implemented in this case.
 void writeObject(java.io.OutputStream outputstream)
          Writes the following data in the stream: calls #ThreadGroupInfo.writeThreadGroupInfo(java.io.DataOutputStream); a long for the used memory; a long for the total memory; a long for the free memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadsInfo

public ThreadGroupInfo threadsInfo
Representation of the active thread groups with their threads in the framework's JVM.


memoryUsage

public long memoryUsage
The used memory of the framework JVM.


totalMemory

public long totalMemory
The total memory of the framework JVM.


freeMemory

public long freeMemory
The free memory framework JVM.


classpath

public java.lang.String[] classpath
The classpath of the server's JVM.


usedSpace

public long usedSpace
The used space on the platform.


allSpace

public long allSpace
The total space on the platform.


freeSpace

public long freeSpace
The free space on the platform.

Constructor Detail

RuntimeInfo

public RuntimeInfo()
Method Detail

readObject

public void readObject(java.io.InputStream inputstream)
No necessecity to be implemented in this case.

Specified by:
readObject in interface com.prosyst.util.io.Externalizable

writeObject

public void writeObject(java.io.OutputStream outputstream)
Writes the following data in the stream: calls #ThreadGroupInfo.writeThreadGroupInfo(java.io.DataOutputStream); a long for the used memory; a long for the total memory; a long for the free memory. an int for the classpath array length; an String for each classpath element.

Specified by:
writeObject in interface com.prosyst.util.io.Externalizable
Parameters:
outputstream - stream, where info is written out.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved