Class: BatchQueue

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/compute_resource_model_types.rb

Overview

Batch Queue Information on SuperComputers

maxRunTime:

Maximum allowed run time in hours.

Constant Summary collapse

QUEUENAME =
1
QUEUEDESCRIPTION =
2
MAXRUNTIME =
3
MAXNODES =
4
MAXPROCESSORS =
5
MAXJOBSINQUEUE =
6
MAXMEMORY =
7
CPUPERNODE =
8
DEFAULTNODECOUNT =
9
DEFAULTCPUCOUNT =
10
DEFAULTWALLTIME =
11
QUEUESPECIFICMACROS =
12
ISDEFAULTQUEUE =
13
FIELDS =
{
  QUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'queueName'},
  QUEUEDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'queueDescription', :optional => true},
  MAXRUNTIME => {:type => ::Thrift::Types::I32, :name => 'maxRunTime', :optional => true},
  MAXNODES => {:type => ::Thrift::Types::I32, :name => 'maxNodes', :optional => true},
  MAXPROCESSORS => {:type => ::Thrift::Types::I32, :name => 'maxProcessors', :optional => true},
  MAXJOBSINQUEUE => {:type => ::Thrift::Types::I32, :name => 'maxJobsInQueue', :optional => true},
  MAXMEMORY => {:type => ::Thrift::Types::I32, :name => 'maxMemory', :optional => true},
  CPUPERNODE => {:type => ::Thrift::Types::I32, :name => 'cpuPerNode', :optional => true},
  DEFAULTNODECOUNT => {:type => ::Thrift::Types::I32, :name => 'defaultNodeCount', :optional => true},
  DEFAULTCPUCOUNT => {:type => ::Thrift::Types::I32, :name => 'defaultCPUCount', :optional => true},
  DEFAULTWALLTIME => {:type => ::Thrift::Types::I32, :name => 'defaultWalltime', :optional => true},
  QUEUESPECIFICMACROS => {:type => ::Thrift::Types::STRING, :name => 'queueSpecificMacros', :optional => true},
  ISDEFAULTQUEUE => {:type => ::Thrift::Types::BOOL, :name => 'isDefaultQueue', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



167
# File 'lib/compute_resource_model_types.rb', line 167

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


169
170
171
# File 'lib/compute_resource_model_types.rb', line 169

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field queueName is unset!') unless @queueName
end