|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LPAClient
The label propagation algorithm clients, which can be called by
the LPAServer to coordinate runs of the algorithm.
| Method Summary | |
|---|---|
void |
disable()
Indicates that the affinity group finding system is disabled, so no new data should be collected (old can be disgarded). |
void |
enable()
Indicates that the affinity group finding system is enabled, so new data should be collected again. |
Set<AffinityGroup> |
getAffinityGroups(long runNumber,
boolean done)
Returns the affinity groups found on this node. |
Map<Object,Map<Integer,List<Long>>> |
getRemoteLabels(Collection<Object> objIds)
Get the labels for all vertices in our affinity graph for identities that have used the given objects. |
void |
notifyCrossNodeEdges(Collection<Object> objIds,
long nodeId)
Indicates that the given node probably contains edges to the graph on the local node. |
void |
prepareAlgorithm(long runNumber)
A new run of the algorithm is about to start, so the client nodes should do whatever is necessary to set up for that run. |
void |
shutdown()
Indicates that the affinity group finding system is shutting down, and all local resources should be cleaned up. |
void |
startIteration(int iteration)
Start an iteration of the algorithm. |
| Method Detail |
|---|
void prepareAlgorithm(long runNumber)
throws IOException
LPAServer.readyToBegin(long, boolean) should be called.
Called by the LPAServer.
runNumber - the number of this algorithm run
IOException - if there is a communication problem
void startIteration(int iteration)
throws IOException
LPAServer.finishedIteration(long, boolean, boolean, int) should be called.
Called by the LPAServer.
iteration - the iteration number
IOException - if there is a communication problem
Set<AffinityGroup> getAffinityGroups(long runNumber,
boolean done)
throws IOException
done set to true if it intends to start another algorithm
run at any time in the future, even if the current run fails.
runNumber - the run number provided to the last
prepareAlgorithm(long) calldone - true if all iterations are done, allowing cleanup
IllegalArgumentException - if runNumber does not match the last
call to prepareAlgorithm
IOException - if there is a communication problem
void notifyCrossNodeEdges(Collection<Object> objIds,
long nodeId)
throws IOException
objIds - the collection of objects, representing edges, that
probably have endpoints to vertices on this nodenodeId - the node with vertices attached to the edges
IOException - if there is a communication problem
Map<Object,Map<Integer,List<Long>>> getRemoteLabels(Collection<Object> objIds)
throws IOException
objIds - the collection of objects, representing potential graph
edges, that we want neighbor node information for
objIds) to
neighbor labels, with a count of each use
IOException - if there is a communication problem
void shutdown()
throws IOException
IOException - if there is a communication problem
void disable()
throws IOException
IOException - if there is a communication problem
void enable()
throws IOException
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 | |||||||||