com.sun.sgs.impl.service.nodemap.affinity
Interface LPAAffinityGroupFinder

All Superinterfaces:
AffinityGroupFinder
All Known Implementing Classes:
DistGraphBuilderServerImpl, LabelPropagationServer, SingleLabelPropagation

public interface LPAAffinityGroupFinder
extends AffinityGroupFinder

The affinity group finder finds affinity groups within a Darkstar cluster using the LPA algorithm.


Method Summary
 NavigableSet<RelocatingAffinityGroup> findAffinityGroups()
          Finds affinity groups across all nodes in the Darkstar cluster.
 
Methods inherited from interface com.sun.sgs.impl.service.nodemap.affinity.AffinityGroupFinder
disable, enable, shutdown
 

Method Detail

findAffinityGroups

NavigableSet<RelocatingAffinityGroup> findAffinityGroups()
                                                         throws AffinityGroupFinderFailedException
Finds affinity groups across all nodes in the Darkstar cluster. If no groups are found, an empty set is returned. If an error is encountered during a run, an AffinityGroupFinderFailedException is thrown. Errors include nodes not responding to server requests.

Returns:
the affinity groups, or an empty set if none are found
Throws:
AffinityGroupFinderFailedException - if there is an error
IllegalStateException - if the finder is disabled or shut down

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved