|
|||||||||
| 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.P2PDirectoryUDPHelper
public class P2PDirectoryUDPHelper
| Constructor Summary | |
|---|---|
P2PDirectoryUDPHelper(P2PDirectory directory,
int numWorkers)
Creates a new instance of P2PDirectoryUDPHelper |
|
| Method Summary | |
|---|---|
void |
handleJob(uk.ac.ic.doc.automed.util.queue.Job job)
Implement JobHandler interface.This method is invoked by every job thread to handle UDP requests from clients |
protected void |
runPeerMonitorProcesses()
Execute two separate background processes for monitoring peers' status: (1) one process runs every hold_time interval to move in-active peers to gabage-collectible (2) another runs every flush_time interval to delete gabage-collectible peers |
protected void |
runUDPServer()
Create UDP server with loads of worker threads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public P2PDirectoryUDPHelper(P2PDirectory directory,
int numWorkers)
| Method Detail |
|---|
protected void runUDPServer()
throws AutoMedException
AutoMedException
protected void runPeerMonitorProcesses()
throws AutoMedException
AutoMedException
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 | ||||||||