Skip to content

Commit

Permalink
fix#582 : add to serialize aws config info
Browse files Browse the repository at this point in the history
  • Loading branch information
sband committed May 26, 2023
1 parent ee42844 commit c7cb018
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ public boolean storeNodeHistory() {
private static final String[] JSONNAMES =
{ "binaryEncoding", "revisioning", "revisioningClass", "numbersOfRevisiontoRestore", "byteHandlerClasses",
"storageKind", "hashKind", "hashFunction", "compression", "pathSummary", "resourceID", "deweyIDsStored",
"persistenter", "storeDiffs", "customCommitTimestamps", "storeNodeHistory", "storeChildCount", "awsStoreInfo" };
"persistenter", "storeDiffs", "customCommitTimestamps", "storeNodeHistory", "storeChildCount", "awsStoreInfo",
"awsProfile","awsRegion","bucketName","shouldCreateBucketIfNotExists"};

/**
* Serialize the configuration.
Expand Down Expand Up @@ -542,6 +543,15 @@ public static void serialize(final ResourceConfiguration config) throws SirixIOE
jsonWriter.name(JSONNAMES[15]).value(config.storeNodeHistory);
// Child count.
jsonWriter.name(JSONNAMES[16]).value(config.storeChildCount);

jsonWriter.name(JSONNAMES[17]);
jsonWriter.beginObject();
jsonWriter.name(JSONNAMES[18]).value(config.awsStoreInfo.getAwsProfile());
jsonWriter.name(JSONNAMES[19]).value(config.awsStoreInfo.getAwsRegion());
jsonWriter.name(JSONNAMES[20]).value(config.awsStoreInfo.getBucketName());
jsonWriter.name(JSONNAMES[21]).value(config.awsStoreInfo.shouldCreateBucketIfNotExists());
jsonWriter.endObject();

jsonWriter.endObject();
} catch (final IOException e) {
throw new SirixIOException(e);
Expand Down

0 comments on commit c7cb018

Please sign in to comment.