Class ReplicaStatsRequest
 Represents the argument of a NoSQLHandle.getReplicaStats(oracle.nosql.driver.ops.ReplicaStatsRequest) operation
 which returns stats information for one, or all replicas of a replicated
 table, returned in ReplicaStatsResult. This information includes a
 time series of replica stats, as found in
 ReplicaStatsResult.ReplicaStats.
 
It is possible to return a range of stats records or, by default, only the most recent stats records if startTime is not specified. Replica stats records are created on a regular basis and maintained for a period of time. Only records for time periods that have completed are returned so that a user never sees changing data for a specific range.
- Since:
- 5.4.13
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionoracle.nosql.driver.ops.serde.SerializercreateDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) oracle.nosql.driver.ops.serde.SerializercreateSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) intgetLimit()Returns the limit to the number of replica stats records desired.Gets the replica name to query the stats information or null if not setlongReturns the start time to use for the request in milliseconds since the Epoch.Returns the start time as an ISO 8601 formatted string.Returns the type name of the request.setCompartment(String compartment) Cloud service only.setLimit(int limit) Sets the limit to the number of replica stats records desired.setReplicaName(String replicaName) Sets the replica name to query the stats information.setStartTime(long startTime) Sets the start time to use for the request in milliseconds since the Epoch in UTC time.setStartTime(String startTime) Sets the start time from an ISO 8601 formatted string.setTableName(String tableName) Sets the table name to use for the operation.setTimeout(int timeoutMs) Sets the request timeout value, in milliseconds.voidvalidate()Methods inherited from class oracle.nosql.driver.ops.RequestgetCompartment, getNamespace, getRateLimitDelayedMs, getReadRateLimiter, getRetryStats, getTableName, getWriteRateLimiter, setReadRateLimiter, setWriteRateLimiter
- 
Constructor Details- 
ReplicaStatsRequestpublic ReplicaStatsRequest()
 
- 
- 
Method Details- 
setTableNameSets the table name to use for the operation.- Parameters:
- tableName- the name
- Returns:
- this
 
- 
setReplicaNameSets the replica name to query the stats information. If not set, information for all replicas is returned.- Parameters:
- replicaName- the replica name
- Returns:
- this
 
- 
getReplicaNameGets the replica name to query the stats information or null if not set- Returns:
- replica name
 
- 
setStartTimeSets the start time to use for the request in milliseconds since the Epoch in UTC time. If no start time is set for this request the most recent complete stats records are returned, the number of records is up to limitsetLimit(int)- Parameters:
- startTime- the start time
- Returns:
- this
 
- 
setStartTimeSets the start time from an ISO 8601 formatted string. If timezone is not specified it is interpreted as UTC.- Parameters:
- startTime- the string of a Timestamp in ISO 8601 format "uuuu-MM-dd['T'HH:mm:ss[.f..f]]".
- Returns:
- this
- Throws:
- IllegalArgumentException- if the startTime string is not in valid format.
 
- 
getStartTimepublic long getStartTime()Returns the start time to use for the request in milliseconds since the Epoch.- Returns:
- the start time
 
- 
getStartTimeStringReturns the start time as an ISO 8601 formatted string. If the start timestamp is not set, null is returned.- Returns:
- the start time, or null if not set.
 
- 
setLimitSets the limit to the number of replica stats records desired. The default value is 1000.- Parameters:
- limit- the numeric limit
- Returns:
- this
 
- 
getLimitpublic int getLimit()Returns the limit to the number of replica stats records desired.- Returns:
- the end time
 
- 
setCompartmentCloud service only.Sets the name or id of a compartment to be used for this operation. The compartment may be specified as either a name (or path for nested compartments) or as an id (OCID). A name (vs id) can only be used when authenticated using a specific user identity. It is not available if authenticated as an Instance Principal which can be done when calling the service from a compute instance in the Oracle Cloud Infrastructure. See SignatureProvider.createWithInstancePrincipal()- Parameters:
- compartment- the name or id. If using a nested compartment, specify the full compartment path- compartmentA.compartmentB, but exclude the name of the root compartment (tenant).
- Returns:
- this
 
- 
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
 
- 
validatepublic void validate()
- 
createSerializerpublic oracle.nosql.driver.ops.serde.Serializer createSerializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) 
- 
createDeserializerpublic oracle.nosql.driver.ops.serde.Serializer createDeserializer(oracle.nosql.driver.ops.serde.SerializerFactory factory) 
- 
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
 
 
-