Package oracle.nosql.driver.ops
Class SystemStatusRequest
java.lang.Object
oracle.nosql.driver.ops.Request
oracle.nosql.driver.ops.SystemStatusRequest
On-premises only.
 
 SystemStatusRequest is an on-premise-only request used to check the status
 of an operation started using a SystemRequest.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the operation id to use for the request, null if not set.Returns the statement, or null if not setReturns the type name of the request.setDefaults(NoSQLHandleConfig config) setOperationId(String operationId) Sets the operation id to use for the request.setStatement(String statement) Sets the statement that was used for the operation.setTimeout(int timeoutMs) Sets the request timeout value, in milliseconds.toString()voidvalidate()Methods inherited from class oracle.nosql.driver.ops.RequestgetCompartment, getNamespace, getRateLimitDelayedMs, getReadRateLimiter, getRetryStats, getTableName, getWriteRateLimiter, setReadRateLimiter, setWriteRateLimiter
- 
Constructor Details- 
SystemStatusRequestpublic SystemStatusRequest()
 
- 
- 
Method Details- 
getStatementReturns the statement, or null if not set- Returns:
- the statement
 
- 
setStatementSets the statement that was used for the operation. This is optional and is not used in any significant way. It is returned, unmodified, in theSystemResultfor convenience.- Parameters:
- statement- the statement
- Returns:
- this
 
- 
setOperationIdSets the operation id to use for the request. The operation id can be obtained viaSystemResult.getOperationId(). This parameter is not optional and represents an asynchronous operation that may be in progress. It is used to examine the result of the operation and if the operation has failed an exception will be thrown in response to aNoSQLHandle.systemStatus(oracle.nosql.driver.ops.SystemStatusRequest)operation. If the operation is in progress or has completed successfully, the state of the operation is returned.- Parameters:
- operationId- the operationId.
- Returns:
- this
 
- 
getOperationIdReturns the operation id to use for the request, null if not set.- Returns:
- the operation id
 
- 
setTimeoutSets the request timeout value, in milliseconds. This overrides any default value set withNoSQLHandleConfig.setRequestTimeout(int). The value must be positive.- Parameters:
- timeoutMs- the timeout value, in milliseconds
- Returns:
- this
- Throws:
- IllegalArgumentException- if the timeout value is less than or equal to 0
 
- 
setDefaults
- 
validatepublic void validate()
- 
getTypeNameDescription copied from class:RequestReturns the type name of the request. This is used for stats.- Specified by:
- getTypeNamein class- Request
- Returns:
- the type name of the request
 
- 
toString
 
-