com.sas.hls.job
Class JobDescriptor

java.lang.Object
  extended by com.sas.hls.job.JobDescriptor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Job

public class JobDescriptor
extends Object
implements Serializable

A light-weight client representation of a job.

See Also:
Serialized Form

Nested Class Summary
static class JobDescriptor.Tree
          An enumeration of where a job can be defined.
 
Constructor Summary
JobDescriptor(String path, String version)
          Constructor
JobDescriptor(String path, String version, JobDescriptor.Tree tree)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobDescriptor

public JobDescriptor(String path,
                     String version)
Constructor

Parameters:
path - path of the job
version - version label for the job

JobDescriptor

public JobDescriptor(String path,
                     String version,
                     JobDescriptor.Tree tree)
Constructor

Parameters:
path - path of the job
version - version label for the job
tree - whether the job lives in the repository tree or workspace tree
Method Detail

getPath

public String getPath()
Get the path of the job

Returns:
the path

getVersion

public String getVersion()
Get the version label for this job

Returns:
the version

getTree

public JobDescriptor.Tree getTree()
Get the tree in which this job lives

Returns:
the tree

setTree

public void setTree(JobDescriptor.Tree tree)
Set the tree location for this job

Parameters:
tree -

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA