Tabnine Logo
ProgramOptions.getProgramArgs
Code IndexAdd Tabnine to your IDE (free)

How to use
getProgramArgs
method
in
org.apache.flink.client.cli.ProgramOptions

Best Java code snippets using org.apache.flink.client.cli.ProgramOptions.getProgramArgs (Showing top 4 results out of 315)

origin: apache/flink

/**
 * Creates a Packaged program from the given command line options.
 *
 * @return A PackagedProgram (upon success)
 */
PackagedProgram buildProgram(ProgramOptions options) throws FileNotFoundException, ProgramInvocationException {
  String[] programArgs = options.getProgramArgs();
  String jarFilePath = options.getJarFilePath();
  List<URL> classpaths = options.getClasspaths();
  if (jarFilePath == null) {
    throw new IllegalArgumentException("The program JAR file was not specified.");
  }
  File jarFile = new File(jarFilePath);
  // Check if JAR file exists
  if (!jarFile.exists()) {
    throw new FileNotFoundException("JAR file does not exist: " + jarFile);
  }
  else if (!jarFile.isFile()) {
    throw new FileNotFoundException("JAR file is not a file: " + jarFile);
  }
  // Get assembler class
  String entryPointClass = options.getEntryPointClassName();
  PackagedProgram program = entryPointClass == null ?
      new PackagedProgram(jarFile, classpaths, programArgs) :
      new PackagedProgram(jarFile, classpaths, entryPointClass, programArgs);
  program.setSavepointRestoreSettings(options.getSavepointRestoreSettings());
  return program;
}
origin: org.apache.flink/flink-clients_2.11

/**
 * Creates a Packaged program from the given command line options.
 *
 * @return A PackagedProgram (upon success)
 */
PackagedProgram buildProgram(ProgramOptions options) throws FileNotFoundException, ProgramInvocationException {
  String[] programArgs = options.getProgramArgs();
  String jarFilePath = options.getJarFilePath();
  List<URL> classpaths = options.getClasspaths();
  if (jarFilePath == null) {
    throw new IllegalArgumentException("The program JAR file was not specified.");
  }
  File jarFile = new File(jarFilePath);
  // Check if JAR file exists
  if (!jarFile.exists()) {
    throw new FileNotFoundException("JAR file does not exist: " + jarFile);
  }
  else if (!jarFile.isFile()) {
    throw new FileNotFoundException("JAR file is not a file: " + jarFile);
  }
  // Get assembler class
  String entryPointClass = options.getEntryPointClassName();
  PackagedProgram program = entryPointClass == null ?
      new PackagedProgram(jarFile, classpaths, programArgs) :
      new PackagedProgram(jarFile, classpaths, entryPointClass, programArgs);
  program.setSavepointRestoreSettings(options.getSavepointRestoreSettings());
  return program;
}
origin: org.apache.flink/flink-clients_2.10

  throws FileNotFoundException, ProgramInvocationException
String[] programArgs = options.getProgramArgs();
String jarFilePath = options.getJarFilePath();
List<URL> classpaths = options.getClasspaths();
origin: com.alibaba.blink/flink-clients

String[] programArgs = options.getProgramArgs();
String jarFilePath = options.getJarFilePath();
List<URL> classpaths = options.getClasspaths();
org.apache.flink.client.cliProgramOptionsgetProgramArgs

Popular methods of ProgramOptions

  • getJarFilePath
  • getClasspaths
  • getEntryPointClassName
  • getSavepointRestoreSettings
  • extractMultipleURIOption
  • getFiles
  • getLibjars

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now