fr.dyade.aaa.agent.WakeUpTask Class Reference

Inherits fr.dyade.aaa.util.TimerTask.

Inheritance diagram for fr.dyade.aaa.agent.WakeUpTask:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.agent.WakeUpTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WakeUpTask (AgentId id, Class wakeUpNotClass)
void run ()
void schedule (long period)

Detailed Description

Class used to schedule a wake up on a specific agent. A notification is sent to activate the agent.

Definition at line 13 of file WakeUpTask.java.


Constructor & Destructor Documentation

fr.dyade.aaa.agent.WakeUpTask.WakeUpTask ( AgentId  id,
Class  wakeUpNotClass 
)

Creates a new WakeUpTask.

Parameters:
id the id of the agent to wake up.
wakeUpNotClass the notification which will be sent to the agent

Definition at line 27 of file WakeUpTask.java.


Member Function Documentation

void fr.dyade.aaa.agent.WakeUpTask.run (  )  [virtual]

Method called by the timer when the task is ready to execute.

Implements fr.dyade.aaa.util.TimerTask.

Definition at line 33 of file WakeUpTask.java.

void fr.dyade.aaa.agent.WakeUpTask.schedule ( long  period  ) 

Schedules the wake up task for execution after the given period.

Parameters:
period Delay in ms before waking up.

Definition at line 47 of file WakeUpTask.java.

References fr.dyade.aaa.util.Timer.schedule(), and fr.dyade.aaa.util.TimerTask.timer.

Referenced by org.objectweb.joram.mom.proxies.UserAgent.agentInitialize(), org.objectweb.joram.mom.dest.MonitoringTopic.agentInitialize(), org.objectweb.joram.mom.dest.Queue.agentInitialize(), com.scalagent.joram.mom.dest.mail.JavaMailTopic.agentInitialize(), com.scalagent.joram.mom.dest.mail.JavaMailQueue.agentInitialize(), org.objectweb.joram.mom.proxies.UserAgent.react(), org.objectweb.joram.mom.dest.MonitoringTopic.react(), org.objectweb.joram.mom.dest.Queue.react(), com.scalagent.joram.mom.dest.mail.JavaMailTopic.react(), and com.scalagent.joram.mom.dest.mail.JavaMailQueue.react().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:56 2008 for joram by  doxygen 1.5.0