org.jdtaus.core.lang
Interface Runtime


public interface Runtime

Implementation runtime.

The implementation runtime allows applications to interface with the environment implementations are running in.

Example: Accessing the runtime of all jDTAUS Core SPI compliant implementations in the system

 Runtime runtime =
     (Runtime) ContainerFactory.getContainer().
     getImplementation(Runtime.class, "jDTAUS Core SPI");
 

Version:
$Id: Runtime.java 1914 2007-03-01 02:20:44Z schulte2005 $
Author:
Christian Schulte

Method Summary
 long getAllocatedPercent()
          Computes the amount of allocated memory in percent.
 long getAvailableBooleans()
          Computes the maximum number of boolean values currently being available to allocation.
 long getAvailableBytes()
          Computes the maximum number of byte values currently being available to allocation.
 long getAvailableChars()
          Computes the maximum number of char values currently being available to allocation.
 long getAvailableDoubles()
          Computes the maximum number of double values currently being available to allocation.
 long getAvailableFloats()
          Computes the maximum number of float values currently being available to allocation.
 long getAvailableIntegers()
          Computes the maximum number of integer values currently being available to allocation.
 long getAvailableLongs()
          Computes the maximum number of long values currently being available to allocation.
 long getAvailableShorts()
          Computes the maximum number of short values currently being available to allocation.
 

Method Detail

getAllocatedPercent

public long getAllocatedPercent()
Computes the amount of allocated memory in percent.

Returns:
percent of memory currently allocated (so that % of memory is currently available to allocation).

getAvailableBooleans

public long getAvailableBooleans()
Computes the maximum number of boolean values currently being available to allocation.

Returns:
number of boolean values currently available to allocation.

getAvailableBytes

public long getAvailableBytes()
Computes the maximum number of byte values currently being available to allocation.

Returns:
number of byte values currently available to allocation.

getAvailableChars

public long getAvailableChars()
Computes the maximum number of char values currently being available to allocation.

Returns:
number of char values currently available to allocation.

getAvailableDoubles

public long getAvailableDoubles()
Computes the maximum number of double values currently being available to allocation.

Returns:
number of double values currently available to allocation.

getAvailableFloats

public long getAvailableFloats()
Computes the maximum number of float values currently being available to allocation.

Returns:
number of float values currently available to allocation.

getAvailableIntegers

public long getAvailableIntegers()
Computes the maximum number of integer values currently being available to allocation.

Returns:
number of integer values currently available to allocation.

getAvailableLongs

public long getAvailableLongs()
Computes the maximum number of long values currently being available to allocation.

Returns:
number of long values currently available to allocation.

getAvailableShorts

public long getAvailableShorts()
Computes the maximum number of short values currently being available to allocation.

Returns:
number of short values currently available to allocation.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.