Class DatastoreArguments
- java.lang.Object
-
- org.apache.jackrabbit.oak.upgrade.cli.parser.DatastoreArguments
-
public class DatastoreArguments extends java.lang.Object
This class parses the input provided by the user and analyses the given node stores in order to find out which datastore combination should be used for the migration. The desired outcome for the combinations of user input can be found in the table below. The table is a kind of heuristics that tries to match the user intentions.For sidegrade: || src blobstore defined || src blobs embedded || dst blobstore defined || --copy-binaries || outcome src blobstore || outcome action | - | - | - | - | missing | copy references¹ | - | - | - | + | missing | (x) not supported | - | - | + | * | missing | (x) not supported | - | + | - | * | embedded | copy to embedded | - | + | + | * | embedded | copy to defined blobstore | + | * | - | - | as in src | copy references | + | * | - | + | as in src | copy to embedded | + | * | + | * | as in src | copy to defined blobstore ¹ - (x) not supported for SegmentMK -> MongoMK migration For upgrade: || dst blobstore defined || --copy-binaries || outcome src blobstore || outcome action | - | - | defined by JCR2 | copy references | - | + | defined by JCR2 | copy to embedded | + | * | defined by JCR2 | copy to defined blobstore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DatastoreArguments.BlobMigrationCase
-
Constructor Summary
Constructors Constructor Description DatastoreArguments(MigrationOptions options, StoreArguments storeArguments, boolean srcEmbedded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastoreArguments.BlobMigrationCase
getBlobMigrationCase()
BlobStoreFactory
getDstBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore srcBlobStore)
BlobStoreFactory
getSrcBlobStore()
-
-
-
Constructor Detail
-
DatastoreArguments
public DatastoreArguments(MigrationOptions options, StoreArguments storeArguments, boolean srcEmbedded) throws CliArgumentException
- Throws:
CliArgumentException
-
-
Method Detail
-
getSrcBlobStore
public BlobStoreFactory getSrcBlobStore() throws java.io.IOException
- Throws:
java.io.IOException
-
getDstBlobStore
public BlobStoreFactory getDstBlobStore(org.apache.jackrabbit.oak.spi.blob.BlobStore srcBlobStore) throws java.io.IOException
- Throws:
java.io.IOException
-
getBlobMigrationCase
public DatastoreArguments.BlobMigrationCase getBlobMigrationCase()
-
-