Module org.elasticsearch.server
Class ActivityLoggerContext
java.lang.Object
org.elasticsearch.common.logging.activity.ActivityLoggerContext
- Direct Known Subclasses:
QueryLoggerContext
Context for
ActivityLogger.
This class contains the information needed to log the query and is extended by specific logging contexts for each action.
ActivityLogProducer uses the context data to compose fields for the log message.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordShard stats information. -
Constructor Summary
ConstructorsConstructorDescriptionActivityLoggerContext(Task task, String type, long tookInNanos) ActivityLoggerContext(Task task, String type, long tookInNanos, Exception error) -
Method Summary
-
Constructor Details
-
ActivityLoggerContext
-
ActivityLoggerContext
-
-
Method Details
-
getTookInNanos
public long getTookInNanos() -
isSuccess
public boolean isSuccess() -
isTimedOut
public boolean isTimedOut() -
getType
-
getErrorMessage
-
getErrorType
-
getOpaqueId
-
getTraceId
-
shardInfo
-
getTaskId
public long getTaskId() -
getParentTaskId
-