public static class MatsTraceFieldImpl.CallImpl<Z> extends java.lang.Object implements MatsTrace.Call<Z>, java.lang.Cloneable
MatsTrace
.MatsTrace.Call.CallType, MatsTrace.Call.Channel, MatsTrace.Call.MessagingModel
Modifier and Type | Method and Description |
---|---|
protected MatsTraceFieldImpl.CallImpl<Z> |
clone() |
long |
getCalledTimestamp() |
java.lang.String |
getCallingAppName() |
java.lang.String |
getCallingAppVersion() |
java.lang.String |
getCallingHost() |
MatsTrace.Call.CallType |
getCallType() |
Z |
getData() |
java.lang.String |
getDebugInfo() |
java.lang.String |
getFrom() |
java.lang.String |
getMatsMessageId() |
long |
getReplyFromSpanId() |
java.util.List<MatsTrace.Call.Channel> |
getReplyStack() |
int |
getReplyStackHeight() |
MatsTrace.Call.Channel |
getTo() |
MatsTraceFieldImpl.CallImpl<Z> |
setDebugInfo(java.lang.String callingAppName,
java.lang.String callingAppVersion,
java.lang.String callingHost,
java.lang.String debugInfo)
Can only be set once.
|
java.lang.String |
toString() |
java.lang.String |
toStringFromMatsTrace(long startTimestamp,
int maxStackSize,
int maxToStageIdLength,
boolean printNulLData) |
public MatsTraceFieldImpl.CallImpl<Z> setDebugInfo(java.lang.String callingAppName, java.lang.String callingAppVersion, java.lang.String callingHost, java.lang.String debugInfo)
MatsTrace.Call
setDebugInfo
in interface MatsTrace.Call<Z>
public java.lang.String getCallingAppName()
getCallingAppName
in interface MatsTrace.Call<Z>
public java.lang.String getCallingAppVersion()
getCallingAppVersion
in interface MatsTrace.Call<Z>
public java.lang.String getCallingHost()
getCallingHost
in interface MatsTrace.Call<Z>
public long getCalledTimestamp()
getCalledTimestamp
in interface MatsTrace.Call<Z>
public java.lang.String getMatsMessageId()
getMatsMessageId
in interface MatsTrace.Call<Z>
MatsTrace.getFlowId()
+ "_" + flow-unique messageId.public java.lang.String getDebugInfo()
getDebugInfo
in interface MatsTrace.Call<Z>
public MatsTrace.Call.CallType getCallType()
getCallType
in interface MatsTrace.Call<Z>
public long getReplyFromSpanId()
getReplyFromSpanId
in interface MatsTrace.Call<Z>
MatsTrace.Call.getCallType()
is REPLY
, the value of the REQUEST's SpanId is
returned, otherwise an IllegalStateException
is thrown.public java.lang.String getFrom()
getFrom
in interface MatsTrace.Call<Z>
"-nulled-"
for any
other Call than the MatsTrace.getCurrentCall()
, to conserve space in the MatsTrace. The
rationale for this, is that if those Calls are available, they are there for debug purposes only, and
then you can use the order of the Calls to see who is the caller: The previous Call's "to"
is the "from"
of this Call.public MatsTrace.Call.Channel getTo()
getTo
in interface MatsTrace.Call<Z>
MatsTrace.Call.Channel
to also specify the
MatsTrace.Call.MessagingModel
in use.public Z getData()
getData
in interface MatsTrace.Call<Z>
public java.util.List<MatsTrace.Call.Channel> getReplyStack()
getReplyStack
in interface MatsTrace.Call<Z>
public int getReplyStackHeight()
getReplyStackHeight
in interface MatsTrace.Call<Z>
REPLY
to a Terminator, the stack is of size 0 (there are no more elements to
REPLY to), while for the first REQUEST
from an initiator, the stack is of
size 1 (the endpointId for the Terminator is the one element below this Call).public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringFromMatsTrace(long startTimestamp, int maxStackSize, int maxToStageIdLength, boolean printNulLData)
protected MatsTraceFieldImpl.CallImpl<Z> clone()
clone
in class java.lang.Object