public class BroadcastTreeSyncObj extends AbstractSyncObj<BroadcastTreeSyncObj> implements TopologyTree
BroadcastTree
objects. for high availability.| Constructor and Description |
|---|
BroadcastTreeSyncObj() |
BroadcastTreeSyncObj(HashMap<DataPathId,Link> links,
HashMap<DataPathId,Integer> costs) |
| Modifier and Type | Method and Description |
|---|---|
SyncObj |
decode(com.fasterxml.jackson.databind.node.ObjectNode jsonNode)
Convert a given raw ObjectNode to required SyncObject.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(com.fasterxml.jackson.databind.node.ObjectNode rawNode)
Stuffs an empty ObjectNode with desired form of the SyncObj.
|
int |
getCost(DataPathId dataPathId)
Provides cost associated a node in the tree.
|
HashMap<DataPathId,Integer> |
getCosts()
Provides All nodes and associated cost in the tree.
|
HashMap<DataPathId,Link> |
getLinks()
Provides All nodes and associated Links in the tree.
|
Link |
getTreeLink(DataPathId node)
Adds a node and associated Link to the tree.
|
isNull, mapper, marshal, unmarshalpublic static final String ROOT
public static final String ROOTS
public BroadcastTreeSyncObj()
public BroadcastTreeSyncObj(HashMap<DataPathId,Link> links, HashMap<DataPathId,Integer> costs)
public SyncObj decode(com.fasterxml.jackson.databind.node.ObjectNode jsonNode)
AbstractSyncObjdecode in class AbstractSyncObj<BroadcastTreeSyncObj>jsonNode - the raw ObjectNode synthesized from the bytes retrieved
from the HA infrastructure.public com.fasterxml.jackson.databind.node.ObjectNode encode(com.fasterxml.jackson.databind.node.ObjectNode rawNode)
AbstractSyncObjencode in class AbstractSyncObj<BroadcastTreeSyncObj>rawNode - the empty ObjectNode that needs to be built on.public HashMap<DataPathId,Integer> getCosts()
TopologyTreegetCosts in interface TopologyTreepublic HashMap<DataPathId,Link> getLinks()
TopologyTreegetLinks in interface TopologyTreepublic int getCost(DataPathId dataPathId)
TopologyTreegetCost in interface TopologyTreedataPathId - Id of the devicepublic Link getTreeLink(DataPathId node)
TopologyTreegetTreeLink in interface TopologyTreenode - Id of the device to be added to treeCopyright © 2014. All Rights Reserved.