Package com.dnanexus
Class RunSpecification
- java.lang.Object
-
- com.dnanexus.RunSpecification
-
public class RunSpecification extends Object
A run specification for an applet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunSpecification.BuilderBuilder class for creating RunSpecifications.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Returns the entry point code for the applet.StringgetDistribution()Returns the distribution for the applet.StringgetInterpreter()Returns the interpreter for the applet.StringgetRelease()Returns the release for the applet.static RunSpecification.BuildernewRunSpec(String interpreter, String code, String distribution, String release)Returns a builder initialized to create a run specification with the given interpreter, entry point code, distribution and release.
-
-
-
Method Detail
-
newRunSpec
public static RunSpecification.Builder newRunSpec(String interpreter, String code, String distribution, String release)
Returns a builder initialized to create a run specification with the given interpreter, entry point code, distribution and release.- Parameters:
interpreter- interpreter name, e.g. "bash" or "python2.7"code- entry point codedistribution- OS distribution, e.g. "Ubuntu"release- OS release, e.g. "14.04"- Returns:
- Builder object
-
getCode
public String getCode()
Returns the entry point code for the applet.- Returns:
- entry point code (in whatever language is specified by the interpreter)
-
getInterpreter
public String getInterpreter()
Returns the interpreter for the applet.- Returns:
- the interpreter
-
getDistribution
public String getDistribution()
Returns the distribution for the applet.- Returns:
- the distribution
-
getRelease
public String getRelease()
Returns the release for the applet.- Returns:
- the release
-
-