co.cask.tigon.app.program
Interface Program

All Known Implementing Classes:
DefaultProgram

public interface Program

Abstraction of a executable program.


Method Summary
 ClassLoader getClassLoader()
          Returns the class loader for loading classes inside this program.
 String getId()
          Returns the program ID.
 org.apache.twill.filesystem.Location getJarLocation()
          Returns the location of the jar file of this program.
<T> Class<T>
getMainClass()
          Loads and returns the main class of the program
 String getMainClassName()
          Returns the name of the main class in the program.
 String getName()
          Returns name of the program.
 co.cask.tigon.api.flow.FlowSpecification getSpecification()
          Returns the flow specification.
 ProgramType getType()
          Returns the program type.
 

Method Detail

getMainClassName

String getMainClassName()
Returns the name of the main class in the program.


getMainClass

<T> Class<T> getMainClass()
                      throws ClassNotFoundException
Loads and returns the main class of the program

Throws:
ClassNotFoundException - If fails to load the class.

getType

ProgramType getType()
Returns the program type.


getId

String getId()
Returns the program ID.


getName

String getName()
Returns name of the program.


getSpecification

co.cask.tigon.api.flow.FlowSpecification getSpecification()
Returns the flow specification.


getJarLocation

org.apache.twill.filesystem.Location getJarLocation()
Returns the location of the jar file of this program.


getClassLoader

ClassLoader getClassLoader()
Returns the class loader for loading classes inside this program.



Copyright © 2014 Cask Data, Inc. Licensed under the Apache License, Version 2.0.