public abstract class Node extends Object
| Constructor and Description |
|---|
Node(NodeType type) |
Node(NodeType type,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalId(String id)
This method adds a global correlation id.
|
void |
addInteractionId(String id)
This method adds an interaction correlation id.
|
void |
addLocalId(String id)
This method adds a local correlation id.
|
long |
completedDuration()
This method calculates the duration when all work initiated by this node
has been completed.
|
long |
completedTime()
This method calculates the time when all work initiated by this node
has been completed.
|
long |
endTime()
This method calculates the end time of this node based on the
start time and duration.
|
boolean |
equals(Object obj) |
protected void |
findCorrelatedNodes(CorrelationIdentifier cid,
long baseTime,
Set<Node> nodes)
This method identifies all of the nodes within a business transaction that
are associated with the supplied correlation identifier.
|
List<CorrelationIdentifier> |
getCorrelationIds() |
Map<String,String> |
getDetails()
This method returns the specific details about the node.
|
long |
getDuration() |
String |
getFault() |
String |
getFaultDescription() |
long |
getStartTime() |
NodeType |
getType() |
String |
getUri() |
int |
hashCode() |
boolean |
interactionNode()
This method indicates whether this is an interaction based node.
|
protected boolean |
isCorrelated(CorrelationIdentifier cid,
long baseTime)
This method determines whether the node is correlated to the supplied
identifier.
|
protected long |
overallEndTime()
This method determines the overall end time of this node.
|
Node |
setCorrelationIds(List<CorrelationIdentifier> correlationIds) |
Node |
setDetails(Map<String,String> details) |
Node |
setDuration(long duration) |
Node |
setFault(String fault) |
Node |
setFaultDescription(String faultDescription) |
Node |
setStartTime(long startTime) |
Node |
setType(NodeType type) |
Node |
setUri(String uri) |
public boolean interactionNode()
public NodeType getType()
public String getUri()
public long getStartTime()
public Node setStartTime(long startTime)
startTime - the startTime to setpublic long getDuration()
public Node setDuration(long duration)
duration - the duration to setpublic String getFault()
public String getFaultDescription()
public Node setFaultDescription(String faultDescription)
faultDescription - the faultDescription to setpublic Map<String,String> getDetails()
public Node setDetails(Map<String,String> details)
details - the details to setpublic List<CorrelationIdentifier> getCorrelationIds()
public Node setCorrelationIds(List<CorrelationIdentifier> correlationIds)
correlationIds - the correlationIds to setpublic void addInteractionId(String id)
id - The idpublic void addGlobalId(String id)
id - The idpublic void addLocalId(String id)
id - The idpublic long endTime()
public long completedTime()
public long completedDuration()
protected long overallEndTime()
protected void findCorrelatedNodes(CorrelationIdentifier cid, long baseTime, Set<Node> nodes)
cid - The correlation identifierbaseTime - The base time at which the correlation is being evaluatednodes - The set of nodes that are associated with the correlation identifierprotected boolean isCorrelated(CorrelationIdentifier cid, long baseTime)
cid - The correlation idbaseTime - The base time at which the correlation is being evaluatedCopyright © 2015 Red Hat, Inc.. All rights reserved.