|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.nodemap.affinity.BasicState
com.sun.sgs.impl.service.nodemap.affinity.LPADriver
public class LPADriver
A driver for the Label Propagation Algorithm affinity group finders. The driver is responsible for instantiating the affinity group system, managing its life cycle, and invoking the group finder as necessary.
A driver must be instantiated on each node of the Darkstar cluster.
The following properties are supported:
com.sun.sgs.impl.service.nodemap.affinity.graphbuilder.class
com.sun.sgs.impl.service.nodemap.affinity.graph.dlpa.WeightedGraphBuilder
None if no affinity group finding is required, which is
useful for testing.
com.sun.sgs.impl.service.nodemap.affinity.update.period
60 (one minute)}
5 and 65535.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.sgs.impl.service.nodemap.affinity.BasicState |
|---|
BasicState.State |
| Field Summary | |
|---|---|
(package private) static int |
DEFAULT_UPDATE_FREQ
The default value of the update frequency, in seconds. |
static String |
GRAPH_CLASS_NONE
The value to be given to GRAPH_CLASS_PROPERTY if no
affinity group finding should be instantiated (useful for testing). |
static String |
GRAPH_CLASS_PROPERTY
The property for specifying the graph builder class. |
static String |
UPDATE_FREQ_PROPERTY
The property name for the update frequency. |
| Fields inherited from class com.sun.sgs.impl.service.nodemap.affinity.BasicState |
|---|
state |
| Constructor Summary | |
|---|---|
LPADriver(Properties properties,
ComponentRegistry systemRegistry,
TransactionProxy txnProxy)
Constructs an instance of this class with the specified properties. |
|
| Method Summary | |
|---|---|
void |
disable()
Disables the finder. |
void |
enable()
Enables the finder. |
AffinityGraphBuilder |
getGraphBuilder()
Returns the graph builder used by this driver, or null if
we are not building graphs. |
GraphListener |
getGraphListener()
Returns the graph listener used by this driver, or null if
we are not building graphs. |
void |
shutdown()
Shuts down the finder. |
| Methods inherited from class com.sun.sgs.impl.service.nodemap.affinity.BasicState |
|---|
checkForDisabledOrShutdownState, checkForShutdownState, setDisabledState, setEnabledState, setShutdownState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GRAPH_CLASS_PROPERTY
public static final String UPDATE_FREQ_PROPERTY
static final int DEFAULT_UPDATE_FREQ
public static final String GRAPH_CLASS_NONE
GRAPH_CLASS_PROPERTY if no
affinity group finding should be instantiated (useful for testing).
| Constructor Detail |
|---|
public LPADriver(Properties properties,
ComponentRegistry systemRegistry,
TransactionProxy txnProxy)
throws Exception
properties - the properties for configuring this subsystemsystemRegistry - the registry of available system componentstxnProxy - the transaction proxy
Exception - if an error occurs during creation| Method Detail |
|---|
public void disable()
disable in interface AffinityGroupFinderpublic void enable()
enable in interface AffinityGroupFinderpublic void shutdown()
shutdown in interface AffinityGroupFinderpublic AffinityGraphBuilder getGraphBuilder()
null if
we are not building graphs.
null if there is nonepublic GraphListener getGraphListener()
null if
we are not building graphs.
null if there is none
|
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 | |||||||||