|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.cask.tigon.app.program.DefaultProgram
public final class DefaultProgram
Default implementation of program.
| Constructor Summary | |
|---|---|
DefaultProgram(org.apache.twill.filesystem.Location programJarLocation,
ClassLoader classLoader)
|
|
| 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. |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProgram(org.apache.twill.filesystem.Location programJarLocation,
ClassLoader classLoader)
throws IOException
IOException| Method Detail |
|---|
public String getMainClassName()
Program
getMainClassName in interface Program
public <T> Class<T> getMainClass()
throws ClassNotFoundException
Program
getMainClass in interface ProgramClassNotFoundException - If fails to load the class.public ProgramType getType()
Program
getType in interface Programpublic String getId()
Program
getId in interface Programpublic String getName()
Program
getName in interface Programpublic co.cask.tigon.api.flow.FlowSpecification getSpecification()
Program
getSpecification in interface Programpublic org.apache.twill.filesystem.Location getJarLocation()
Program
getJarLocation in interface Programpublic ClassLoader getClassLoader()
Program
getClassLoader in interface Program
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||