com.ace.moab.api.jobs
Class SyncCountJobDependency

java.lang.Object
  extended by com.ace.moab.api.jobs.JobDependency
      extended by com.ace.moab.api.jobs.SyncCountJobDependency

public class SyncCountJobDependency
extends JobDependency

A job with this type of dependency will wait until it can start simultaneously with a pre-arranged number of dependent jobs of type syncwith. All syncwith jobs must have specified the synccount job as their master job.

Author:
seeleyn

Constructor Summary
SyncCountJobDependency(int dependentJobCount_)
          Constructor for this class
 
Method Summary
 boolean equals(java.lang.Object other)
          
 int getDependantJobCount()
          Returns the number of syncwith jobs dependent on the job with this synccount dependency.
 java.lang.String toCommand()
          Return a moab-readable string representation of the this dependency to be used when submitting jobs
 java.lang.String toString()
          
 
Methods inherited from class com.ace.moab.api.jobs.JobDependency
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyncCountJobDependency

public SyncCountJobDependency(int dependentJobCount_)
Constructor for this class

Parameters:
dependentJobCount_ - The number of syncwith jobs dependent on the job with this synccount dependency.
Method Detail

getDependantJobCount

public int getDependantJobCount()
Returns the number of syncwith jobs dependent on the job with this synccount dependency.

Returns:
The number of syncwith jobs dependent on the job with this synccount dependency.

toCommand

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

Specified by:
toCommand in class JobDependency
Returns:
moab-readable string representation of the this dependency

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object


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