Class SnapshotUriConfigurationSchema

java.lang.Object
org.gridgain.internal.snapshots.configuration.SnapshotUriConfigurationSchema

@Config public class SnapshotUriConfigurationSchema extends Object
Configuration of the snapshot paths.
  • Field Details

    • uri

      @Value public String uri
      The base URI to create snapshots at (scheme://relative-path or scheme:/absolute-path). Currently, only the "file" scheme is supported. If an absolute path is specified, the REMOTE path is used "as is." For the LOCAL path, a subfolder with the node name is used: `/absolute-path/node-name`. Relative paths are calculated from the node's work directory: `{GRIDGAIN_HOME}/work/relative-path`.
    • name

      @InjectedName public String name
      The name of the snapshot path.
    • type

      @Value(hasDefault=true) public String type
      The snapshot path's type. LOCAL paths are not shared between nodes; REMOTE ones are shared. The REMOTE paths use a single-copy algorithm, which saves only one copy of meta and partition files
    • isDefault

      @Value(hasDefault=true) @PublicName("default") public boolean isDefault
      If true, the path is used as a default path when no --source / --destination is provided in the snapshot command. Only one path can be designated as default (default=true). If no path is designated as default, the LOCAL `file:/snapshots` path is used in case no --source / --destination is provided.
  • Constructor Details

    • SnapshotUriConfigurationSchema

      public SnapshotUriConfigurationSchema()