solar.service.dan
Class GraphManager

java.lang.Object
  |
  +--solar.service.dan.GraphManager
Direct Known Subclasses:
DistGraphManager, LocalGraphManager

public abstract class GraphManager
extends java.lang.Object

A graph manager maintains individual DAN graph that is potentially distributed across several Planets.

Version:
$Id: GraphManager.java,v 1.4 2003/10/05 18:50:55 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  DanService _dan
          The DAN service to which this graph manager is affiliated.
protected  GraphSpec _gs
          The graph spec to be mantained.
protected  NodeManager _nodeman
          The node manager holding the table (node_guid, NodeHandler).
protected  java.util.Hashtable _nodes
          The table of (node_guid, current_address).
protected  java.util.Hashtable _optable
          The table of (op_name, node_guid).
 
Constructor Summary
GraphManager(GraphSpec gs)
          Constructs the manager with its reponsible graph spec.
 
Method Summary
 Address getAddress(Guid guid)
          Return the currrent address of the node with specified guid.
 Guid getGuid(java.lang.String opname)
          Return the guid for loaded operator defined in graph spec.
 void init(DanService dan)
          Init the graph manager.
abstract  Guid loadOperator(java.lang.String opname)
          Load the root operator and all its children as defined in the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_gs

protected GraphSpec _gs
The graph spec to be mantained.


_nodes

protected java.util.Hashtable _nodes
The table of (node_guid, current_address).


_optable

protected java.util.Hashtable _optable
The table of (op_name, node_guid).


_dan

protected DanService _dan
The DAN service to which this graph manager is affiliated.


_nodeman

protected NodeManager _nodeman
The node manager holding the table (node_guid, NodeHandler).

Constructor Detail

GraphManager

public GraphManager(GraphSpec gs)
Constructs the manager with its reponsible graph spec.

Method Detail

init

public void init(DanService dan)
Init the graph manager.


getGuid

public Guid getGuid(java.lang.String opname)
Return the guid for loaded operator defined in graph spec.


getAddress

public Address getAddress(Guid guid)
Return the currrent address of the node with specified guid.


loadOperator

public abstract Guid loadOperator(java.lang.String opname)
                           throws DanException
Load the root operator and all its children as defined in the graph.

DanException