| Trees | Indices | Help |
|
|---|
|
|
Cluster node set.
A module to deal efficiently with 1D rangesets and nodesets (pdsh-like).
Instances of RangeSet and NodeSet both provide similar operations than
the builtin set() type and Set object.
[ See http://www.python.org/doc/lib/set-objects.html ]
Usage example:
# Import NodeSet class
from ClusterShell.NodeSet import NodeSet
# Create a new nodeset from pdsh-like pattern
nodeset = NodeSet("cluster[1-30]")
# Add cluster32 to nodeset
nodeset.update("cluster32")
# Remove from nodeset
nodeset.difference_update("cluster[2-5]")
# Print nodeset as a pdsh-like pattern
print nodeset
# Iterate over node names in nodeset
for node in nodeset:
print node
|
|||
|
RangeSetException Base RangeSet exception class. |
|||
|
RangeSetParseError Raised when RangeSet parsing cannot be done properly. |
|||
|
RangeSetPaddingError Raised when a fatal padding incoherency occurs |
|||
|
NodeSetException Base NodeSet exception class. |
|||
|
NodeSetParseError Raised when NodeSet parsing cannot be done properly. |
|||
|
NodeSetParseRangeError Raised when bad range is encountered during NodeSet parsing. |
|||
|
RangeSet Advanced range sets. |
|||
|
NodeSet Iterable class of nodes with node ranges support. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ =
|
|||
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 9 10:46:32 2010 | http://epydoc.sourceforge.net |