Magentix2
2.1.1
|
Public Member Functions | |
TraceEvent () | |
TraceEvent (String tService, TracingEntity originEntity, String content) | |
TraceEvent (String tService, AgentID originAid, String content) | |
void | setTracingService (String tService) |
void | setTimestamp (long timestamp) |
void | setOriginEntity (TracingEntity originEntity) |
void | setContent (String content) |
String | getTracingService () |
TracingEntity | getOriginEntity () |
String | getContent () |
long | getTimestamp () |
String | toReadableString () |
Definition of Trace Event.
Definition at line 14 of file TraceEvent.java.
Void constructor which sets all attributes to null except for es.upv.dsic.gti_ia.core.TraceEvent#timestamp, which is set to -1
Definition at line 42 of file TraceEvent.java.
{ this.tService=null; this.originEntity=null; this.timestamp=-1; this.content=null; }
es.upv.dsic.gti_ia.core.TraceEvent.TraceEvent | ( | String | tService, |
TracingEntity | originEntity, | ||
String | content | ||
) |
Creates a new trace event and sets its attributes according to the specified parameters, except for es.upv.dsic.gti_ia.core.TraceEvent#timestamp, which is set to the current time using java.lang.System#currentTimeMillis()
tService | Tracing service name |
originEntity | Tracing entity which originated the trace event |
content | Content of the trace event |
Definition at line 61 of file TraceEvent.java.
{ this.tService=tService; this.originEntity=originEntity; this.timestamp=System.currentTimeMillis(); this.content=content; }
es.upv.dsic.gti_ia.core.TraceEvent.TraceEvent | ( | String | tService, |
AgentID | originAid, | ||
String | content | ||
) |
Creates a new trace event and sets its attributes according to the specified parameters, except for es.upv.dsic.gti_ia.core.TraceEvent#timestamp, which is set to java.lang.System#currentTimeMillis() A new tracing entity is created for the specified AgentID
tService | Tracing service name |
originAid | AgentID of the tracing entity which originated the trace event |
content | Content of the trace event |
Definition at line 81 of file TraceEvent.java.
{
this.tService=tService;
this.originEntity=new TracingEntity(TracingEntity.AGENT, originAid);
this.timestamp=System.currentTimeMillis();
this.content=content;
}
Returns the content of the trace event.
Definition at line 147 of file TraceEvent.java.
{
return this.content;
}
Returns the origin entity of the trace event.
Definition at line 138 of file TraceEvent.java.
{
return this.originEntity;
}
Returns the time stamp of the trace event.
Definition at line 156 of file TraceEvent.java.
{
return this.timestamp;
}
Returns the tracing service of the trace event.
Definition at line 129 of file TraceEvent.java.
{
return this.tService;
}
void es.upv.dsic.gti_ia.core.TraceEvent.setContent | ( | String | content | ) |
Sets the content of the trace event to the specified one.
content | Content of the trace event |
Definition at line 120 of file TraceEvent.java.
{ this.content=content; }
void es.upv.dsic.gti_ia.core.TraceEvent.setOriginEntity | ( | TracingEntity | originEntity | ) |
Sets the origin entity of the trace event to the specified one.
originEntity | Tracing entity which originated the trace event |
Definition at line 111 of file TraceEvent.java.
{ this.originEntity=originEntity; }
void es.upv.dsic.gti_ia.core.TraceEvent.setTimestamp | ( | long | timestamp | ) |
Sets the time stamp of the trace event to the specified one.
timestamp | Time at which the trace event was thrown |
Definition at line 102 of file TraceEvent.java.
{ this.timestamp=timestamp; }
void es.upv.dsic.gti_ia.core.TraceEvent.setTracingService | ( | String | tService | ) |
Sets the tracing service of the trace event to the specified one.
tService | Name of the tracing service |
Definition at line 93 of file TraceEvent.java.
{ this.tService=tService; }
Converts the trace event to a human readable string.
Definition at line 167 of file TraceEvent.java.
{ String event_str = String.valueOf(this.getTimestamp()) + ": " + this.getTracingService() + " from " + this.getOriginEntity().toReadableString() + " Content: " + this.getContent(); return event_str; }