Package com.linkedin.venice
Class AdminTool
java.lang.Object
com.linkedin.venice.AdminTool
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabortMigration(String veniceUrl, String storeName, String srcClusterName, String destClusterName, boolean force, boolean[] promptsOverride) static voidautoMigrateStore(org.apache.commons.cli.CommandLine cmd) static voidcheckMigrationStatus(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction) static voidcheckMigrationStatus(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction, ControllerClient srcControllerClient, ControllerClient destControllerClient) static org.apache.commons.cli.CommandLinegetCommandLine(String[] args) protected static UpdateClusterConfigQueryParamsgetUpdateClusterConfigQueryParams(org.apache.commons.cli.CommandLine cmd) protected static UpdateDarkClusterConfigQueryParamsgetUpdateDarkClusterConfigQueryParams(org.apache.commons.cli.CommandLine cmd) protected static booleanisClonedStoreOnline(ControllerClient srcControllerClient, ControllerClient destControllerClient, String storeName) static PropertiesloadProperties(org.apache.commons.cli.CommandLine cmd, Arg arg) static voidprotected static voidprintObject(Object response, Consumer<String> printFunction)
-
Constructor Details
-
AdminTool
public AdminTool()
-
-
Method Details
-
main
- Throws:
Exception
-
getCommandLine
public static org.apache.commons.cli.CommandLine getCommandLine(String[] args) throws org.apache.commons.cli.ParseException, IOException - Throws:
org.apache.commons.cli.ParseExceptionIOException
-
getUpdateClusterConfigQueryParams
protected static UpdateClusterConfigQueryParams getUpdateClusterConfigQueryParams(org.apache.commons.cli.CommandLine cmd) -
getUpdateDarkClusterConfigQueryParams
protected static UpdateDarkClusterConfigQueryParams getUpdateDarkClusterConfigQueryParams(org.apache.commons.cli.CommandLine cmd) -
checkMigrationStatus
public static void checkMigrationStatus(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction) -
checkMigrationStatus
public static void checkMigrationStatus(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction, ControllerClient srcControllerClient, ControllerClient destControllerClient) -
isClonedStoreOnline
protected static boolean isClonedStoreOnline(ControllerClient srcControllerClient, ControllerClient destControllerClient, String storeName) -
abortMigration
public static void abortMigration(String veniceUrl, String storeName, String srcClusterName, String destClusterName, boolean force, boolean[] promptsOverride) - Parameters:
promptsOverride- is an array of boolean used to replace/override user's responses to various possible prompts when calling abort migration programmatically. The corresponding response for each index is defined as follows: [0] Continue to execute abort migration even if the store doesn't appear to be migrating. [1] Continue to reset store migration flag, storeConfig and cluster discovery mapping. [2] Continue to delete the cloned store in the destination cluster.
-
autoMigrateStore
public static void autoMigrateStore(org.apache.commons.cli.CommandLine cmd) -
loadProperties
public static Properties loadProperties(org.apache.commons.cli.CommandLine cmd, Arg arg) throws VeniceException - Throws:
VeniceException
-
printObject
-