java.lang.Object
com.pervasive.datarush.cal.JobSpecifier
- All Implemented Interfaces:
Serializable
Rollup of all parameters needed to launch a job
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJobSpecifier(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
Modifier and TypeMethodDescriptionReturns the classpath of the jobclasspath(ClasspathSpecifier classpath) Overrides the classpathcluster()Returns the cluster on which to run the jobcluster(ClusterSpecifier cluster) Overrides the clusterReturns the extension paths.extensionPaths(List<String> extensionPaths) Overrides the extension pathsReturns basic job information (id, user id, etc).jobInformation(JobInformation jobInformation) Overrides the jobInformationReturns the resources requested for the jobReturns the scheduler queue.schedulerQueue(String schedulerQueue) Overrides the scheduler queueReturns the root scratch directory to use.storageManagementPath(Path storageManagementPath) Overrides the storageManagementPath
-
Constructor Details
-
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 Details
-
requestedResources
Returns the resources requested for the job- Returns:
- the requested resources
-
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
Returns the cluster on which to run the job- Returns:
- the cluster
-
classpath
Returns the classpath of the job- Returns:
- the classpath of the job
-
jobInformation
Returns basic job information (id, user id, etc).- Returns:
- basic job information
-
schedulerQueue
Returns the scheduler queue.- Returns:
- scheduler queue
-
extensionPaths
Returns the extension paths.- Returns:
- extension paths
-
cluster
Overrides the cluster- Parameters:
cluster- the new cluster- Returns:
- a new specifier
-
classpath
Overrides the classpath- Parameters:
classpath- the new classpath- Returns:
- a new specifier
-
jobInformation
Overrides the jobInformation- Parameters:
jobInformation- the new jobInformation- Returns:
- a new specifier
-
storageManagementPath
Overrides the storageManagementPath- Parameters:
storageManagementPath- the new storageManagementPath- Returns:
- a new specifier
-
schedulerQueue
Overrides the scheduler queue- Parameters:
schedulerQueue- the new scheduler queue- Returns:
- a new specifier
-
extensionPaths
Overrides the extension paths- Parameters:
extensionPaths- the new extension paths- Returns:
- a new specifier
-