Class 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