Package org.onosproject.cluster
Class ClusterMetadataDiff
- java.lang.Object
-
- org.onosproject.cluster.ClusterMetadataDiff
-
@Deprecated public class ClusterMetadataDiff extends Object
Deprecated.since 1.14Utility for examining differences between twometadata
values.
-
-
Constructor Summary
Constructors Constructor Description ClusterMetadataDiff(ClusterMetadata oldValue, ClusterMetadata newValue)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
clusterSecretChanged()
Deprecated.Returns whether the cluster-wide shared secret changed.Set<ControllerNode>
nodesAdded()
Deprecated.Returns the set ofnodes
added with this metadata change.Set<NodeId>
nodesRemoved()
Deprecated.Returns the set ofnodes
removed with this metadata change.Map<PartitionId,PartitionDiff>
partitionDiffs()
Deprecated.Returns a mapping of all partition diffs.
-
-
-
Constructor Detail
-
ClusterMetadataDiff
public ClusterMetadataDiff(ClusterMetadata oldValue, ClusterMetadata newValue)
Deprecated.
-
-
Method Detail
-
nodesAdded
public Set<ControllerNode> nodesAdded()
Deprecated.Returns the set ofnodes
added with this metadata change.- Returns:
- set of controller nodes
-
nodesRemoved
public Set<NodeId> nodesRemoved()
Deprecated.Returns the set ofnodes
removed with this metadata change.- Returns:
- set of controller node identifiers
-
clusterSecretChanged
public boolean clusterSecretChanged()
Deprecated.Returns whether the cluster-wide shared secret changed.- Returns:
- whether the cluster secret changed
-
partitionDiffs
public Map<PartitionId,PartitionDiff> partitionDiffs()
Deprecated.Returns a mapping of all partition diffs.- Returns:
- partition diffs.
-
-