Framework Professional Edition Package


com.prosyst.util.system
Interface SystemService


public interface SystemService

This interface provides utility methods for getting the framework, JVM and OS system properties. Also provides a method for getting a runtime info including active threads, used memory, ect....

Author:
Daniel Janev

Field Summary
static byte ALL
          Constant for ALL runtime information and ALL system properties.
static byte CLASSPATH
          Constant for CLASSPATH runtime information.
static byte FRAMEWORK
          Constant for FRAMEWORK system properties.
static byte JVM
          Constant for JVM system properties.
static byte MEMORY
          Constant for MEMORY runtime information.
static byte OS
          Constant for OS system properties.
static byte PLATFORM
          Constant for PLATFORM runtime information (ALL_SPACE, USED_SPACE and FREE_SPACE).
static byte THREADS
          Constant for THREADS runtime information.
 
Method Summary
 java.util.Dictionary getProperties(byte type)
          This method will return the properties accordint to the specified type.
 RuntimeInfo getRuntimeInfo(byte type)
          This method should return the framework runtime info, according to the specified type.
 

Field Detail

THREADS

static final byte THREADS
Constant for THREADS runtime information.

See Also:
Constant Field Values

CLASSPATH

static final byte CLASSPATH
Constant for CLASSPATH runtime information.

See Also:
Constant Field Values

MEMORY

static final byte MEMORY
Constant for MEMORY runtime information.

See Also:
Constant Field Values

FRAMEWORK

static final byte FRAMEWORK
Constant for FRAMEWORK system properties.

See Also:
Constant Field Values

JVM

static final byte JVM
Constant for JVM system properties.

See Also:
Constant Field Values

OS

static final byte OS
Constant for OS system properties.

See Also:
Constant Field Values

ALL

static final byte ALL
Constant for ALL runtime information and ALL system properties.

See Also:
Constant Field Values

PLATFORM

static final byte PLATFORM
Constant for PLATFORM runtime information (ALL_SPACE, USED_SPACE and FREE_SPACE).

See Also:
Constant Field Values
Method Detail

getProperties

java.util.Dictionary getProperties(byte type)
This method will return the properties accordint to the specified type. The type must be FRAMEWORK, JVM, OS or ALL. Otherwize this method should return null.

Parameters:
type - the type of the properties.
Returns:
the properties according to the specified type.

getRuntimeInfo

RuntimeInfo getRuntimeInfo(byte type)
This method should return the framework runtime info, according to the specified type.

Parameters:
type - the type os the runtime information, the property must be THREADS, CLASSPATH, MEMORY, PLATFORM or ALL, otherwize this method should return null.
Returns:
the specified runtime properties.

Framework Professional Edition Package


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