| Package | Description |
|---|---|
| org.jets3t.apps.cockpit |
Provides Cockpit, a graphical Java application for viewing and managing the contents of an Amazon S3 account.
|
| org.jets3t.apps.cockpitlite |
Provides CockpitLite, a graphical Java application for viewing and managing the contents
of an Amazon S3 account, where the S3 account is not owned by the application's user
directly but is made available via the Gatekeeper servlet.
|
| 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.multi.s3 | |
| 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 |
|---|---|
private java.lang.String |
Cockpit.formatBytesProgressWatcherDetails(BytesProgressWatcher watcher,
boolean includeBytes) |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
CockpitLite.formatBytesProgressWatcherDetails(BytesProgressWatcher watcher,
boolean includeBytes) |
| Modifier and Type | Method and Description |
|---|---|
protected Synchronize.ComparisonResult |
Synchronize.compareLocalAndRemoteFiles(FileComparerResults mergedDiscrepancyResults,
java.lang.String bucketName,
java.lang.String rootObjectPath,
java.lang.String priorLastKey,
java.util.Map<java.lang.String,java.lang.String> objectKeyToFilepathMap,
BytesProgressWatcher md5GenerationProgressWatcher) |
void |
Synchronize.restoreToLocalDirectory(java.util.Map<java.lang.String,java.lang.String> objectKeyToFilepathMap,
java.lang.String rootObjectPath,
java.io.File localDirectory,
StorageBucket bucket,
BytesProgressWatcher md5GenerationProgressWatcher)
Copies the contents of a root path in service to the local file system.
|
void |
Synchronize.uploadLocalDirectory(java.util.Map<java.lang.String,java.lang.String> objectKeyToFilepathMap,
StorageBucket bucket,
java.lang.String rootObjectPath,
java.lang.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 |
private BytesProgressWatcher |
ProgressMonitoredOutputStream.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(java.io.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(java.io.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.
|
| Modifier and Type | Field and Description |
|---|---|
private BytesProgressWatcher |
ThreadedStorageService.CreateObjectRunnable.progressMonitor |
private BytesProgressWatcher |
ThreadedStorageService.DownloadObjectRunnable.progressMonitor |
private BytesProgressWatcher[] |
ThreadWatcher.progressWatchers |
| Constructor and Description |
|---|
CreateObjectRunnable(java.lang.String bucketName,
StorageObject object,
BytesProgressWatcher progressMonitor) |
DownloadObjectRunnable(java.lang.String bucketName,
java.lang.String objectKey,
DownloadPackage downloadPackage,
BytesProgressWatcher progressMonitor,
boolean restoreLastModifiedDate,
ErrorPermitter errorPermitter) |
ThreadWatcher(BytesProgressWatcher[] progressWatchers) |
| Modifier and Type | Field and Description |
|---|---|
private BytesProgressWatcher |
ThreadedS3Service.MultipartUploadObjectRunnable.progressMonitor |
| Constructor and Description |
|---|
MultipartUploadObjectRunnable(MultipartUpload multipartUpload,
java.lang.Integer partNumber,
S3Object object,
BytesProgressWatcher progressMonitor) |
| Modifier and Type | Field and Description |
|---|---|
private BytesProgressWatcher |
S3ServiceMulti.CreateObjectRunnable.progressMonitor |
private BytesProgressWatcher |
S3ServiceMulti.DownloadObjectRunnable.progressMonitor |
private BytesProgressWatcher |
S3ServiceMulti.SignedPutRunnable.progressMonitor |
| Constructor and Description |
|---|
CreateObjectRunnable(S3Bucket bucket,
S3Object s3Object,
BytesProgressWatcher progressMonitor) |
DownloadObjectRunnable(DownloadPackage downloadPackage,
BytesProgressWatcher progressMonitor,
boolean restoreLastModifiedDate) |
DownloadObjectRunnable(S3Bucket bucket,
java.lang.String objectKey,
DownloadPackage downloadPackage,
BytesProgressWatcher progressMonitor,
boolean restoreLastModifiedDate) |
SignedPutRunnable(SignedUrlAndObject signedUrlAndObject,
BytesProgressWatcher progressMonitor) |
ThreadWatcher(BytesProgressWatcher[] progressWatchers)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
FileComparerResults |
FileComparer.buildDiscrepancyLists(java.util.Map<java.lang.String,java.lang.String> objectKeyToFilepathMap,
java.util.Map<java.lang.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(java.util.Map<java.lang.String,java.lang.String> objectKeyToFilepathMap,
java.util.Map<java.lang.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.
|
java.util.Map<java.lang.String,StorageObject> |
FileComparer.buildObjectMap(StorageService service,
java.lang.String bucketName,
java.lang.String targetPath,
java.util.Map<java.lang.String,java.lang.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,
java.lang.String bucketName,
java.lang.String targetPath,
java.lang.String priorLastKey,
java.util.Map<java.lang.String,java.lang.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(java.lang.String objectKey,
java.io.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(java.lang.String objectKey,
java.io.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(java.io.File file,
java.lang.String relativeFilePath,
BytesProgressWatcher progressWatcher) |
java.util.Map<java.lang.String,StorageObject> |
FileComparer.lookupObjectMetadataForPotentialClashes(StorageService service,
java.lang.String bucketName,
java.lang.String targetPath,
StorageObject[] objectsWithoutMetadata,
java.util.Map<java.lang.String,java.lang.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.
|
private static java.io.File |
ObjectUtils.transformUploadFile(java.io.File dataFile,
S3Object s3Object,
EncryptionUtil encryptionUtil,
boolean gzipFile,
BytesProgressWatcher progressWatcher)
Prepares a file prior to upload by encrypting and/or gzipping it according to the
options specified by the user, and returning the transformed file.
|