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

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

Best Java code snippets using org.apache.flink.client.cli.ProgramOptions.getEntryPointClassName (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

String entryPointClass = options.getEntryPointClassName();
origin: com.alibaba.blink/flink-clients

String entryPointClass = options.getEntryPointClassName();
org.apache.flink.client.cliProgramOptionsgetEntryPointClassName

Popular methods of ProgramOptions

  • getJarFilePath
  • getClasspaths
  • getProgramArgs
  • getSavepointRestoreSettings
  • extractMultipleURIOption
  • getFiles
  • getLibjars

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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