|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.CpuLeaseSleepRollcallListener
public class CpuLeaseSleepRollcallListener
CpuLeaseSleepRollcallListener is responsible for keeping the CPU awake as requested by external processes.
| Field Summary |
|---|
| Fields inherited from interface org.mbari.siam.distributed.SleepRollCallListener |
|---|
NO_TIME_SPECIFIED |
| Method Summary | |
|---|---|
void |
cpuLease(int requestorID,
long when,
long howLong)
Request that the CPU come on at a certain time in the future and/or remain on for a certain duration. |
java.util.Vector |
getLessees()
|
long |
okToSleep()
Return <= 0 if need to stay awake. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void cpuLease(int requestorID,
long when,
long howLong)
throws java.rmi.RemoteException
requestorID - Unique ID (externally assigned) to identify
who is requesting the CPU to remain on. Allows for multiple
requestors each requesting that the CPU be on.when - Milliseconds until the requestor needs the CPU on.
Use 0 (zero) to request that the CPU remain on starting now.howLong - Number of milliseconds that the CPU should remain
on. Use 0 (zero) to cancel an earlier request.
java.rmi.RemoteExceptionpublic long okToSleep()
okToSleep in interface SleepRollCallListenerpublic java.util.Vector getLessees()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||