|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.common.NodesYamlGenerator
public class NodesYamlGenerator
NodesYamlGenerator produces YAML formatted output from a set of INodeEntry
data. Nodes should be added with
the addNode(INodeEntry)
method, then generate()
called.
Constructor Summary | |
---|---|
NodesYamlGenerator(java.io.File destfile)
Serialize nodes data as yaml to a file. |
|
NodesYamlGenerator(java.io.OutputStream outputStream)
Serialize nodes data as yaml to an outputstream. |
|
NodesYamlGenerator(java.io.Writer writer)
Serialize nodes data as yaml to a writer. |
Method Summary | |
---|---|
void |
addNode(INodeEntry node)
Add Node object |
void |
addNodes(java.util.Collection<INodeEntry> nodes)
Add all Node objects |
void |
generate()
Generate output from the provided ndoes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodesYamlGenerator(java.io.File destfile)
destfile
- public NodesYamlGenerator(java.io.OutputStream outputStream)
destfile
- public NodesYamlGenerator(java.io.Writer writer)
destfile
- Method Detail |
---|
public void addNode(INodeEntry node)
NodesFileGenerator
addNode
in interface NodesFileGenerator
public void addNodes(java.util.Collection<INodeEntry> nodes)
NodesFileGenerator
addNodes
in interface NodesFileGenerator
nodes
- the nodespublic void generate() throws java.io.IOException, NodesGeneratorException
NodesFileGenerator
generate
in interface NodesFileGenerator
java.io.IOException
NodesGeneratorException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |