Class AbstractCommandLauncher

java.lang.Object
org.jumpmind.symmetric.AbstractCommandLauncher
Direct Known Subclasses:
DbCompareCommand, DbExportCommand, DbFillCommand, DbImportCommand, DbSqlCommand, JmxCommand, SymmetricAdmin, SymmetricLauncher

public abstract class AbstractCommandLauncher extends Object
  • Field Details

  • Constructor Details

    • AbstractCommandLauncher

      public AbstractCommandLauncher(String app, String argSyntax, String messageKeyPrefix)
  • Method Details

    • initFromServerProperties

      protected static void initFromServerProperties()
    • printHelpIfNoOptionsAreProvided

      protected abstract boolean printHelpIfNoOptionsAreProvided()
    • requiresPropertiesFile

      protected abstract boolean requiresPropertiesFile(org.apache.commons.cli.CommandLine line)
    • execute

      public void execute(String[] args)
    • scrubCommandLine

      protected String scrubCommandLine(String[] cmdArgs)
    • scrubOptionValues

      protected String scrubOptionValues(org.apache.commons.cli.Option option)
    • printHelp

      protected void printHelp(org.apache.commons.cli.CommandLine cmd, org.apache.commons.cli.Options options)
    • printUsage

      protected void printUsage(org.apache.commons.cli.Options options)
    • configureLogging

      protected void configureLogging(org.apache.commons.cli.CommandLine line) throws MalformedURLException
      Throws:
      MalformedURLException
    • configurePropertiesFile

      protected void configurePropertiesFile(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException
      Throws:
      org.apache.commons.cli.ParseException
    • findSingleEnginesPropertiesFile

      public File findSingleEnginesPropertiesFile()
    • configureCrypto

      protected void configureCrypto(org.apache.commons.cli.CommandLine line) throws Exception
      Throws:
      Exception
    • getSymmetricEngine

      protected ISymmetricEngine getSymmetricEngine()
    • getSymmetricEngine

      protected ISymmetricEngine getSymmetricEngine(boolean testConnection)
    • testConnection

      protected void testConnection()
    • getDatabasePlatform

      protected IDatabasePlatform getDatabasePlatform(boolean testConnection)
    • getDatabasePlatform

      protected IDatabasePlatform getDatabasePlatform(boolean testConnection, boolean symmetricPlatform)
    • getTypedProperties

      protected TypedProperties getTypedProperties()
    • buildOptions

      protected void buildOptions(org.apache.commons.cli.Options options)
    • buildCryptoOptions

      protected void buildCryptoOptions(org.apache.commons.cli.Options options)
    • addOption

      protected void addOption(org.apache.commons.cli.Options options, String opt, String longOpt, boolean hasArg)
    • addOption

      protected void addOption(org.apache.commons.cli.Options options, String opt, boolean hasArg)
    • addCommonOption

      protected void addCommonOption(org.apache.commons.cli.Options options, String opt, String longOpt, boolean hasArg)
    • addCommonOption

      protected void addCommonOption(org.apache.commons.cli.Options options, String opt, boolean hasArg)
    • executeWithOptions

      protected abstract boolean executeWithOptions(org.apache.commons.cli.CommandLine line) throws Exception
      Throws:
      Exception