Class: WorkflowApplication

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

Constant Summary collapse

ID =
1
PROCESSID =
2
APPLICATIONINTERFACEID =
3
COMPUTERESOURCEID =
4
QUEUENAME =
5
NODECOUNT =
6
CORECOUNT =
7
WALLTIMELIMIT =
8
PHYSICALMEMORY =
9
STATUSES =
10
ERRORS =
11
CREATEDAT =
12
UPDATEDAT =
13
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId', :optional => true},
  APPLICATIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'applicationInterfaceId', :optional => true},
  COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId', :optional => true},
  QUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'queueName', :optional => true},
  NODECOUNT => {:type => ::Thrift::Types::I32, :name => 'nodeCount', :optional => true},
  CORECOUNT => {:type => ::Thrift::Types::I32, :name => 'coreCount', :optional => true},
  WALLTIMELIMIT => {:type => ::Thrift::Types::I32, :name => 'wallTimeLimit', :optional => true},
  PHYSICALMEMORY => {:type => ::Thrift::Types::I32, :name => 'physicalMemory', :optional => true},
  STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ApplicationStatus}, :optional => true},
  ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
  CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
  UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



129
# File 'lib/airavata_workflow_model_types.rb', line 129

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


131
132
133
# File 'lib/airavata_workflow_model_types.rb', line 131

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