|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.MonitorControl
public abstract class MonitorControl
Jamaica Real-Time Specification for Java class MonitorControl.
This is the abstract super class of the monitor control policies PriorityCeilingEmulation and PriorityInheritance.
The static methods in this class permit setting of the default monitor control policy and the policy to be used for one particular object.
Constructor Summary | |
---|---|
protected |
MonitorControl()
Default Constructor, must be called by subclasses of MonitorControl. |
Method Summary | |
---|---|
static MonitorControl |
getMonitorControl()
getMonitorControl returns the default monitor control policy. |
static MonitorControl |
getMonitorControl(Object monitor)
getMonitorControl determines the monitor control associated with a given Java object. |
static MonitorControl |
setMonitorControl(MonitorControl monCtl)
setMonitorControl sets the default monitor control policy to the given argument. |
static MonitorControl |
setMonitorControl(Object monitor,
MonitorControl monCtl)
setMonitorControl set the monitor control for the monitor associated with a Java object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MonitorControl()
Method Detail |
---|
public static MonitorControl getMonitorControl(Object monitor)
monitor
- The java object, must not be null;
public static MonitorControl getMonitorControl()
public static MonitorControl setMonitorControl(MonitorControl monCtl)
require
((monCtl == null) || (monCtl instanceof PriorityInheritance) || (monCtl instanceof PriorityCeilingEmulation))
ensure
((monCtl == null) || (getMonitorControl() == monCtl))
monCtl
- The new policy.
SecurityException
- iff the caller is not permitted to set
default monitor control policy.public static MonitorControl setMonitorControl(Object monitor, MonitorControl monCtl)
monitor
- The Java object whose monitor's policy is to be
changed.monCtl
- The new monitor control to be used for the Java
object.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |