Class AdminTool

java.lang.Object
com.linkedin.venice.AdminTool

public class AdminTool extends Object
  • Constructor Details

    • AdminTool

      public AdminTool()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      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

      protected static void printObject(Object response, Consumer<String> printFunction)