- java.lang.Object
-
- com.pervasive.datarush.cal.JobSpecifier
-
- All Implemented Interfaces:
Serializable
public final class JobSpecifier extends Object implements Serializable
Rollup of all parameters needed to launch a job- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobSpecifier(ResourceSpecifier requestedResources, ClusterSpecifier cluster, ClasspathSpecifier classpath, JobInformation jobInformation, Path storageManagementPath)
Create a new job specifierJobSpecifier(ResourceSpecifier requestedResources, ClusterSpecifier cluster, ClasspathSpecifier classpath, JobInformation jobInformation, Path storageManagementPath, String schedulerQueue, List<String> extensionPaths)
Create a new job specifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathSpecifier
classpath()
Returns the classpath of the jobJobSpecifier
classpath(ClasspathSpecifier classpath)
Overrides the classpathClusterSpecifier
cluster()
Returns the cluster on which to run the jobJobSpecifier
cluster(ClusterSpecifier cluster)
Overrides the clusterList<String>
extensionPaths()
Returns the extension paths.JobSpecifier
extensionPaths(List<String> extensionPaths)
Overrides the extension pathsJobInformation
jobInformation()
Returns basic job information (id, user id, etc).JobSpecifier
jobInformation(JobInformation jobInformation)
Overrides the jobInformationResourceSpecifier
requestedResources()
Returns the resources requested for the jobString
schedulerQueue()
Returns the scheduler queue.JobSpecifier
schedulerQueue(String schedulerQueue)
Overrides the scheduler queuePath
storageManagementPath()
Returns the root scratch directory to use.JobSpecifier
storageManagementPath(Path storageManagementPath)
Overrides the storageManagementPath
-
-
-
Constructor Detail
-
JobSpecifier
public JobSpecifier(ResourceSpecifier requestedResources, ClusterSpecifier cluster, ClasspathSpecifier classpath, JobInformation jobInformation, Path storageManagementPath)
Create a new job specifier- Parameters:
requestedResources
- the requested resources for the jobcluster
- the cluster on which to run the jobclasspath
- the classpath of the jobjobInformation
- basic job information (user id, etc).storageManagementPath
- the storage managment path for the job
-
JobSpecifier
public JobSpecifier(ResourceSpecifier requestedResources, ClusterSpecifier cluster, ClasspathSpecifier classpath, JobInformation jobInformation, Path storageManagementPath, String schedulerQueue, List<String> extensionPaths)
Create a new job specifier- Parameters:
requestedResources
- the requested resources for the jobcluster
- the cluster on which to run the jobclasspath
- the classpath of the jobjobInformation
- basic job information (user id, etc).storageManagementPath
- the storage managment path for the jobschedulerQueue
- the scheduler queueextensionPaths
- list of user provided extension paths
-
-
Method Detail
-
requestedResources
public ResourceSpecifier requestedResources()
Returns the resources requested for the job- Returns:
- the requested resources
-
storageManagementPath
public Path storageManagementPath()
Returns the root scratch directory to use. For distributed, this must be a shared filesystem accessible by all node in the cluster.- Returns:
- the root scratch directory to use
-
cluster
public ClusterSpecifier cluster()
Returns the cluster on which to run the job- Returns:
- the cluster
-
classpath
public ClasspathSpecifier classpath()
Returns the classpath of the job- Returns:
- the classpath of the job
-
jobInformation
public JobInformation jobInformation()
Returns basic job information (id, user id, etc).- Returns:
- basic job information
-
schedulerQueue
public String schedulerQueue()
Returns the scheduler queue.- Returns:
- scheduler queue
-
extensionPaths
public List<String> extensionPaths()
Returns the extension paths.- Returns:
- extension paths
-
cluster
public JobSpecifier cluster(ClusterSpecifier cluster)
Overrides the cluster- Parameters:
cluster
- the new cluster- Returns:
- a new specifier
-
classpath
public JobSpecifier classpath(ClasspathSpecifier classpath)
Overrides the classpath- Parameters:
classpath
- the new classpath- Returns:
- a new specifier
-
jobInformation
public JobSpecifier jobInformation(JobInformation jobInformation)
Overrides the jobInformation- Parameters:
jobInformation
- the new jobInformation- Returns:
- a new specifier
-
storageManagementPath
public JobSpecifier storageManagementPath(Path storageManagementPath)
Overrides the storageManagementPath- Parameters:
storageManagementPath
- the new storageManagementPath- Returns:
- a new specifier
-
schedulerQueue
public JobSpecifier schedulerQueue(String schedulerQueue)
Overrides the scheduler queue- Parameters:
schedulerQueue
- the new scheduler queue- Returns:
- a new specifier
-
extensionPaths
public JobSpecifier extensionPaths(List<String> extensionPaths)
Overrides the extension paths- Parameters:
extensionPaths
- the new extension paths- Returns:
- a new specifier
-
-