@InterfaceAudience.Private @InterfaceStability.Unstable public class ChangeTracker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_REPORTED_BY_S3 |
| Constructor and Description |
|---|
ChangeTracker(String uri,
ChangeDetectionPolicy policy,
AtomicLong versionMismatches)
Create a change tracker.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRevisionId() |
ChangeDetectionPolicy.Source |
getSource() |
AtomicLong |
getVersionMismatches() |
boolean |
maybeApplyConstraint(com.amazonaws.services.s3.model.GetObjectRequest request)
Apply any revision control set by the policy if it is to be
enforced on the server.
|
void |
processResponse(com.amazonaws.services.s3.model.S3Object object,
String operation,
long pos)
Process the response from the server for validation against the
change policy.
|
String |
toString() |
public static final String CHANGE_REPORTED_BY_S3
public ChangeTracker(String uri, ChangeDetectionPolicy policy, AtomicLong versionMismatches)
uri - URI of object being trackedpolicy - policy to track.versionMismatches - reference to the version mismatch counterpublic String getRevisionId()
public ChangeDetectionPolicy.Source getSource()
public AtomicLong getVersionMismatches()
public boolean maybeApplyConstraint(com.amazonaws.services.s3.model.GetObjectRequest request)
request - request to modifypublic void processResponse(com.amazonaws.services.s3.model.S3Object object,
String operation,
long pos)
throws org.apache.hadoop.fs.PathIOException
object - object returned; may be null.operation - operation in progress.pos - offset of readorg.apache.hadoop.fs.PathIOException - raised on failureRemoteFileChangedException - if the remote file has changed.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.