Class DISCommandUtil
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.DISCommandUtil
Utilities for DIS command channel.
This is shared by ConfigurationTools and Ingesters projects.
Deephaven internal use only, except for consuming the ActionResult class as a return value.
Deephaven internal use only, except for consuming the ActionResult class as a return value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Results of a truncate or delete operation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DISCommandUtil.ActionResult
truncateAndDeleteIntradayPartitionImpl
(com.fishlib.io.logger.Logger userLog, com.fishlib.io.logger.Logger sysLog, TableIdentifier tableIdentifier, String internalPartitionValue, String columnPartitionValue, Collection<? extends DataImportServiceConfig.DeferredEndpoint> dises, io.deephaven.enterprise.auth.TokenFactoryFactory tokenAuthenticationManager) Send a truncate message to all listed DIS endpoints, followed by a delete message if the truncate succeeds.static DISCommandUtil.ActionResult
truncateOrDeleteIntradayPartitionImpl
(com.fishlib.io.logger.Logger userLog, com.fishlib.io.logger.Logger sysLog, TableIdentifier tableIdentifier, String internalPartitionValue, String columnPartitionValue, Collection<? extends DataImportServiceConfig.DeferredEndpoint> dises, boolean delete, boolean dryRun, io.deephaven.enterprise.auth.TokenFactoryFactory tokenAuthenticationManager) Send a truncate or delete message to all listed DIS endpoints.
-
Constructor Details
-
DISCommandUtil
public DISCommandUtil()
-
-
Method Details
-
truncateOrDeleteIntradayPartitionImpl
@InternalUseOnly public static DISCommandUtil.ActionResult truncateOrDeleteIntradayPartitionImpl(@NotNull com.fishlib.io.logger.Logger userLog, @NotNull com.fishlib.io.logger.Logger sysLog, @NotNull TableIdentifier tableIdentifier, @Nullable String internalPartitionValue, @NotNull String columnPartitionValue, @NotNull Collection<? extends DataImportServiceConfig.DeferredEndpoint> dises, boolean delete, boolean dryRun, @NotNull io.deephaven.enterprise.auth.TokenFactoryFactory tokenAuthenticationManager) Send a truncate or delete message to all listed DIS endpoints.- Parameters:
userLog
- for informational logging to the console/UIsysLog
- for logging a process logtableIdentifier
- the System table to truncate or deleteinternalPartitionValue
- optional internal partition to truncate or delete. Null means "all" internal partitionscolumnPartitionValue
- the column partition to truncate or deletedises
- collection of dises to which requests will be sentdelete
- if false, truncate the location, else delete itdryRun
- if true, the DIS will not actually perform the action, but will indicate what locations would have been affected.tokenAuthenticationManager
- the TokenFactoryFactory to use for authentication, will be AuthenticationClientManager.getDefault() in most cases- Returns:
- the compound result in ActionResult
-
truncateAndDeleteIntradayPartitionImpl
@InternalUseOnly public static DISCommandUtil.ActionResult truncateAndDeleteIntradayPartitionImpl(@NotNull com.fishlib.io.logger.Logger userLog, @NotNull com.fishlib.io.logger.Logger sysLog, @NotNull TableIdentifier tableIdentifier, @Nullable String internalPartitionValue, @NotNull String columnPartitionValue, @NotNull Collection<? extends DataImportServiceConfig.DeferredEndpoint> dises, @NotNull io.deephaven.enterprise.auth.TokenFactoryFactory tokenAuthenticationManager) Send a truncate message to all listed DIS endpoints, followed by a delete message if the truncate succeeds.- Parameters:
userLog
- for informational loggingsysLog
- for logging a process logtableIdentifier
- the System table to deleteinternalPartitionValue
- optional internal partition value to delete. Null means "all" internal partitionscolumnPartitionValue
- the column partition to deletedises
- collection of dises to which requests will be senttokenAuthenticationManager
- the TokenFactoryFactory to use in authentication, will be AuthenticationClientManager.getDefault() in most cases- Returns:
- the compound result in ActionResult
-