|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.alarm.AlarmClock
This class provides a simple implementation of an alarm-clock service.
The aim of this service is to set up an alarm which wakes up all the listeners registered to receive events of type AlarmClock.
Constructor Summary | |
AlarmClock()
Default constructor. |
Method Summary | |
void |
addAlarmClockListener(AlarmClockListener listener)
Allows to register a listener for receiving alarm-clock events. |
void |
deleteCmf()
Delete the alarm-clock. |
java.lang.Integer |
getTimeout()
Deprecated. |
java.lang.Long |
getTimeoutAsLong()
Returns the timeout value (in milliseconds). |
void |
initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
Initialize the alarm-clock. |
boolean |
isActive()
Test if the alarm-clock is active. |
void |
performStart()
Starts the alarm-clock count. |
void |
performStop()
Stops the alarm-clock count. |
void |
removeAlarmClockListener(AlarmClockListener listener)
Enables a listener for alarm-clock events to be removed. |
void |
run()
This method is called by the thread created when the alarm-clock is started. |
void |
setTimeout(java.lang.Integer time)
Deprecated. |
void |
setTimeoutAsLong(java.lang.Long time)
Sets the timeout value (in milliseconds). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AlarmClock()
Method Detail |
public void initCmf(Framework cmf, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException
agent
- The core management framework to register the service with.name
- Object name.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.public void deleteCmf()
public void performStart()
public void performStop()
public boolean isActive()
public void run()
public void addAlarmClockListener(AlarmClockListener listener)
public void removeAlarmClockListener(AlarmClockListener listener)
public java.lang.Long getTimeoutAsLong()
public java.lang.Integer getTimeout()
public void setTimeoutAsLong(java.lang.Long time)
public void setTimeout(java.lang.Integer time)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |