def jobs(type=:running)
      results = case type
                when :running then call(:getRunningJobs) 
                when :completed then call(:getCompletedJobs)
                when :failed then call(:getFailedJobs)
                when :killed then call(:getKilledJobs)
                else call(:getAllJobs)
                end
      results.jobs.map { |j| Job.new(self, j) }
    end
def jobs(type=:running)
      results = case type
                when :running then call(:getRunningJobs) 
                when :completed then call(:getCompletedJobs)
                when :failed then call(:getFailedJobs)
                when :killed then call(:getKilledJobs)
                else call(:getAllJobs)
                end
      results.jobs.map { |j| Job.new(self, j) }
    end
Get jobs.  Type can be :running, :completed, :killed, :failed, or :all