|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.realtime.RealtimeSystem
RealtimeSystem
provides a means for tuning the behavior
of the implementation by specifying parameters such as the maximum
number of locks that can be in use concurrently, and the monitor
control policy. In addition, RealtimeSystem
provides
a mechanism for obtaining access to the security manager, garbage
collector and scheduler, to make queries from them or to set
parameters.
Field Summary | |
static byte |
BIG_ENDIAN
Value to set the byte ordering for the underlying hardware. |
static byte |
BYTE_ORDER
The byte ordering of the underlying hardware. |
private static int |
concurrentLocksUsed
|
private static javax.realtime.GarbageCollector |
garbageCollector
|
static byte |
LITTLE_ENDIAN
Value to set the byte ordering for the underlying hardware. |
private static int |
maxConcurrentLocks
|
private static boolean |
maxHard
|
private static javax.realtime.RealtimeSecurity |
securityManager
|
Constructor Summary | |
RealtimeSystem()
|
Method Summary | |
static javax.realtime.GarbageCollector |
currentGC()
Return a reference to the currently active garbage collector for the heap. |
static int |
getConcurrentLocksUsed()
Gets the maximum number of locks that have been used concurrently. |
(package private) static javax.realtime.GarbageCollector |
getCurrentGC()
Native call to retrieve the current GarbageCollector . |
static int |
getMaximumConcurrentLocks()
Gets the maximum number of locks that can be used concurrently without incurring an execution time increase as set by the setMaximumConcurrentLocks() methods. |
static javax.realtime.RealtimeSecurity |
getSecurityManager()
Gets a reference to the security manager used to control access to real-time system features such as access to physical memory. |
static void |
setMaximumConcurrentLocks(int number)
Sets the anticipated maximum number of locks that may be held or waited on concurrently. |
static void |
setMaximumConcurrentLocks(int number,
boolean hard)
Sets the anticipated maximum number of locks that may be held or waited on concurrently. |
static void |
setSecurityManager(javax.realtime.RealtimeSecurity manager)
Set a new real-time security manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte BIG_ENDIAN
public static final byte LITTLE_ENDIAN
public static final byte BYTE_ORDER
private static javax.realtime.GarbageCollector garbageCollector
private static javax.realtime.RealtimeSecurity securityManager
private static int maxConcurrentLocks
private static int concurrentLocksUsed
private static boolean maxHard
Constructor Detail |
public RealtimeSystem()
Method Detail |
static javax.realtime.GarbageCollector getCurrentGC()
GarbageCollector
.
public static javax.realtime.GarbageCollector currentGC()
GarbageCollector
object which is the current
collector collecting objects on the traditional Java heap.public static int getConcurrentLocksUsed()
public static int getMaximumConcurrentLocks()
setMaximumConcurrentLocks()
methods.
public static javax.realtime.RealtimeSecurity getSecurityManager()
RealtimeSecurity
object representing the
default realtime security manager.public static void setMaximumConcurrentLocks(int number)
number
- An integer whose value becomes the number of locks
that can be in simultaneous use without incurring
an execution time increase. If number
is less than or equal to zero nothing happens.public static void setMaximumConcurrentLocks(int number, boolean hard)
number
- The maximum number of locks that can be in simultaneous
use without incurring an execution time increase. If
number
is less than or equal to zero
nothing happens.hard
- If true, number
sets the limit. If a lock is
attempted which would cause the number of locks to exceed
number
then a ResourceLimitError
is thrown.public static void setSecurityManager(javax.realtime.RealtimeSecurity manager) throws java.lang.SecurityException
manager
- A RealtimeSecurity
object which will
become the new security manager.
java.lang.SecurityException
- Thrown if security manager
has already been set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |