Package com.linkedin.venice
Class AdminTool
java.lang.Object
com.linkedin.venice.AdminTool
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
abortMigration
(String veniceUrl, String storeName, String srcClusterName, String destClusterName, boolean force, boolean[] promptsOverride) static void
checkMigrationStatus
(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction) static void
checkMigrationStatus
(org.apache.commons.cli.CommandLine cmd, AdminTool.PrintFunction printFunction, ControllerClient srcControllerClient, ControllerClient destControllerClient) static org.apache.commons.cli.CommandLine
getCommandLine
(String[] args) protected static UpdateClusterConfigQueryParams
getUpdateClusterConfigQueryParams
(org.apache.commons.cli.CommandLine cmd) protected static boolean
isClonedStoreOnline
(ControllerClient srcControllerClient, ControllerClient destControllerClient, String storeName) static Properties
loadProperties
(org.apache.commons.cli.CommandLine cmd, Arg arg) static void
protected static void
printObject
(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.ParseException
IOException
-
getUpdateClusterConfigQueryParams
protected static UpdateClusterConfigQueryParams getUpdateClusterConfigQueryParams(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.
-
loadProperties
public static Properties loadProperties(org.apache.commons.cli.CommandLine cmd, Arg arg) throws VeniceException - Throws:
VeniceException
-
printObject
-