Package io.stargate.sdk.audit
Class ServiceCallEvent<SERVICE extends Service>
java.lang.Object
io.stargate.sdk.audit.ServiceCallEvent<SERVICE>
- Type Parameters:
SERVICE- the type of the service in use
- Direct Known Subclasses:
ServiceHttpCallEvent
Event triggered for Api Invocation with input/output tracing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringError Classname.protected StringError message.protected ExceptionExceptions.protected StringUnique identifier for a request.protected longresponse elapsed time.protected longresponse time.protected longresponse triggered time.protected SERVICERelated service.protected longepoch time of the event generation.protected intretries. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter accessor for attribute 'errorClass'.Getter accessor for attribute 'errorMessage'.Getter accessor for attribute 'lastException'.Gets requestIdlongGetter accessor for attribute 'responseElapsedTime'.longGetter accessor for attribute 'responseTime'.longGetter accessor for attribute 'responseTimestamp'.Gets servicelongGetter accessor for attribute 'timestamp'.intGetter accessor for attribute 'totalTries'.voidsetErrorClass(String errorClass) Setter accessor for attribute 'errorClass'.voidsetErrorMessage(String errorMessage) Setter accessor for attribute 'errorMessage'.voidsetLastException(Exception lastException) Setter accessor for attribute 'lastException'.voidsetRequestId(String requestId) Set value for requestIdvoidsetResponseElapsedTime(long responseElapsedTime) Setter accessor for attribute 'responseElapsedTime'.voidsetResponseTime(long responseTime) Set value for responseTimevoidsetResponseTimestamp(long responseTimestamp) Setter accessor for attribute 'responseTimestamp'.voidsetService(SERVICE service) Set value for servicevoidsetTimestamp(long timestamp) Setter accessor for attribute 'timestamp'.voidsetTotalTries(int totalTries) Setter accessor for attribute 'totalTries'.
-
Field Details
-
service
Related service. -
timestamp
protected long timestampepoch time of the event generation. -
requestId
Unique identifier for a request. -
responseTime
protected long responseTimeresponse time. -
responseTimestamp
protected long responseTimestampresponse triggered time. -
responseElapsedTime
protected long responseElapsedTimeresponse elapsed time. -
totalTries
protected int totalTriesretries. -
errorClass
Error Classname. -
errorMessage
Error message. -
lastException
Exceptions.
-
-
Constructor Details
-
ServiceCallEvent
public ServiceCallEvent()Default constructor.
-
-
Method Details
-
getResponseElapsedTime
public long getResponseElapsedTime()Getter accessor for attribute 'responseElapsedTime'.- Returns:
- current value of 'responseElapsedTime'
-
setResponseElapsedTime
public void setResponseElapsedTime(long responseElapsedTime) Setter accessor for attribute 'responseElapsedTime'.- Parameters:
responseElapsedTime- new value for 'responseElapsedTime '
-
getTotalTries
public int getTotalTries()Getter accessor for attribute 'totalTries'.- Returns:
- current value of 'totalTries'
-
setTotalTries
public void setTotalTries(int totalTries) Setter accessor for attribute 'totalTries'.- Parameters:
totalTries- new value for 'totalTries '
-
getLastException
Getter accessor for attribute 'lastException'.- Returns:
- current value of 'lastException'
-
setLastException
Setter accessor for attribute 'lastException'.- Parameters:
lastException- new value for 'lastException '
-
getTimestamp
public long getTimestamp()Getter accessor for attribute 'timestamp'.- Returns:
- current value of 'timestamp'
-
setTimestamp
public void setTimestamp(long timestamp) Setter accessor for attribute 'timestamp'.- Parameters:
timestamp- new value for 'timestamp '
-
getResponseTime
public long getResponseTime()Getter accessor for attribute 'responseTime'.- Returns:
- current value of 'responseTime'
-
getErrorClass
Getter accessor for attribute 'errorClass'.- Returns:
- current value of 'errorClass'
-
setErrorClass
Setter accessor for attribute 'errorClass'.- Parameters:
errorClass- new value for 'errorClass '
-
getErrorMessage
Getter accessor for attribute 'errorMessage'.- Returns:
- current value of 'errorMessage'
-
setErrorMessage
Setter accessor for attribute 'errorMessage'.- Parameters:
errorMessage- new value for 'errorMessage '
-
getResponseTimestamp
public long getResponseTimestamp()Getter accessor for attribute 'responseTimestamp'.- Returns:
- current value of 'responseTimestamp'
-
setResponseTimestamp
public void setResponseTimestamp(long responseTimestamp) Setter accessor for attribute 'responseTimestamp'.- Parameters:
responseTimestamp- new value for 'responseTimestamp '
-
getRequestId
Gets requestId- Returns:
- value of requestId
-
setRequestId
Set value for requestId- Parameters:
requestId- new value for requestId
-
setResponseTime
public void setResponseTime(long responseTime) Set value for responseTime- Parameters:
responseTime- new value for responseTime
-
getService
Gets service- Returns:
- value of service
-
setService
Set value for service- Parameters:
service- new value for service
-