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 8044 2009-07-02 01:29:05Z 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

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

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

getAvailableBooleans

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

Returns:
number of boolean values currently available to allocation.

getAvailableBytes

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

Returns:
number of byte values currently available to allocation.

getAvailableChars

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

Returns:
number of char values currently available to allocation.

getAvailableDoubles

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

Returns:
number of double values currently available to allocation.

getAvailableFloats

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

Returns:
number of float values currently available to allocation.

getAvailableIntegers

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

Returns:
number of integer values currently available to allocation.

getAvailableLongs

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

Returns:
number of long values currently available to allocation.

getAvailableShorts

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-2009 jDTAUS. All Rights Reserved.