com.saucelabs.rest
Class JobFactory

java.lang.Object
  extended by com.saucelabs.rest.JobFactory

public class JobFactory
extends java.lang.Object


Constructor Summary
JobFactory()
          Uses the default credential file to connect to sauce tunnels.
JobFactory(Credential credential)
          Uses the specified credential to connect to sauce tunnels.
 
Method Summary
 Job get(java.lang.String id)
           
 Job update(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> attributes)
          Allow updates containing key/value pairs to be sent to Sauce.
 Job update(java.lang.String id, UpdateJob job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobFactory

public JobFactory(Credential credential)
Uses the specified credential to connect to sauce tunnels.


JobFactory

public JobFactory()
           throws java.io.IOException
Uses the default credential file to connect to sauce tunnels.

Throws:
java.io.IOException
Method Detail

update

public Job update(java.lang.String id,
                  UpdateJob job)
           throws java.io.IOException
Throws:
java.io.IOException

update

public Job update(java.lang.String id,
                  java.util.Map<java.lang.String,java.lang.Object> attributes)
           throws java.io.IOException
Allow updates containing key/value pairs to be sent to Sauce.

Parameters:
id - Id of the job to update
attributes - Map of attributes to update
Returns:
Job instance representing the response
Throws:
java.io.IOException - thrown if an error occurs during the REST request

get

public Job get(java.lang.String id)
        throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.