class Patriot::JobStore::JobTicket
a ticket to execute a job.
Attributes
description[RW]
attributes for completion
exec_host[RW]
attributes for offer
exec_node[RW]
attributes for offer
exec_thread[RW]
attributes for offer
execution_id[RW]
attributes for offer
exit_code[RW]
attributes for completion
job_id[RW]
default attributes
node[RW]
default attributes
update_id[RW]
default attributes
Public Class Methods
new(job_id, update_id, node=nil)
click to toggle source
@param [String] job_id
@param [Integer] update_id
@param [String] node the name of node on which the job should be executed
# File lib/patriot/job_store/job_ticket.rb, line 15 def initialize(job_id, update_id, node=nil) raise "job_id should be Symbol but #{job_id} is a #{job_id.class}" unless job_id.is_a?(String) @job_id = job_id @update_id = update_id @node = node end
Public Instance Methods
to_s()
click to toggle source
@return [String] returns string expression of this instance
# File lib/patriot/job_store/job_ticket.rb, line 23 def to_s node = @node.nil? ? "any" : @node string = "job_id: #{job_id}, update_id: #{update_id}, node: #{node}" return string end