Class StatusUtil
java.lang.Object
org.apache.accumulo.server.replication.StatusUtil
Deprecated.
Helper methods to create Status protobuf messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Replication.Status
Deprecated.static Value
Deprecated.static Replication.Status
fileCreated
(long timeCreated) Deprecated.static Value
fileCreatedValue
(long timeCreated) Deprecated.static Replication.Status
Deprecated.static Replication.Status
ingestedUntil
(long recordsIngested) Deprecated.Creates aReplication.Status
for newly-created data that must be replicatedstatic Replication.Status
ingestedUntil
(Replication.Status.Builder builder, long recordsIngested) Deprecated.static boolean
isFullyReplicated
(Replication.Status status) Deprecated.Is the given Status fully replicated but potentially not yet safe for deletionstatic boolean
isSafeForRemoval
(Replication.Status status) Deprecated.Is the given Status fully replicated and is its file ready for deletion on the sourcestatic boolean
isWorkRequired
(Replication.Status status) Deprecated.Given theReplication.Status
, is there replication work to be donestatic Replication.Status
Deprecated.static Replication.Status
openWithUnknownLength
(long timeCreated) Deprecated.static Value
Deprecated.static Replication.Status
replicated
(long recordsReplicated) Deprecated.static Replication.Status
replicated
(Replication.Status.Builder builder, long recordsReplicated) Deprecated.static Replication.Status
replicatedAndIngested
(long recordsReplicated, long recordsIngested) Deprecated.Creates a @{link Status} for a file which has new data and data which has been replicatedstatic Replication.Status
replicatedAndIngested
(Replication.Status.Builder builder, long recordsReplicated, long recordsIngested) Deprecated.Same asreplicatedAndIngested(long, long)
but uses the providedReplication.Status.Builder
-
Constructor Details
-
StatusUtil
public StatusUtil()Deprecated.
-
-
Method Details
-
ingestedUntil
Deprecated.Creates aReplication.Status
for newly-created data that must be replicated- Parameters:
recordsIngested
- Offset of records which need to be replicated- Returns:
- A
Replication.Status
tracking data that must be replicated
-
ingestedUntil
public static Replication.Status ingestedUntil(Replication.Status.Builder builder, long recordsIngested) Deprecated. -
replicated
Deprecated.- Parameters:
recordsReplicated
- Offset of records which have been replicated- Returns:
- A
Replication.Status
tracking data that must be replicated
-
replicated
public static Replication.Status replicated(Replication.Status.Builder builder, long recordsReplicated) Deprecated.- Parameters:
builder
- ExistingReplication.Status.Builder
to userecordsReplicated
- Offset of records which have been replicated- Returns:
- A
Replication.Status
tracking data that must be replicated
-
replicatedAndIngested
public static Replication.Status replicatedAndIngested(long recordsReplicated, long recordsIngested) Deprecated.Creates a @{link Status} for a file which has new data and data which has been replicated- Parameters:
recordsReplicated
- Offset of records which have been replicatedrecordsIngested
- Offset for records which need to be replicated- Returns:
- A
Replication.Status
for the given parameters
-
replicatedAndIngested
public static Replication.Status replicatedAndIngested(Replication.Status.Builder builder, long recordsReplicated, long recordsIngested) Deprecated.Same asreplicatedAndIngested(long, long)
but uses the providedReplication.Status.Builder
- Parameters:
builder
- An existing builderrecordsReplicated
- Offset of records which have been replicatedrecordsIngested
- Offset of records which need to be replicated- Returns:
- A
Replication.Status
for the given parameters using the builder
-
fileCreated
Deprecated.- Returns:
- A
Replication.Status
for a new file that was just created
-
fileCreatedValue
Deprecated.- Returns:
- A
Value
for a new file that was just created
-
fileClosed
Deprecated.- Returns:
- A Status representing a closed file
-
fileClosedValue
Deprecated.- Returns:
- A Value representing a closed file
-
openWithUnknownLength
Deprecated.- Returns:
- A
Replication.Status
for an open file of unspecified length, all of which needs replicating.
-
openWithUnknownLength
Deprecated.- Returns:
- A
Replication.Status
for an open file of unspecified length, all of which needs replicating.
-
openWithUnknownLengthValue
Deprecated.- Returns:
- A
Value
for an open file of unspecified length, all of which needs replicating.
-
fromValue
public static Replication.Status fromValue(Value v) throws com.google.protobuf.InvalidProtocolBufferException Deprecated.- Parameters:
v
- Value with serialized Status- Returns:
- A Status created from the Value
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
isSafeForRemoval
Deprecated.Is the given Status fully replicated and is its file ready for deletion on the source- Parameters:
status
- a Status protobuf- Returns:
- True if the file this Status references can be deleted.
-
isFullyReplicated
Deprecated.Is the given Status fully replicated but potentially not yet safe for deletion- Parameters:
status
- a Status protobuf- Returns:
- True if the file this Status references is fully replicated so far
-
isWorkRequired
Deprecated.Given theReplication.Status
, is there replication work to be done- Parameters:
status
- Status for a file- Returns:
- true if replication work is required
-