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.
|
protected long |
completedDuration()
This method calculates the duration when all work initiated by this node
has been completed.
|
protected long |
completedTime()
This method calculates the time (in nanoseconds) when all work initiated
by this node has been completed.
|
protected long |
endTime()
This method calculates the end time of this node based on the
base time and duration.
|
boolean |
equals(Object obj) |
protected void |
findCorrelatedNodes(CorrelationIdentifier cid,
Set<Node> nodes)
This method identifies all of the nodes within a business transaction that
are associated with the supplied correlation identifier.
|
long |
getBaseTime() |
List<CorrelationIdentifier> |
getCorrelationIds() |
List<CorrelationIdentifier> |
getCorrelationIds(CorrelationIdentifier.Scope scope)
This methd returns the subset of correlation ids that have the
specified scope.
|
Map<String,String> |
getDetails()
This method returns the specific details about the node.
|
long |
getDuration() |
String |
getFault() |
String |
getFaultDescription() |
NodeType |
getType() |
String |
getUri() |
int |
hashCode() |
boolean |
interactionNode()
This method indicates whether this is an interaction based node.
|
protected boolean |
isCorrelated(CorrelationIdentifier cid)
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 |
setBaseTime(long baseTime) |
Node |
setCorrelationIds(List<CorrelationIdentifier> correlationIds) |
Node |
setDetails(Map<String,String> details) |
Node |
setDuration(long duration) |
Node |
setFault(String fault) |
Node |
setFaultDescription(String faultDescription) |
Node |
setType(NodeType type) |
Node |
setUri(String uri) |
public boolean interactionNode()
public NodeType getType()
public String getUri()
public long getBaseTime()
public Node setBaseTime(long baseTime)
baseTime - the baseTime (in nanoseconds) 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 List<CorrelationIdentifier> getCorrelationIds(CorrelationIdentifier.Scope scope)
scope - The scopeprotected long endTime()
protected long completedTime()
protected long completedDuration()
protected long overallEndTime()
protected void findCorrelatedNodes(CorrelationIdentifier cid, Set<Node> nodes)
cid - The correlation identifiernodes - The set of nodes that are associated with the correlation identifierprotected boolean isCorrelated(CorrelationIdentifier cid)
cid - The correlation idCopyright © 2015 Red Hat, Inc.. All rights reserved.