public class Trace extends Object
| Constructor and Description |
|---|
Trace() |
| Modifier and Type | Method and Description |
|---|---|
Set<Property> |
allProperties()
This method returns all properties contained in the node hierarchy
that can be used to search for the trace.
|
long |
calculateDuration()
This method returns the duration of the trace fragment.
|
long |
endTime()
This method returns the end time of the trace fragment.
|
boolean |
equals(Object obj) |
Set<Node> |
getCorrelatedNodes(CorrelationIdentifier cid)
This method locates any node within the trace that
is associated with the supplied correlation id.
|
String |
getFragmentId() |
String |
getHostAddress() |
String |
getHostName() |
List<Node> |
getNodes() |
Set<Property> |
getProperties(String name)
This method returns the set of properties having the
supplied property name.
|
long |
getTimestamp() |
String |
getTraceId() |
String |
getTransaction() |
int |
hashCode() |
boolean |
hasProperty(String name)
This method determines whether there is atleast one
property with the supplied name.
|
boolean |
initialFragment()
This method determines whether this trace is the initial
fragment of an instance.
|
Trace |
setFragmentId(String fragmentId)
This method sets the fragment id.
|
Trace |
setHostAddress(String hostAddress) |
Trace |
setHostName(String hostName) |
Trace |
setNodes(List<Node> nodes) |
Trace |
setTimestamp(long timestamp) |
Trace |
setTraceId(String traceId)
This method sets the trace id.
|
Trace |
setTransaction(String name) |
String |
toString() |
public String getTraceId()
public Trace setTraceId(String traceId)
traceId - the traceId to setpublic String getFragmentId()
public Trace setFragmentId(String fragmentId)
fragmentId - the fragmentId to setpublic long getTimestamp()
public Trace setTimestamp(long timestamp)
timestamp - the timestamp in microsecondspublic String getTransaction()
public Trace setTransaction(String name)
name - the transaction name to setpublic String getHostName()
public Trace setHostName(String hostName)
hostName - the host name to setpublic String getHostAddress()
public Trace setHostAddress(String hostAddress)
hostAddress - the host address to setpublic Trace setNodes(List<Node> nodes)
nodes - the nodes to setpublic Set<Property> allProperties()
public boolean hasProperty(String name)
name - The property namepublic Set<Property> getProperties(String name)
name - The property namepublic boolean initialFragment()
public long endTime()
public long calculateDuration()
public Set<Node> getCorrelatedNodes(CorrelationIdentifier cid)
cid - The correlation identifierCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.