Class NullTrailImpl
- java.lang.Object
-
- com.opencloud.rhino.facilities.sas.NullTrailImpl
-
-
Field Summary
Fields Modifier and Type Field Description static TrailNULL_TRAILstatic longUNREPORTABLE_TRAIL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociate(Trail otherTrail, Scope scope)Send a trail association message or correlation marker, depending on whether this trail and the given trail are on the same SAS server or not.voidend()End this trail.EventMessageevent(Enum<? extends SasEventEnum> event)Create an event message with given event.voidflush()Write reported events and markers for this trail to permanent storage on the SAS server.longid()booleanisEnabled()Check if reporting is enabled.MarkerMessagemarker(int markerId)Create a marker message with given marker ID.MarkerMessagemarker(Markers marker)Create a marker message with given marker.voidreport(EventMessage event)Report an event created withTrail.event(Enum)voidreport(MarkerMessage marker)Report a marker created withTrail.marker(Markers)orTrail.marker(int)voidreport(MarkerMessage marker0, MarkerMessage marker1)Report markers created withTrail.marker(Markers)orTrail.marker(int)voidreport(MarkerMessage marker0, MarkerMessage marker1, MarkerMessage marker2)Report markers created withTrail.marker(Markers)orTrail.marker(int)voidreport(Markers marker)Build and report a marker with no parametersvoidreport(Enum<? extends SasEventEnum> event)Build and report an event with no parametersUUIDsteeringId()
-
-
-
Field Detail
-
NULL_TRAIL
public static final Trail NULL_TRAIL
-
UNREPORTABLE_TRAIL
public static final long UNREPORTABLE_TRAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public long id()
-
steeringId
public UUID steeringId()
- Specified by:
steeringIdin interfaceTrail
-
isEnabled
public boolean isEnabled()
Description copied from interface:TrailCheck if reporting is enabled.
-
event
public EventMessage event(Enum<? extends SasEventEnum> event)
Description copied from interface:TrailCreate an event message with given event.
-
marker
public MarkerMessage marker(Markers marker)
Description copied from interface:TrailCreate a marker message with given marker.
-
marker
public MarkerMessage marker(int markerId)
Description copied from interface:TrailCreate a marker message with given marker ID.
This method should not be used unless new Markers have been added to SAS that are not available in the
Markersenum.
-
associate
public void associate(Trail otherTrail, Scope scope)
Description copied from interface:TrailSend a trail association message or correlation marker, depending on whether this trail and the given trail are on the same SAS server or not.
With a SAS federation, it is possible that a pair of trails may not be reporting to the same SAS server. In this case this method will send a generic correlation marker using a UUID v4 (random) identifier to both SAS servers.
-
report
public void report(EventMessage event)
Description copied from interface:TrailReport an event created with
Trail.event(Enum)
-
report
public void report(MarkerMessage marker)
Description copied from interface:TrailReport a marker created with
Trail.marker(Markers)orTrail.marker(int)
-
report
public void report(MarkerMessage marker0, MarkerMessage marker1)
Description copied from interface:TrailReport markers created with
Trail.marker(Markers)orTrail.marker(int)
-
report
public void report(MarkerMessage marker0, MarkerMessage marker1, MarkerMessage marker2)
Description copied from interface:TrailReport markers created with
Trail.marker(Markers)orTrail.marker(int)
-
report
public void report(Markers marker)
Description copied from interface:TrailBuild and report a marker with no parameters
-
report
public void report(Enum<? extends SasEventEnum> event)
Description copied from interface:TrailBuild and report an event with no parameters
-
end
public void end()
Description copied from interface:TrailEnd this trail. Sends an
Markers.END_MARKERto denote the end of the user experience. Trails must be ended to be searchable in SAS. It is better to call end() twice than never. Events received within 5s of an end marker being sent are associated with the same trail but trail-trail association can no longer occur.
-
flush
public void flush()
Description copied from interface:TrailWrite reported events and markers for this trail to permanent storage on the SAS server. Sends an
Markers.FLUSH_MARKERto denote a break in control of the dialog. Flushing a trail should be performed at the end of an active control phase where a delay is anticipated before the next dialog event.
-
-