Skip to content

Commit c7cb018

Browse files
committed
fix#582 : add to serialize aws config info
1 parent ee42844 commit c7cb018

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

bundles/sirix-core/src/main/java/org/sirix/access/ResourceConfiguration.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ public boolean storeNodeHistory() {
490490
private static final String[] JSONNAMES =
491491
{ "binaryEncoding", "revisioning", "revisioningClass", "numbersOfRevisiontoRestore", "byteHandlerClasses",
492492
"storageKind", "hashKind", "hashFunction", "compression", "pathSummary", "resourceID", "deweyIDsStored",
493-
"persistenter", "storeDiffs", "customCommitTimestamps", "storeNodeHistory", "storeChildCount", "awsStoreInfo" };
493+
"persistenter", "storeDiffs", "customCommitTimestamps", "storeNodeHistory", "storeChildCount", "awsStoreInfo",
494+
"awsProfile","awsRegion","bucketName","shouldCreateBucketIfNotExists"};
494495

495496
/**
496497
* Serialize the configuration.
@@ -542,6 +543,15 @@ public static void serialize(final ResourceConfiguration config) throws SirixIOE
542543
jsonWriter.name(JSONNAMES[15]).value(config.storeNodeHistory);
543544
// Child count.
544545
jsonWriter.name(JSONNAMES[16]).value(config.storeChildCount);
546+
547+
jsonWriter.name(JSONNAMES[17]);
548+
jsonWriter.beginObject();
549+
jsonWriter.name(JSONNAMES[18]).value(config.awsStoreInfo.getAwsProfile());
550+
jsonWriter.name(JSONNAMES[19]).value(config.awsStoreInfo.getAwsRegion());
551+
jsonWriter.name(JSONNAMES[20]).value(config.awsStoreInfo.getBucketName());
552+
jsonWriter.name(JSONNAMES[21]).value(config.awsStoreInfo.shouldCreateBucketIfNotExists());
553+
jsonWriter.endObject();
554+
545555
jsonWriter.endObject();
546556
} catch (final IOException e) {
547557
throw new SirixIOException(e);

0 commit comments

Comments
 (0)