Interface CommandLineOptionProvider


public interface CommandLineOptionProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    org.pentaho.di.core.parameters.NamedParams
    getAdditionalCommandlineOptions(org.pentaho.di.core.logging.LogChannelInterface log)
    Return the additional commandline option in the form of namedParams
    handleParameter(org.pentaho.di.core.logging.LogChannelInterface log, Map<String,String> params, Repository repository)
    Validate the parameter value and set the project context
  • Method Details

    • getAdditionalCommandlineOptions

      org.pentaho.di.core.parameters.NamedParams getAdditionalCommandlineOptions(org.pentaho.di.core.logging.LogChannelInterface log)
      Return the additional commandline option in the form of namedParams
      Parameters:
      log - LogChannelInterface object for logging information
      Returns:
      NamedParam NameParam containing the name and description of the commandline options
    • handleParameter

      CommandExecutorResult handleParameter(org.pentaho.di.core.logging.LogChannelInterface log, Map<String,String> params, Repository repository) throws org.pentaho.di.core.exception.KettleException
      Validate the parameter value and set the project context
      Parameters:
      log -
      params - Map containing the param/value
      repository - Repository object in case we are connected to repository
      Returns:
      CommandExecutorResult Returns the return code which is zero in case of success and non-zero code in case of error
      Throws:
      org.pentaho.di.core.exception.KettleException