com.ace.moab.api.jobs
Class JobDependency

java.lang.Object
  extended by com.ace.moab.api.jobs.JobDependency
Direct Known Subclasses:
StandardJobDependency, SyncCountJobDependency, SyncWithJobDependency

public abstract class JobDependency
extends java.lang.Object

This object represents a moab Job Dependency. The depend type is one of the common TORQUE-style dependency types, such as 'afterok'. See the DependencyType enum for a complete list of dependency types and what they mean.

Author:
Scott Brown, Nate Seeley

Constructor Summary
protected JobDependency(DependencyType type)
          Create a dependency of the given type.
 
Method Summary
 DependencyType getType()
          Get the Dependency type of this object
abstract  java.lang.String toCommand()
          Return a moab-readable string representation of the this dependency to be used when submitting jobs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobDependency

protected JobDependency(DependencyType type)
Create a dependency of the given type.

Parameters:
type - The type of dependency
job - an ID for a job that is the target for this dependency
Method Detail

getType

public DependencyType getType()
Get the Dependency type of this object

Returns:
the Dependency type of this object

toCommand

public abstract java.lang.String toCommand()
Return a moab-readable string representation of the this dependency to be used when submitting jobs

Returns:
moab-readable string representation of the this dependency


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.