Interface UploadNecessityCheckStrategy
-
- All Known Implementing Classes:
ChecksumUploadNecessityCheckStrategy,UploadAlwaysStrategy
public interface UploadNecessityCheckStrategyThis is an interface for strategies that decide if it necessary to upload a file to BucketFS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisUploadNecessary(Path file, String fullFileNameInBucketFs, ReadOnlyBucket bucket)Decide if it is necessary to upload a file to BucketFS.
-
-
-
Method Detail
-
isUploadNecessary
boolean isUploadNecessary(Path file, String fullFileNameInBucketFs, ReadOnlyBucket bucket) throws BucketAccessException
Decide if it is necessary to upload a file to BucketFS.- Parameters:
file- local filefullFileNameInBucketFs- path to the file in BucketFSbucket- bucket the file is uploaded to- Returns:
trueif the file should get uploaded- Throws:
BucketAccessException- if the necessity check cannot be executed
-
-