com.ace.moab.api.jobs
Class JobsSummary

java.lang.Object
  extended by com.ace.moab.api.jobs.JobsSummary

public class JobsSummary
extends java.lang.Object

This class represents summary information for the jobs running on the workload manager. It includes things like the number of active jobs, eligible jobs, and blocked jobs.

It can be used to represent total jobs in the system or jobs for a particular user.

Author:
seeleyn

Constructor Summary
JobsSummary()
           
 
Method Summary
 int getActiveJobs()
          Returns the number of active jobs running.
 int getBlockedJobs()
          Returns the number of jobs blocked from running.
 int getEligibleJobs()
          The number of eligible jobs that are waiting to run.
 int getTotalJobs()
          Returns the total number of jobs reported in the summary.
 void setActiveJobs(int activeJobs)
          Sets the number of active jobs running.
 void setBlockedJobs(int blockedJobs)
          Sets the number of jobs blocked from running.
 void setEligibleJobs(int eligibleJobs)
          Sets the number of eligible jobs that are waiting to run.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobsSummary

public JobsSummary()
Method Detail

getActiveJobs

public int getActiveJobs()
Returns the number of active jobs running.

Returns:
the number of active jobs running.

getBlockedJobs

public int getBlockedJobs()
Returns the number of jobs blocked from running.

Returns:
the number of jobs blocked from running.

getEligibleJobs

public int getEligibleJobs()
The number of eligible jobs that are waiting to run.

Returns:
the number of eligible jobs that are waiting to run.

getTotalJobs

public int getTotalJobs()
Returns the total number of jobs reported in the summary.

Returns:
the total number of jobs reported in the summary.

setActiveJobs

public void setActiveJobs(int activeJobs)
Sets the number of active jobs running.

Parameters:
activeJobs - the number of active jobs running.

setBlockedJobs

public void setBlockedJobs(int blockedJobs)
Sets the number of jobs blocked from running.

Parameters:
blockedJobs - the number of jobs blocked from running.

setEligibleJobs

public void setEligibleJobs(int eligibleJobs)
Sets the number of eligible jobs that are waiting to run.

Parameters:
eligibleJobs - the number of eligible jobs that are waiting to run.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


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