Package io.deephaven.configuration
Class CheckpointControl.RepairOptions
java.lang.Object
io.deephaven.configuration.CheckpointControl.RepairOptions
- Enclosing class:
- CheckpointControl
Configuration for a repair request: the tables to inspect, whether to actually make changes, and a logger.
Tables may be selected individually with CheckpointControl.RepairOptions.Builder.addTable(String, String), a namespace at a time with
CheckpointControl.RepairOptions.Builder.addNamespace(String), or a whole namespace set at a time with
CheckpointControl.RepairOptions.Builder.addNamespaceSet(NamespaceSet). The selections are unioned, and at least one must be made.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull CheckpointControl.RepairOptions.Builderbuilder()Create a newCheckpointControl.RepairOptions.Builderfor anCheckpointControl.RepairOptionsinstance.booleanforce()Whether repairs should actually be performed.@NotNull com.fishlib.io.logger.Loggerlogger()The logger used for user-facing messages emitted during the operation.The selected namespaces.abstract @NotNull List<NamespaceSet>The selected namespace sets.@NotNull SchemaServiceThe schema service used to enumerate and validate the selected namespaces and tables, and to read their definitions.abstract @NotNull List<CheckpointControl.TableKey>tables()The individually selected tables.
-
Constructor Details
-
RepairOptions
public RepairOptions()
-
-
Method Details
-
tables
The individually selected tables.- Returns:
- the selected tables
-
namespaces
The selected namespaces. Every table in each of these namespaces is inspected.- Returns:
- the selected namespaces
-
namespaceSets
The selected namespace sets. Every table in every namespace of each of these sets is inspected.- Returns:
- the selected namespace sets
-
force
@Default public boolean force()Whether repairs should actually be performed. Whenfalse(the default), problems are reported but nothing is modified.- Returns:
trueto perform repairs
-
logger
@Default @NotNull public @NotNull com.fishlib.io.logger.Logger logger()The logger used for user-facing messages emitted during the operation. Defaults toCheckpointControl's process-wide logger.- Returns:
- the logger
-
schemaService
The schema service used to enumerate and validate the selected namespaces and tables, and to read their definitions. Defaults toSchemaServiceFactory.getDefault().- Returns:
- the schema service
-
builder
Create a newCheckpointControl.RepairOptions.Builderfor anCheckpointControl.RepairOptionsinstance.- Returns:
- a new
CheckpointControl.RepairOptions.Builder
-