compbio.engine.cluster.dundee
Enum _Queue

java.lang.Object
  extended by java.lang.Enum<_Queue>
      extended by compbio.engine.cluster.dundee._Queue
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<_Queue>

public enum _Queue
extends java.lang.Enum<_Queue>


Enum Constant Summary
BIGINT
           
BIGMEM
           
BIT64
           
DEVEL
          Order of the constraint reflect the priority of the queue
PRIBIT64
           
 
Method Summary
 int getMemoryLimit()
          return max memory limit in Mb
static _Queue getQueue(int maxMemory, int timeLimitInHours)
           
 _Queue getQueue(java.lang.String queueName)
           
static _Queue getQueueByMemoryRequirements(int maxMemory)
           
 int getTimeLimit()
          0 - unlimited
 boolean hasTimeLimit()
           
 java.lang.String toString()
           
static _Queue valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static _Queue[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEVEL

public static final _Queue DEVEL
Order of the constraint reflect the priority of the queue


PRIBIT64

public static final _Queue PRIBIT64

BIT64

public static final _Queue BIT64

BIGINT

public static final _Queue BIGINT

BIGMEM

public static final _Queue BIGMEM
Method Detail

values

public static _Queue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (_Queue c : _Queue.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static _Queue valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<_Queue>

getTimeLimit

public int getTimeLimit()
0 - unlimited

Returns:
max runtime in hours

hasTimeLimit

public boolean hasTimeLimit()
Returns:
true if the queue has time limit, false overwise

getMemoryLimit

public int getMemoryLimit()
return max memory limit in Mb

Returns:

getQueueByMemoryRequirements

public static _Queue getQueueByMemoryRequirements(int maxMemory)

getQueue

public static _Queue getQueue(int maxMemory,
                              int timeLimitInHours)

getQueue

public _Queue getQueue(java.lang.String queueName)