|
|||||||||
| 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.FlushTimeHelper
public class FlushTimeHelper
| Constructor Summary | |
|---|---|
FlushTimeHelper(Queue msgQueue,
P2PDirectory directoryObj,
HoldTimeHelper hoHelper)
Creates a new instance of HoldTimeHelper |
|
| Method Summary | |
|---|---|
boolean |
getReadyState()
|
void |
handleAction()
Implements Theadable interface. |
void |
handleJob(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 FlushTimeHelper(Queue msgQueue,
P2PDirectory directoryObj,
HoldTimeHelper hoHelper)
throws AutoMedException
AutoMedException| Method Detail |
|---|
public boolean isRunning()
public boolean getReadyState()
getReadyState in interface Threadable
public void runAction()
throws AutoMedException
Theadable interface
This method acts as the background process at the server to update peer
runAction in interface ThreadableAutoMedExceptionpublic void reset()
public void handleAction()
Theadable interface.
This method handles exceptions when running as a thread.
handleAction in interface ThreadableAutoMedException
public void handleJob(Job job)
throws AutoMedException
JobHandler interface.
handleJob in interface JobHandlerAutoMedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||