|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.bnl.star.offline.scheduler.Queue
public class Queue
Description of a batch system queue.
Field Summary | |
---|---|
double |
accumulatedResponseTime
|
double |
baseResponseTime
|
int |
Ncpus
|
Constructor Summary | |
---|---|
Queue()
Creates a new instance of Queue |
Method Summary | |
---|---|
void |
addAccessMethod(AccessMethod accessMethod)
Used by the framwork to configure the queue |
void |
addQueueDiscriptors(QueueDiscriptorBase queueDiscriptor)
Used to add a new QueueDiscriptor to relate the queue to a dispatcher. |
boolean |
doesJobFit(Job job,
Request request)
Test if this queue meets the hard unchangable limits (jobTimeLimit and memlimit) of the queue |
java.util.List |
getAccessMethods()
Return the list of all access methods under which this is queue is listed in the config |
java.lang.String |
getCluster()
Returns the cluster name of the cluster the queue is on |
java.lang.String |
getID()
Becuase not all queues have names an ID is used, in case data about the queue must be printed. |
java.lang.String |
getImplementation()
Is it a "local" queue, "grid" queue, or another type of queue |
java.lang.String |
getLocalGateway()
|
int |
getMaxMemory()
The max memory a job may have in order for it to be assined to this queue. |
java.lang.String |
getMessages()
Returns information about why jobs do / don't fit after calling the doesJobFit() |
java.lang.String |
getName()
Returns the name of the Queue |
java.util.List |
getQueueDiscriptors()
|
RDLApplicationResolver |
getRDLApplicationResolver()
|
java.lang.String |
getRejectIfTargetHostStartsWith()
|
java.lang.String |
getRemoteGateway()
|
int |
getSearchOrderPriority()
The Search Order Priority number of the queue |
java.lang.String |
getSite()
|
int |
getTimeLimit()
The time limit(in minutes) a job can stay in the queue before it gets killed or before it needs to find an other queue. |
java.lang.String |
getType()
|
boolean |
IsOptimizedAsLocalQueue()
Returns true is this is a local queue |
void |
setAccessMethods(java.util.List accessMethods)
Resets the accessMethods list for this queue. |
void |
setBatchSystem(BatchSystem batchSystem)
Recovers the dispatcher to be used by this queue from the config |
void |
setCluster(java.lang.String Cluster)
Sets a name used by the, Cluster Dispatcher Chooser to send the job to the right queue This value should be set in the config file |
void |
setID(java.lang.String QueueID)
Becuase not all queues have names an ID is used. |
void |
setImplementation(java.lang.String Implementation)
This string is "local" by default is can also be "grid" or other |
void |
setLocalGateway(java.lang.String localGateway)
|
void |
setMaxMemory(int maxMemory)
This is the max memeory (ram) in MB a job will use before it is killed. |
void |
setName(java.lang.String QueueName)
Sets the name of the queue, used by LSF and other dispatchers |
void |
setOptimizeAsLocalQueue()
|
void |
setQueueDiscriptors()
|
void |
setRDLApplicationResolver(RDLApplicationResolver RDLApp)
|
void |
setRejectIfTargetHostStartsWith(java.lang.String RejectIfTargetHostStartsWith)
|
void |
setRemoteGateway(java.lang.String remoteGateway)
|
void |
setSearchOrderPriority(int searchOrderPriority)
|
void |
setSite(java.lang.String Site)
|
void |
setTimeLimit(int TimeLimit)
Sets the time limit(in minutes) a job can stay in the queue before it gets killed. |
void |
setType(java.lang.String Type)
|
boolean |
willJobsFit(Request request)
Returns true if some jobs this request may fit inside the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double baseResponseTime
public int Ncpus
public double accumulatedResponseTime
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public java.util.List getAccessMethods()
public void setAccessMethods(java.util.List accessMethods)
public void addAccessMethod(AccessMethod accessMethod)
public void addQueueDiscriptors(QueueDiscriptorBase queueDiscriptor)
public java.util.List getQueueDiscriptors()
public void setQueueDiscriptors()
public void setRDLApplicationResolver(RDLApplicationResolver RDLApp)
public RDLApplicationResolver getRDLApplicationResolver()
public java.lang.String getRejectIfTargetHostStartsWith()
public void setRejectIfTargetHostStartsWith(java.lang.String RejectIfTargetHostStartsWith)
public java.lang.String getImplementation()
public void setImplementation(java.lang.String Implementation)
public void setOptimizeAsLocalQueue()
public boolean IsOptimizedAsLocalQueue()
public java.lang.String getMessages()
public void setSite(java.lang.String Site)
public java.lang.String getSite()
public void setCluster(java.lang.String Cluster)
Cluster
- associatedDispatcher The name in the CompositeDispatchers tablepublic java.lang.String getCluster()
public void setType(java.lang.String Type)
public java.lang.String getType()
public void setID(java.lang.String QueueID)
public java.lang.String getID()
public void setName(java.lang.String QueueName)
public java.lang.String getName()
public void setBatchSystem(BatchSystem batchSystem)
public void setTimeLimit(int TimeLimit)
TimeLimit
- Time in minutespublic int getTimeLimit()
public void setMaxMemory(int maxMemory)
public int getMaxMemory()
public void setSearchOrderPriority(int searchOrderPriority)
public int getSearchOrderPriority()
public boolean doesJobFit(Job job, Request request)
public boolean willJobsFit(Request request)
public java.lang.String getRemoteGateway()
public void setRemoteGateway(java.lang.String remoteGateway)
public java.lang.String getLocalGateway()
public void setLocalGateway(java.lang.String localGateway)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |