org.gridbus.broker.farming.common.queues
Class JobQueue

java.lang.Object
  extended by org.gridbus.broker.farming.common.queues.JobQueue
All Implemented Interfaces:
java.io.Serializable

public class JobQueue
extends java.lang.Object
implements java.io.Serializable

Author:
hag This class provides information about a job queue. It does not contain references to jobs.
See Also:
Serialized Form

Constructor Summary
JobQueue(java.lang.String name)
           
JobQueue(java.lang.String name, float cost, int priority, int limit)
           
 
Method Summary
 void freeSlot()
           
 float getCost()
           
 java.lang.String getDefaultWalltime()
           
 int getLimit()
           
 double getLoadAvg()
           
 java.lang.String getMaxWalltime()
           
 java.lang.String getName()
           
 int getPriority()
           
 boolean isAvailable()
           
 void setAvailable(boolean available)
           
 void setCost(float cost)
           
 void setDefaultWalltime(java.lang.String defaultWalltime)
           
 void setLimit(int limit)
           
 void setLoadAvg(double avg)
           
 void setMaxWalltime(java.lang.String maxWalltime)
           
 void setName(java.lang.String name)
           
 void setPriority(int priority)
           
 int slotsRemaining()
           
 void useSlot()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobQueue

public JobQueue(java.lang.String name)
Parameters:
name -

JobQueue

public JobQueue(java.lang.String name,
                float cost,
                int priority,
                int limit)
Parameters:
name -
cost -
priority -
limit -
Method Detail

setName

public void setName(java.lang.String name)
Parameters:
name -

getName

public java.lang.String getName()
Returns:

isAvailable

public boolean isAvailable()
Returns:

setAvailable

public void setAvailable(boolean available)
Parameters:
available -

setMaxWalltime

public void setMaxWalltime(java.lang.String maxWalltime)
Parameters:
maxWalltime -

getMaxWalltime

public java.lang.String getMaxWalltime()
Returns:

setDefaultWalltime

public void setDefaultWalltime(java.lang.String defaultWalltime)
Parameters:
defaultWalltime -

getDefaultWalltime

public java.lang.String getDefaultWalltime()
Returns:

getLoadAvg

public double getLoadAvg()
Returns:

setLoadAvg

public void setLoadAvg(double avg)
Parameters:
avg -

getCost

public float getCost()
Returns:
Returns the cost.

setCost

public void setCost(float cost)
Parameters:
cost - The cost to set.

getPriority

public int getPriority()
Returns:
Returns the priority.

setPriority

public void setPriority(int priority)
Parameters:
priority - The priority to set.

getLimit

public int getLimit()
Returns:

setLimit

public void setLimit(int limit)
Parameters:
limit -

useSlot

public void useSlot()

freeSlot

public void freeSlot()

slotsRemaining

public int slotsRemaining()
Returns: