Package org.cdlib.mrt.s3v2.test
Class TestAWSNodeIO
java.lang.Object
org.cdlib.mrt.s3v2.test.TestAWSNodeIO
Before running this Java V2 code example, set up your development
environment, including your credentials.
For more information, see the following documentation topic:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
static GetSSM
protected static final String
protected static final String
protected software.amazon.awssdk.services.s3.S3AsyncClient
protected static final String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudResponse
doDelete
(CloudStoreInf client, String bucketName, String key) static URL
doPresign
(CloudStoreInf client, String bucketName, String key) protected static CloudResponse
doPutObject
(CloudStoreInf client, String bucketName, String key, String filePath, String sha256) static NodeIO.AccessNode
getClientNodeIO
(long nodeID) static Properties
getMeta
(String header, CloudStoreInf client, String bucketName, String key) static void
static void
test_node
(long nodeID, String key, String sha256, String upFilePath, String downFilePth, org.cdlib.mrt.utility.LoggerInf log) protected static void
testGetObject
(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) static void
testPresign
(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) protected static void
testPutObject
(CloudStoreInf client, String bucketName, String key, String putFilePath, String sha256) static void
testState
(CloudStoreInf client, String bucketName, String key, String sha256, String upFilePath, String downDirPath, org.cdlib.mrt.utility.LoggerInf logger) static int
-
Field Details
-
s3Client
protected software.amazon.awssdk.services.s3.S3AsyncClient s3Client -
getSSM
-
fileBig
- See Also:
-
downloadDir
- See Also:
-
downloadBig
- See Also:
-
downloadSmall
- See Also:
-
downloadBigWasabi
- See Also:
-
downloadBigMinio
- See Also:
-
downloadBigSDSC
- See Also:
-
sha256Big
- See Also:
-
keyBig
- See Also:
-
fileSmall
- See Also:
-
sha256Small
- See Also:
-
keySmall
- See Also:
-
-
Constructor Details
-
TestAWSNodeIO
public TestAWSNodeIO()
-
-
Method Details
-
main
- Throws:
org.cdlib.mrt.utility.TException
-
test_node
public static void test_node(long nodeID, String key, String sha256, String upFilePath, String downFilePth, org.cdlib.mrt.utility.LoggerInf log) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getMeta
public static Properties getMeta(String header, CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
doPutObject
protected static CloudResponse doPutObject(CloudStoreInf client, String bucketName, String key, String filePath, String sha256) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
testPutObject
protected static void testPutObject(CloudStoreInf client, String bucketName, String key, String putFilePath, String sha256) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
testGetObject
protected static void testGetObject(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
doDelete
public static CloudResponse doDelete(CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
doPresign
public static URL doPresign(CloudStoreInf client, String bucketName, String key) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
testPresign
public static void testPresign(CloudStoreInf client, String bucketName, String key, File outDir, String sha256, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
url2file
public static int url2file(org.cdlib.mrt.utility.LoggerInf logger, URL presign, File preFile, int retry) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
testState
public static void testState(CloudStoreInf client, String bucketName, String key, String sha256, String upFilePath, String downDirPath, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getClientNodeIO
public static NodeIO.AccessNode getClientNodeIO(long nodeID) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-