public class SourceInfo extends Object implements Serializable, ApmEvent
| Constructor and Description |
|---|
SourceInfo()
The default constructor.
|
SourceInfo(SourceInfo si)
The copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getDuration() |
EndpointRef |
getEndpoint() |
String |
getFragmentId() |
String |
getHostAddress() |
String |
getHostName() |
String |
getId() |
Set<Property> |
getProperties() |
Set<Property> |
getProperties(String name)
This method returns the set of properties having the
supplied property name.
|
long |
getTimestamp() |
String |
getTraceId() |
int |
hashCode() |
boolean |
hasProperty(String name)
This method determines whether there is atleast one
property with the supplied name.
|
boolean |
isMultipleConsumers() |
void |
setDuration(long duration) |
void |
setEndpoint(EndpointRef endpoint) |
void |
setFragmentId(String fragmentId) |
void |
setHostAddress(String hostAddress) |
void |
setHostName(String hostName) |
void |
setId(String id) |
void |
setMultipleConsumers(boolean multipleConsumers) |
void |
setProperties(Set<Property> properties) |
void |
setTimestamp(long timestamp) |
void |
setTraceId(String traceId) |
String |
toString() |
public SourceInfo()
public SourceInfo(SourceInfo si)
public void setId(String id)
id - the id to setpublic String getTraceId()
public void setTraceId(String traceId)
traceId - the traceId to setpublic String getFragmentId()
public void setFragmentId(String fragmentId)
fragmentId - the fragmentId to setpublic EndpointRef getEndpoint()
public void setEndpoint(EndpointRef endpoint)
endpoint - the endpoint to setpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - the timestamp in microsecondspublic long getDuration()
public void setDuration(long duration)
duration - the duration in microsecondspublic String getHostName()
public void setHostName(String hostName)
hostName - the hostName to setpublic String getHostAddress()
public void setHostAddress(String hostAddress)
hostAddress - the hostAddress to setpublic boolean isMultipleConsumers()
public void setMultipleConsumers(boolean multipleConsumers)
multipleConsumers - the multipleConsumers to setpublic void setProperties(Set<Property> properties)
properties - the properties to setpublic boolean hasProperty(String name)
name - The property namepublic Set<Property> getProperties(String name)
name - The property nameCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.