ist.palcom.hmap
Class HmapMirrorer

java.lang.Object
  extended by ist.palcom.hmap.HmapNode
      extended by ist.palcom.hmap.HmapDir
          extended by ist.palcom.hmap.HmapMirrorer

public class HmapMirrorer
extends HmapDir

The purpose of the HmapMirrorer is to facilitate a mirroring of all its children. This is done by listening and acting on hmap state changing events. Acting here means invoking parallel events on a path corresponding to a communication mechanism capable of communicating the events to other mirrors


Nested Class Summary
 class HmapMirrorer.HmapMirrorerCallbackListener
          Listens for change events on a node, and calls back to the listening node via a callback through the node it listens on.
 class HmapMirrorer.HmapMirrorerVisitor
          Traverses a hmap and adds a mirroring callback listener to each node
 
Nested classes/interfaces inherited from class ist.palcom.hmap.HmapDir
HmapDir.EntryHandler
 
Nested classes/interfaces inherited from class ist.palcom.hmap.HmapNode
HmapNode.NameHandler
 
Field Summary
static String HMAPMIRRORER_NAME
          Hmap Mirror name
 
Fields inherited from class ist.palcom.hmap.HmapDir
entries, HMAPDIR_COMMAND_ADDNODE, HMAPDIR_COMMAND_REMOVENODE
 
Fields inherited from class ist.palcom.hmap.HmapNode
HET_DIR, HET_LEAF, HET_UNKNOWN, HMAPNODE_COMMAND_GETNAME, HMAPNODE_COMMAND_SETNAME, nameInvokator, nodeInvokator, parent, path, valueInvokator
 
Constructor Summary
HmapMirrorer(HmapPath commPath)
           
 
Method Summary
 void addNode(HmapNode node)
          Adds a hmap node to this dir Ensures that the child name is unique
 
Methods inherited from class ist.palcom.hmap.HmapDir
_addNode, addNode, invokeHandlers, invokeHandlersDown, invokeHandlersUp, isAncestorOf, iterator, recalculatePath, removeNode, removeNode, removeNode, resolve, resolveLocally, toString, toString, toStringAll, toStringFlat
 
Methods inherited from class ist.palcom.hmap.HmapNode
addHandler, addInvokator, addListener, asDir, asLeaf, callback, getFullyQualifiedType, getHmapEntryType, getKey, getName, getParent, getPath, getType, getTypeVersion, handle, handlerIterator, hasHandlers, hasInvokators, hasListeners, hasName, hasType, invokation, invokatorIterator, invokeListeners, isDir, isLeaf, listenerIterator, printHandlers, printInvokators, printListeners, recalculatePath, removeHandler, removeInvocator, removeListener, resolve, resolve, resolveDir, resolveDir, resolveDirLocally, resolveDirLocally, resolveLeaf, resolveLeaf, resolveLeafLocally, resolveLeafLocally, resolveLocally, resolveLocally, setName, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println
 

Field Detail

HMAPMIRRORER_NAME

public static final String HMAPMIRRORER_NAME
Hmap Mirror name

See Also:
Constant Field Values
Constructor Detail

HmapMirrorer

public HmapMirrorer(HmapPath commPath)
Method Detail

addNode

public void addNode(HmapNode node)
Description copied from class: HmapDir
Adds a hmap node to this dir Ensures that the child name is unique

Overrides:
addNode in class HmapDir
Parameters:
node - The node to add