|
||||||||||
| 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.graph.AbstractAffinityGraphBuilder
com.sun.sgs.impl.service.nodemap.affinity.dgb.DistGraphBuilder
public class DistGraphBuilder
The portion of the distributed affinity graph builder which resides on a local node. This code forwards graph information to its server, which builds a single large graph for all information in the system.
If the server cannot be contacted, we report the failure to the watchdog.
The following properties are supported:
com.sun.sgs.impl.service.nodemap.affinity.server.host
com.sun.sgs.server.host
property, if present, or localhost if this node is starting the
server NodeMappingServer.
com.sun.sgs.impl.service.nodemap.affinity.server.port
44537
LabelPropagationServer. This value must be no less than 0 and
no greater than 65535.
com.sun.sgs.impl.service.nodemap.affinity.snapshot.period
300000 (5 minutes)
com.sun.sgs.impl.service.nodemap.affinity.snapshot.count
1
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.sgs.impl.service.nodemap.affinity.BasicState |
|---|
BasicState.State |
| Field Summary |
|---|
| Fields inherited from class com.sun.sgs.impl.service.nodemap.affinity.graph.AbstractAffinityGraphBuilder |
|---|
DEFAULT_PERIOD, DEFAULT_PERIOD_COUNT, logger, PERIOD_COUNT_PROPERTY, PERIOD_PROPERTY, periodCount, PROP_BASE, snapshot, wrappedProps |
| Fields inherited from class com.sun.sgs.impl.service.nodemap.affinity.BasicState |
|---|
state |
| Constructor Summary | |
|---|---|
DistGraphBuilder(Properties properties,
ComponentRegistry systemRegistry,
TransactionProxy txnProxy)
Creates the client side of a distributed graph builder. |
|
| Method Summary | |
|---|---|
void |
disable()
Disables this builder. |
void |
enable()
Enables this builder. |
edu.uci.ics.jung.graph.UndirectedGraph<LabelVertex,WeightedEdge> |
getAffinityGraph()
Returns the current graph, with identities as vertices, and edges representing each object accessed by both identity endpoints. |
LPAAffinityGroupFinder |
getAffinityGroupFinder()
Returns the affinity group finder created by this builder, or null if none was created. |
LabelVertex |
getVertex(Identity id)
Gets the graph vertex for the given Identity. |
void |
shutdown()
Shuts down this builder. |
void |
updateGraph(Identity owner,
AccessedObjectsDetail detail)
Update the graph based on the objects accessed in a task. |
| 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 |
| Constructor Detail |
|---|
public DistGraphBuilder(Properties properties,
ComponentRegistry systemRegistry,
TransactionProxy txnProxy)
throws Exception
properties - the properties for configuring this buildersystemRegistry - the registry of available system componentstxnProxy - the transaction proxy
Exception - if an error occurs| Method Detail |
|---|
public void updateGraph(Identity owner,
AccessedObjectsDetail detail)
updateGraph in interface AffinityGraphBuilderowner - the task owner (the object making the accesses)detail - detailed information about the object accesses, including
a list of the accessed objectspublic edu.uci.ics.jung.graph.UndirectedGraph<LabelVertex,WeightedEdge> getAffinityGraph()
The returned graph can not be modified.
This implementation will always throw an
UnsupportedOperationException, because the graph is not
held on the local node.
getAffinityGraph in interface AffinityGraphBuilderpublic LabelVertex getVertex(Identity id)
Identity.
This implementation will always throw an
UnsupportedOperationException, because the graph is not
held on the local node.
getVertex in interface AffinityGraphBuilderid - an identity
null if
there is no such vertexpublic void enable()
enable in interface AffinityGraphBuilderpublic void disable()
While disabled, no new graph updates are applied, but the graph pruners continue to discard old data.
disable in interface AffinityGraphBuilderpublic void shutdown()
shutdown in interface AffinityGraphBuilderpublic LPAAffinityGroupFinder getAffinityGroupFinder()
null if none was created. Some algorithms only create
the finder on the server node.
getAffinityGroupFinder in interface AffinityGraphBuildernull
|
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 | |||||||||