Tabnine Logo
ProgramStarter$Arguments
Code IndexAdd Tabnine to your IDE (free)

How to use
ProgramStarter$Arguments
in
co.cask.cdap.internal.bootstrap.executor

Best Java code snippets using co.cask.cdap.internal.bootstrap.executor.ProgramStarter$Arguments (Showing top 4 results out of 315)

origin: cdapio/cdap

 @Override
 public void validate() {
  if (namespace == null || namespace.isEmpty()) {
   throw new IllegalArgumentException("Namespace must be specified");
  }
  if (application == null || application.isEmpty()) {
   throw new IllegalArgumentException("Application must be specified");
  }
  if (type == null || type.isEmpty()) {
   throw new IllegalArgumentException("Program type must be specified");
  }
  if (name == null || name.isEmpty()) {
   throw new IllegalArgumentException("Program name must be specified");
  }
  getId();
 }
}
origin: cdapio/cdap

@Test
public void testMissingFieldsThrowsException() {
 ProgramStarter.Arguments arguments = new ProgramStarter.Arguments(null, "app", "WORKFLOW", "name");
 try {
  arguments.validate();
  Assert.fail("arguments should have been invalidated.");
 } catch (IllegalArgumentException e) {
 arguments = new ProgramStarter.Arguments("ns", null, "WORKFLOW", "name");
 try {
  arguments.validate();
  Assert.fail("arguments should have been invalidated.");
 } catch (IllegalArgumentException e) {
 arguments = new ProgramStarter.Arguments("ns", "app", null, "name");
 try {
  arguments.validate();
  Assert.fail("arguments should have been invalidated.");
 } catch (IllegalArgumentException e) {
 arguments = new ProgramStarter.Arguments("ns", "app", "WORKFLOW", null);
 try {
  arguments.validate();
  Assert.fail("arguments should have been invalidated.");
 } catch (IllegalArgumentException e) {
origin: co.cask.cdap/cdap-app-fabric

 @Override
 public void validate() {
  if (namespace == null || namespace.isEmpty()) {
   throw new IllegalArgumentException("Namespace must be specified");
  }
  if (application == null || application.isEmpty()) {
   throw new IllegalArgumentException("Application must be specified");
  }
  if (type == null || type.isEmpty()) {
   throw new IllegalArgumentException("Program type must be specified");
  }
  if (name == null || name.isEmpty()) {
   throw new IllegalArgumentException("Program name must be specified");
  }
  getId();
 }
}
origin: cdapio/cdap

@Test(expected = IllegalArgumentException.class)
public void invalidProgramTypeThrowsException() {
 ProgramStarter.Arguments arguments = new ProgramStarter.Arguments("ns", "app", "PORKFLOW", "name");
 arguments.validate();
}
co.cask.cdap.internal.bootstrap.executorProgramStarter$Arguments

Javadoc

Arguments required to start a program

Most used methods

  • <init>
  • getId
  • validate

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Menu (java.awt)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Top plugins for Android Studio
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