Class: ResourceJobManager

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

Overview

Resource Job Manager Information

resourceJobManagerType:

A typical HPC cluster has a single Job Manager to manage the resources.

pushMonitoringEndpoint:

If the job manager pushes out state changes to a database or bus, specify the service endpoint.
 Ex: Moab Web Service, Moab MongoDB URL, AMQP (GLUE2) Broker

jobManagerBinPath:

Path to the Job Manager Installation Binary directory.

jobManagerCommands:

An enumeration of commonly used manager commands.

Constant Summary collapse

RESOURCEJOBMANAGERID =
1
RESOURCEJOBMANAGERTYPE =
2
PUSHMONITORINGENDPOINT =
3
JOBMANAGERBINPATH =
4
JOBMANAGERCOMMANDS =
5
PARALLELISMPREFIX =
6
FIELDS =
{
  RESOURCEJOBMANAGERID => {:type => ::Thrift::Types::STRING, :name => 'resourceJobManagerId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  RESOURCEJOBMANAGERTYPE => {:type => ::Thrift::Types::I32, :name => 'resourceJobManagerType', :enum_class => ::ResourceJobManagerType},
  PUSHMONITORINGENDPOINT => {:type => ::Thrift::Types::STRING, :name => 'pushMonitoringEndpoint', :optional => true},
  JOBMANAGERBINPATH => {:type => ::Thrift::Types::STRING, :name => 'jobManagerBinPath', :optional => true},
  JOBMANAGERCOMMANDS => {:type => ::Thrift::Types::MAP, :name => 'jobManagerCommands', :key => {:type => ::Thrift::Types::I32, :enum_class => ::JobManagerCommand}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
  PARALLELISMPREFIX => {:type => ::Thrift::Types::MAP, :name => 'parallelismPrefix', :key => {:type => ::Thrift::Types::I32, :enum_class => ::ApplicationParallelismType}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


120
121
122
123
124
125
126
# File 'lib/compute_resource_model_types.rb', line 120

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourceJobManagerId is unset!') unless @resourceJobManagerId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourceJobManagerType is unset!') unless @resourceJobManagerType
  unless @resourceJobManagerType.nil? || ::ResourceJobManagerType::VALID_VALUES.include?(@resourceJobManagerType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field resourceJobManagerType!')
  end
end