Package com.dtolabs.rundeck.core.common
Class NodeSetImpl
- java.lang.Object
-
- com.dtolabs.rundeck.core.common.NodeSetImpl
-
- All Implemented Interfaces:
INodeSet
,NodeReceiver
,java.lang.Iterable<INodeEntry>
public class NodeSetImpl extends java.lang.Object implements INodeSet, NodeReceiver
Basic Implementation of INodeSet
-
-
Constructor Summary
Constructors Constructor Description NodeSetImpl()
NodeSetImpl(java.util.HashMap<java.lang.String,INodeEntry> nodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description INodeEntry
getNode(java.lang.String name)
java.util.Collection<java.lang.String>
getNodeNames()
java.util.Collection<INodeEntry>
getNodes()
java.util.Iterator<INodeEntry>
iterator()
void
putNode(INodeEntry node)
Put a filled node entry into the datasetvoid
putNodes(INodeSet set)
Add all nodes from a node set to this node setvoid
putNodes(java.util.Collection<INodeEntry> set)
Add all nodes from a collection to this node setstatic NodeSetImpl
singleNodeSet(INodeEntry node)
java.lang.String
toString()
-
-
-
Constructor Detail
-
NodeSetImpl
public NodeSetImpl()
-
NodeSetImpl
public NodeSetImpl(java.util.HashMap<java.lang.String,INodeEntry> nodes)
-
-
Method Detail
-
singleNodeSet
public static NodeSetImpl singleNodeSet(INodeEntry node)
-
putNode
public void putNode(INodeEntry node)
Description copied from interface:NodeReceiver
Put a filled node entry into the dataset- Specified by:
putNode
in interfaceNodeReceiver
- Parameters:
node
- node entry
-
getNodes
public java.util.Collection<INodeEntry> getNodes()
-
getNode
public INodeEntry getNode(java.lang.String name)
-
getNodeNames
public java.util.Collection<java.lang.String> getNodeNames()
- Specified by:
getNodeNames
in interfaceINodeSet
-
putNodes
public void putNodes(INodeSet set)
Add all nodes from a node set to this node set- Parameters:
set
- node set
-
putNodes
public void putNodes(java.util.Collection<INodeEntry> set)
Add all nodes from a collection to this node set- Parameters:
set
- node set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
iterator
public java.util.Iterator<INodeEntry> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<INodeEntry>
-
-