Package org.cdlib.mrt.s3.tools
Class CloudObjectDelete
java.lang.Object
org.cdlib.mrt.s3.tools.CloudObjectDelete
This sample demonstrates how to make basic requests to Amazon S3 using
the AWS SDK for Java.
Prerequisites: You must have a valid Amazon Web Services developer account, and be signed up to use Amazon S3. For more information on Amazon S3, see http://aws.amazon.com/s3.
Important: Be sure to fill in your AWS access credentials in the AwsCredentials.properties file before you try to run this sample. http://aws.amazon.com/security-credentials
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected long
protected org.cdlib.mrt.utility.LoggerInf
protected static final String
protected static final String
protected CloudStoreInf
protected boolean
protected File
-
Constructor Summary
ConstructorsConstructorDescriptionCloudObjectDelete
(CloudStoreInf service, String container, boolean allowManifest, org.cdlib.mrt.utility.LoggerInf logger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
delete
(org.cdlib.mrt.cloud.CloudList.CloudEntry entry) int
deleteObject
(String ark) void
protected org.cdlib.mrt.cloud.VersionMap
protected boolean
isManifest
(String arkS) void
setShowEntry
(boolean showEntry) protected boolean
stopDelete
(String arkS)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
service
-
container
-
tFile
-
logger
protected org.cdlib.mrt.utility.LoggerInf logger -
showEntry
protected boolean showEntry -
allowManifest
protected boolean allowManifest -
deleteCnt
protected long deleteCnt
-
-
Constructor Details
-
CloudObjectDelete
public CloudObjectDelete(CloudStoreInf service, String container, boolean allowManifest, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
deleteObject
- Throws:
org.cdlib.mrt.utility.TException
-
deleteToCurrentObject
- Throws:
org.cdlib.mrt.utility.TException
-
delete
public CloudResponse delete(org.cdlib.mrt.cloud.CloudList.CloudEntry entry) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
stopDelete
- Throws:
org.cdlib.mrt.utility.TException
-
isManifest
- Throws:
org.cdlib.mrt.utility.TException
-
getMap
protected org.cdlib.mrt.cloud.VersionMap getMap(String arkS) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
close
public void close() -
setShowEntry
public void setShowEntry(boolean showEntry)
-