public class NodeBuilder extends Object
| Constructor and Description |
|---|
NodeBuilder()
The default constructor.
|
NodeBuilder(NodeBuilder parent)
This constructor is initialised with the parent node builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
addChildNode(NodeBuilder child)
This method adds the supplied node builder as a child
of this node builder.
|
NodeBuilder |
addCorrelationId(CorrelationIdentifier cid) |
NodeBuilder |
addProperty(Property property) |
Node |
build()
This method builds the node hierarchy.
|
String |
getNodePath()
This method returns the node path associated with this node.
|
NodeBuilder |
setComponentType(String componentType) |
NodeBuilder |
setDuration(long duration) |
NodeBuilder |
setEndpointType(String endpointType) |
void |
setNodePath(String nodePath)
This method sets the node path for the node.
|
NodeBuilder |
setNodeType(NodeType nodeType)
This method sets the node type.
|
NodeBuilder |
setOperation(String operation) |
NodeBuilder |
setTimestamp(long timestamp) |
NodeBuilder |
setUri(String uri) |
public NodeBuilder()
public NodeBuilder(NodeBuilder parent)
parent - The parentprotected int addChildNode(NodeBuilder child)
child - public String getNodePath()
public void setNodePath(String nodePath)
nodePath - The node pathpublic NodeBuilder setUri(String uri)
uri - the uri to setpublic NodeBuilder setOperation(String operation)
operation - the operation to setpublic NodeBuilder setEndpointType(String endpointType)
endpointType - the endpointType to setpublic NodeBuilder setComponentType(String componentType)
componentType - the componentType to setpublic NodeBuilder setDuration(long duration)
duration - The duration (in microseconds)public NodeBuilder setTimestamp(long timestamp)
timestamp - The timestamp (in microseconds)public NodeBuilder addProperty(Property property)
public NodeBuilder addCorrelationId(CorrelationIdentifier cid)
cid - The correlation idpublic NodeBuilder setNodeType(NodeType nodeType)
nodeType - The node typepublic Node build()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.