def setup_job_queue_multi(jobArray)
retVal = false
jobStr = ""
method = "SetupJobQueue"
if jobArray.nil?
puts "Input job array is nil...exiting"
else
inputFile = "/tmp/#{method}.xml"
File.open("#{inputFile}", "w+") do |ff|
ff.write %Q[<p:#{method}_INPUT xmlns:p="#{URI_NS}/#{JOB_SVC_CLASS}">]
jobArray.each do |jobID|
ff.write %Q[<p:JobArray>#{jobID}</p:JobArray>]
end
ff.write %Q[<p:StartTimeInterval>TIME_NOW</p:StartTimeInterval>]
ff.write %Q[</p:#{method}_INPUT>]
end
cmd = "#{INVOKE_CMD} -a #{method}"
svcUri = find_instance_uri(JOB_SVC_CLASS)
output = self.command(cmd, svcUri, "-J #{inputFile}")
puts output
returnVal = self.current_value(output,method)
if returnVal.to_i == RETURN_CFG_OK
puts "Successfully set up job queue"
retVal = true
end
end
retVal
end