|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.p2p.directory.HoldTimeHelper
public class HoldTimeHelper
| Constructor Summary | |
|---|---|
HoldTimeHelper(uk.ac.ic.doc.automed.util.queue.Queue msgQueue,
P2PDirectory directoryObj,
HelloTimeHelper heHelper)
Creates a new instance of HoldTimeHelper |
|
| Method Summary | |
|---|---|
void |
handleAction()
Implements Theadable interface. |
void |
handleJob(uk.ac.ic.doc.automed.util.queue.Job job)
Implement JobHandler interface.This method is invoked by every job thread to handle job |
boolean |
isRunning()
|
void |
reset()
Reset the hold-time process when necessary |
void |
runAction()
Implements Theadable interface
This method acts as the background process at the server to update peerstatus. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HoldTimeHelper(uk.ac.ic.doc.automed.util.queue.Queue msgQueue,
P2PDirectory directoryObj,
HelloTimeHelper heHelper)
| Method Detail |
|---|
public boolean isRunning()
public void runAction()
throws AutoMedException
Theadable interface
This method acts as the background process at the server to update peer
runAction in interface uk.ac.ic.doc.automed.util.thread.ThreadableAutoMedExceptionpublic void reset()
public void handleAction()
Theadable interface.
This method handles exceptions when running as a thread.
handleAction in interface uk.ac.ic.doc.automed.util.thread.ThreadableAutoMedException
public void handleJob(uk.ac.ic.doc.automed.util.queue.Job job)
throws AutoMedException
JobHandler interface.
handleJob in interface uk.ac.ic.doc.automed.util.queue.JobHandlerAutoMedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||