public class JobDescriptor extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JobDescriptor.Tree
An enumeration of where a job can be defined.
|
Constructor and Description |
---|
JobDescriptor(String path,
String version)
Constructor
|
JobDescriptor(String path,
String version,
JobDescriptor.Tree tree)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
String |
getPath()
Get the path of the job
|
JobDescriptor.Tree |
getTree()
Get the tree in which this job lives
|
String |
getVersion()
Get the version label for this job
|
int |
hashCode()
Return a hash code value for the object.
|
void |
setTree(JobDescriptor.Tree tree)
Set the tree location for this job
|
String |
toString()
Return a string representation of the object.
|
public JobDescriptor(String path, String version)
path
- path of the jobversion
- version label for the jobpublic JobDescriptor(String path, String version, JobDescriptor.Tree tree)
path
- path of the jobversion
- version label for the jobtree
- whether the job lives in the repository tree or workspace treepublic String getPath()
public String getVersion()
public JobDescriptor.Tree getTree()
public void setTree(JobDescriptor.Tree tree)
tree
- public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA