Class: LOCALSubmission

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

Overview

Locally Fork Jobs as OS processes

alternativeSSHHostName:

If the login to ssh is different than the hostname itself, specify it here

sshPort:

If a non-default port needs to used, specify it.

Constant Summary collapse

JOBSUBMISSIONINTERFACEID =
1
RESOURCEJOBMANAGER =
2
SECURITYPROTOCOL =
3
FIELDS =
{
  JOBSUBMISSIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'jobSubmissionInterfaceId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  RESOURCEJOBMANAGER => {:type => ::Thrift::Types::STRUCT, :name => 'resourceJobManager', :class => ::ResourceJobManager},
  SECURITYPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'securityProtocol', :enum_class => ::SecurityProtocol}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


197
198
199
200
201
202
203
204
# File 'lib/compute_resource_model_types.rb', line 197

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