public abstract class Node extends Object
| 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.
|
Set<CorrelationIdentifier> |
getCorrelationIds() |
Map<String,String> |
getDetails()
This method returns the specific details about the node.
|
long |
getDuration() |
long |
getStartTime() |
String |
getUri() |
int |
hashCode() |
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.
|
void |
setCorrelationIds(Set<CorrelationIdentifier> correlationIds) |
void |
setDetails(Map<String,String> details) |
void |
setDuration(long duration) |
void |
setStartTime(long startTime) |
void |
setUri(String uri) |
public Node()
public Node(String uri)
public String getUri()
public void setUri(String uri)
uri - the uri to setpublic long getStartTime()
public void setStartTime(long startTime)
startTime - the startTime to setpublic long getDuration()
public void setDuration(long duration)
duration - the duration to setpublic Map<String,String> getDetails()
public void setDetails(Map<String,String> details)
details - the details to setpublic Set<CorrelationIdentifier> getCorrelationIds()
public void setCorrelationIds(Set<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.