public class TopologyClusterSyncObj extends AbstractSyncObj<TopologyClusterSyncObj> implements TopologyCluster
TopologyClusterDTO objects.
for high availability.| Constructor and Description |
|---|
TopologyClusterSyncObj() |
TopologyClusterSyncObj(long id,
Map<DataPathId,Set<Link>> links,
DataPathId root) |
| 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.
|
long |
id()
Retrieves the unique id of this cluster.
|
Map<DataPathId,Set<Link>> |
links()
Retrieves the map of device dpid and the set of links associated
to that dpid.
|
Set<DataPathId> |
nodes()
Retrieves the set of devicepath ids of the devices comprising this
cluster.
|
DataPathId |
root()
Retrieves the set of devicepath ids of the devices comprising this
cluster.
|
isNull, mapper, marshal, unmarshalpublic static final String ROOT
public static final String ROOTS
public TopologyClusterSyncObj()
public TopologyClusterSyncObj(long id,
Map<DataPathId,Set<Link>> links,
DataPathId root)
public com.fasterxml.jackson.databind.node.ObjectNode encode(com.fasterxml.jackson.databind.node.ObjectNode rawNode)
AbstractSyncObjencode in class AbstractSyncObj<TopologyClusterSyncObj>rawNode - the empty ObjectNode that needs to be built on.public SyncObj decode(com.fasterxml.jackson.databind.node.ObjectNode jsonNode)
AbstractSyncObjdecode in class AbstractSyncObj<TopologyClusterSyncObj>jsonNode - the raw ObjectNode synthesized from the bytes retrieved
from the HA infrastructure.public long id()
TopologyClusterid in interface TopologyClusterpublic Map<DataPathId,Set<Link>> links()
TopologyClusterlinks in interface TopologyClusterpublic Set<DataPathId> nodes()
TopologyClusternodes in interface TopologyClusterpublic DataPathId root()
TopologyClusterroot in interface TopologyClusterCopyright © 2014. All Rights Reserved.