Class: JobModel
- Inherits:
-
Object
- Object
- JobModel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/job_model_types.rb
Constant Summary collapse
- JOBID =
1
- TASKID =
2
- PROCESSID =
3
- JOBDESCRIPTION =
4
- CREATIONTIME =
5
- JOBSTATUSES =
6
- COMPUTERESOURCECONSUMED =
7
- JOBNAME =
8
- WORKINGDIR =
9
- STDOUT =
10
- STDERR =
11
- EXITCODE =
12
- FIELDS =
{ JOBID => {:type => ::Thrift::Types::STRING, :name => 'jobId'}, TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'}, PROCESSID => {:type => ::Thrift::Types::STRING, :name => 'processId'}, JOBDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'jobDescription'}, CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true}, JOBSTATUSES => {:type => ::Thrift::Types::LIST, :name => 'jobStatuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::JobStatus}, :optional => true}, COMPUTERESOURCECONSUMED => {:type => ::Thrift::Types::STRING, :name => 'computeResourceConsumed', :optional => true}, JOBNAME => {:type => ::Thrift::Types::STRING, :name => 'jobName', :optional => true}, WORKINGDIR => {:type => ::Thrift::Types::STRING, :name => 'workingDir', :optional => true}, STDOUT => {:type => ::Thrift::Types::STRING, :name => 'stdOut', :optional => true}, STDERR => {:type => ::Thrift::Types::STRING, :name => 'stdErr', :optional => true}, EXITCODE => {:type => ::Thrift::Types::I32, :name => 'exitCode', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
41 |
# File 'lib/job_model_types.rb', line 41 def struct_fields; FIELDS; end |
#validate ⇒ Object
43 44 45 46 47 48 |
# File 'lib/job_model_types.rb', line 43 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobId is unset!') unless @jobId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field taskId is unset!') unless @taskId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field processId is unset!') unless @processId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobDescription is unset!') unless @jobDescription end |