Package org.apache.flink.api.common

Examples of org.apache.flink.api.common.ProgramDescription


   *         may be a missing / wrong class or manifest files.
   */
  public String getDescription() throws ProgramInvocationException {
    if (ProgramDescription.class.isAssignableFrom(this.mainClass)) {
     
      ProgramDescription descr;
      if (this.program != null) {
        descr = (ProgramDescription) this.program;
      } else {
        try {
          descr =  InstantiationUtil.instantiate(
            this.mainClass.asSubclass(ProgramDescription.class), ProgramDescription.class);
        } catch (Throwable t) {
          return null;
        }
      }
     
      try {
        return descr.getDescription();
      }
      catch (Throwable t) {
        throw new ProgramInvocationException("Error while getting the program description" +
            (t.getMessage() == null ? "." : ": " + t.getMessage()), t);
      }
View Full Code Here

TOP

Related Classes of org.apache.flink.api.common.ProgramDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.