Package | Description |
---|---|
org.jets3t.apps.synchronize |
Provides the Synchronize application, a console application to synchronize the
local file system with Amazon S3.
|
org.jets3t.service.io |
Provides IO utility classes used throughout JetS3t.
|
org.jets3t.service.multi | |
org.jets3t.service.multithread |
A multi-threading utility that manages multiple S3 interactions at once by wrapping an S3Service
implementation and running this service with multiple threads.
|
org.jets3t.service.utils |
General purpose utilities used throughout the JetS3t toolkit and applications.
|
Modifier and Type | Method and Description |
---|---|
protected org.jets3t.apps.synchronize.Synchronize.ComparisonResult |
Synchronize.compareLocalAndRemoteFiles(FileComparerResults mergedDiscrepancyResults,
String bucketName,
String rootObjectPath,
String priorLastKey,
Map<String,String> objectKeyToFilepathMap,
BytesProgressWatcher md5GenerationProgressWatcher) |
void |
Synchronize.restoreToLocalDirectory(Map<String,String> objectKeyToFilepathMap,
String rootObjectPath,
File localDirectory,
StorageBucket bucket,
BytesProgressWatcher md5GenerationProgressWatcher)
Copies the contents of a root path in service to the local file system.
|
void |
Synchronize.uploadLocalDirectory(Map<String,String> objectKeyToFilepathMap,
StorageBucket bucket,
String rootObjectPath,
String aclString,
BytesProgressWatcher md5GenerationProgressWatcher)
Copies the contents of a local directory to a service, storing them in the given root path.
|
Modifier and Type | Field and Description |
---|---|
protected BytesProgressWatcher |
ProgressMonitoredInputStream.progressWatcher |
Modifier and Type | Method and Description |
---|---|
static double |
BytesProgressWatcher.calculateOverallBytesPerSecond(BytesProgressWatcher[] progressWatchers) |
static long |
BytesProgressWatcher.calculateRecentByteRatePerSecond(BytesProgressWatcher[] progressWatchers) |
static long |
BytesProgressWatcher.calculateRemainingTime(BytesProgressWatcher[] progressWatchers) |
static long |
BytesProgressWatcher.sumBytesToTransfer(BytesProgressWatcher[] progressWatchers) |
static long |
BytesProgressWatcher.sumBytesTransferred(BytesProgressWatcher[] progressWatchers) |
Constructor and Description |
---|
ProgressMonitoredInputStream(InputStream inputStream,
BytesProgressWatcher progressWatcher)
Construts the input stream around an underlying stream and sends notification messages
to a progress watcher when bytes are read from the stream.
|
ProgressMonitoredOutputStream(OutputStream outputStream,
BytesProgressWatcher progressWatcher)
Construts the input stream around an underlying stream and sends notification messages
to a progress watcher when bytes are read from the stream.
|
Constructor and Description |
---|
ThreadWatcher(BytesProgressWatcher[] progressWatchers) |
Constructor and Description |
---|
ThreadWatcher(BytesProgressWatcher[] progressWatchers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FileComparerResults |
FileComparer.buildDiscrepancyLists(Map<String,String> objectKeyToFilepathMap,
Map<String,StorageObject> objectsMap,
BytesProgressWatcher progressWatcher)
Compares the contents of a directory on the local file system with the contents of a service
resource.
|
FileComparerResults |
FileComparer.buildDiscrepancyLists(Map<String,String> objectKeyToFilepathMap,
Map<String,StorageObject> objectsMap,
BytesProgressWatcher progressWatcher,
boolean isForceUpload)
Compares the contents of a directory on the local file system with the contents of a service
resource.
|
Map<String,StorageObject> |
FileComparer.buildObjectMap(StorageService service,
String bucketName,
String targetPath,
Map<String,String> objectKeyToFilepathMap,
boolean forceMetadataDownload,
boolean isForceUpload,
BytesProgressWatcher progressWatcher,
StorageServiceEventListener eventListener)
Builds a service Object Map containing all the objects within the given target path,
where the map's key for each object is the relative path to the object.
|
FileComparer.PartialObjectListing |
FileComparer.buildObjectMapPartial(StorageService service,
String bucketName,
String targetPath,
String priorLastKey,
Map<String,String> objectKeyToFilepathMap,
boolean completeListing,
boolean forceMetadataDownload,
boolean isForceUpload,
BytesProgressWatcher progressWatcher,
StorageServiceEventListener eventListener)
Builds a service Object Map containing a partial set of objects within the given target path,
where the map's key for each object is the relative path to the object.
|
static S3Object |
ObjectUtils.createObjectForUpload(String objectKey,
File dataFile,
byte[] md5HashOfDataFile,
EncryptionUtil encryptionUtil,
boolean gzipFile,
BytesProgressWatcher progressWatcher)
Prepares a file for upload to a named object in S3, potentially transforming it if
zipping or encryption is requested.
|
static S3Object |
ObjectUtils.createObjectForUpload(String objectKey,
File dataFile,
EncryptionUtil encryptionUtil,
boolean gzipFile,
BytesProgressWatcher progressWatcher)
Prepares a file for upload to a named object in S3, potentially transforming it if
zipping or encryption is requested.
|
byte[] |
FileComparer.generateFileMD5Hash(File file,
String relativeFilePath,
BytesProgressWatcher progressWatcher) |
Map<String,StorageObject> |
FileComparer.lookupObjectMetadataForPotentialClashes(StorageService service,
String bucketName,
String targetPath,
StorageObject[] objectsWithoutMetadata,
Map<String,String> objectKeyToFilepathMap,
boolean forceMetadataDownload,
boolean isForceUpload,
BytesProgressWatcher progressWatcher,
StorageServiceEventListener eventListener)
Given a set of storage objects for which only minimal information is available,
retrieve metadata information for any objects that potentially clash with
local files.
|
Copyright © 2006–2018. All rights reserved.