|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.core.TraceEvent
public class TraceEvent
Definition of Trace Event.
| Constructor Summary | |
|---|---|
TraceEvent()
Void constructor which sets all attributes to null except for timestamp, which is set to -1 |
|
TraceEvent(String tService,
AgentID originAid,
String content)
Creates a new trace event and sets its attributes according to the specified parameters, except for timestamp, which is set to
System.currentTimeMillis()
A new tracing entity is created for the specified AgentID |
|
TraceEvent(String tService,
TracingEntity originEntity,
String content)
Creates a new trace event and sets its attributes according to the specified parameters, except for timestamp, which is set to
the current time using System.currentTimeMillis() |
|
| Method Summary | |
|---|---|
String |
getContent()
Returns the content of the trace event. |
TracingEntity |
getOriginEntity()
Returns the origin entity of the trace event. |
long |
getTimestamp()
Returns the time stamp of the trace event. |
String |
getTracingService()
Returns the tracing service of the trace event. |
void |
setContent(String content)
Sets the content of the trace event to the specified one. |
void |
setOriginEntity(TracingEntity originEntity)
Sets the origin entity of the trace event to the specified one. |
void |
setTimestamp(long timestamp)
Sets the time stamp of the trace event to the specified one. |
void |
setTracingService(String tService)
Sets the tracing service of the trace event to the specified one. |
String |
toReadableString()
Converts the trace event to a human readable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraceEvent()
timestamp, which is set to -1
public TraceEvent(String tService,
TracingEntity originEntity,
String content)
timestamp, which is set to
the current time using System.currentTimeMillis()
tService - Tracing service nameoriginEntity - Tracing entity which originated the trace eventcontent - Content of the trace eventSystem.currentTimeMillis()
public TraceEvent(String tService,
AgentID originAid,
String content)
timestamp, which is set to
System.currentTimeMillis()
A new tracing entity is created for the specified AgentID
tService - Tracing service nameoriginAid - AgentID of the tracing entity which originated the trace eventcontent - Content of the trace eventSystem.currentTimeMillis(),
AgentID| Method Detail |
|---|
public void setTracingService(String tService)
tService - Name of the tracing servicepublic void setTimestamp(long timestamp)
timestamp - Time at which the trace event was thrownpublic void setOriginEntity(TracingEntity originEntity)
originEntity - Tracing entity which originated the trace eventpublic void setContent(String content)
content - Content of the trace eventpublic String getTracingService()
public TracingEntity getOriginEntity()
public String getContent()
public long getTimestamp()
public String toReadableString()
TracingEntity.toReadableString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||