Identifying details of a running or completed operation - its type, source and item ID - used both while an operation is running (see CurrentOp) and as a lightweight key for the server's per-operation processing time statistics. Serialised as an "OperationInfo" element.

Group: Server Monitoring


Properties

PropertyReturnsDescription
asyncJobbooleanWhether this operation is an asynchronous background job.
dataMap<String,Serializable>Miscellaneous performance data recorded against this operation. Creates and returns an empty map on first access if none has been set.
httpbooleanWhether this operation is an HTTP request.
itemStringFor an HTTP request, the request's operation ID. For an async job, the job ID.
sourceStringFor an HTTP request, the request path. For an async job, the task name.
startedAtDateWhen this operation started.
typeStringThe operation's type - either TYPE_HTTP ("http") or TYPE_ASYNC_JOB ("asyncjob"), or one of the other TYPE_ constants.

Methods

getItem()

Returns: String

For an HTTP request, the request's operation ID. For an async job, the job ID.

getType()

Returns: String

The operation's type - either TYPE_HTTP ("http") or TYPE_ASYNC_JOB ("asyncjob"), or one of the other TYPE_ constants.

getSource()

Returns: String

For an HTTP request, the request path. For an async job, the task name.

getStartedAt()

Returns: Date

When this operation started.

getData()

Returns: Map<String,Serializable>

Miscellaneous performance data recorded against this operation. Creates and returns an empty map on first access if none has been set.

isAsyncJob()

Returns: boolean

Whether this operation is an asynchronous background job.

isHttp()

Returns: boolean

Whether this operation is an HTTP request.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.