|
||||||||
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.HelloTimeHelper
public class HelloTimeHelper
Field Summary | |
---|---|
private HoldTimeHelper |
_hotHelper
|
private boolean |
_isRunning
|
private Queue |
_msgQueue
|
private TimedThread |
_process
|
private P2PDirectory |
_theDirectory
|
Constructor Summary | |
---|---|
HelloTimeHelper(Queue msgQueue,
P2PDirectory directoryObj)
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. |
private void |
setHoldTimer()
If HoldTimeHelper thread is not created, create it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Queue _msgQueue
private P2PDirectory _theDirectory
private HoldTimeHelper _hotHelper
private TimedThread _process
private boolean _isRunning
Constructor Detail |
---|
public HelloTimeHelper(Queue msgQueue, P2PDirectory directoryObj) 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 Threadable
AutoMedException
private void setHoldTimer() throws AutoMedException
HoldTimeHelper
thread is not created, create it. Otherwise check
AutoMedException
public void reset()
public void handleAction()
Theadable
interface.
This method handles exceptions when running as a thread.
handleAction
in interface Threadable
AutoMedException
public void handleJob(Job job) throws AutoMedException
JobHandler
interface.
handleJob
in interface JobHandler
AutoMedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |