|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LPAServer
The label propagation algorithm server. These methods can all be called by LPA client nodes.
| Method Summary | |
|---|---|
void |
finishedIteration(long nodeId,
boolean converged,
boolean failed,
int iteration)
Indicates that the given nodeId has completed an iteration
of the label propagation algorithm. |
LPAClient |
getLPAClientProxy(long nodeId)
Returns the LPAClient for the given nodeId. |
void |
readyToBegin(long nodeId,
boolean failed)
Indicates that the given nodeId is ready to begin the label
propagation algorithm. |
void |
register(long nodeId,
LPAClient client)
Registers a proxy for the node. |
| Method Detail |
|---|
void readyToBegin(long nodeId,
boolean failed)
throws IOException
nodeId is ready to begin the label
propagation algorithm.
nodeId - the node that is ready to beginfailed - true if there was a problem while setting up
IOException - if there is a communication problem
void finishedIteration(long nodeId,
boolean converged,
boolean failed,
int iteration)
throws IOException
nodeId has completed an iteration
of the label propagation algorithm.
nodeId - the node that has finished an iterationconverged - true if the node believes the algorithm has
converged and can be stoppedfailed - true if there was a problem while runningiteration - the iteration that has finished
IOException - if there is a communication problem
void register(long nodeId,
LPAClient client)
throws IOException
nodeId - the node the proxy representsclient - the client proxy, which this server and other nodes
can call
IOException - if there is a communication problem
LPAClient getLPAClientProxy(long nodeId)
throws IOException
LPAClient for the given nodeId.
If null is returned, the node should be considered failed.
nodeId - the node we need the proxy for
null
if the node has failed
IOException - if there is a communication problem
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||