Class Job

Object
   |
   +--Job

class Job

Defined in job.js


Constructor Summary
Job( aObj )
            Creates a Job.
 
Method Summary
 void abort( )
           Abort execution of the running job.
 void addListener( <string> aType , <function> aListener )
           Add a listener for a particular type of callback.
 void addNamespace( <string> use , <string> aNamespace )
           Add a namespace of use to the web service.
 void addURI( <string> aType , <string> aURI )
           Add an additional URI of use to web service.
 boolean getAutoRun( )
           Getter
 int getCode( )
           Get the status code of the job.
 string getId( )
           This is not an id returned from a Web service.
 string getInterfaceURI( )
           Returns the uri of the XUL panel associated with this job
 string getJobId( )
           returns this job's JobId as returned by the web service.
 string getLastResponseText( )
           Get the last SOAP message recieved in it's raw form
 hash getListeners( )
           Get all listeners of of the job
 hash getNamespaces( )
           Get all namespaces of of the job
 void getOutput( )
           Call the getOutput operation of the Web service.
 int getQueryInterval( )
           Returns the time interval between status queries
 string getServiceName( )
           Get the name of the service this job is tied to.
 string getServiceURI( )
           Get the main service URI of the job
 string getStatusMessage( )
           Get the status message of the job.
 int getTimeCompleted( )
           Returns the millisecond representation (number of milliseconds between 1/1/1970 GMT) of this job's completion time.
 int getTimeOfLast( )
           Returns the millisecond representation (number of milliseconds between 1/1/1970 GMT) of this job's time of last operation.
 int getTimeStarted( )
           Returns the millisecond representation (number of milliseconds between 1/1/1970 GMT) of this job's start time.
 void init( aObj )
          
 boolean isActive( )
           Whether this job is currently executing a request of some sort: launch, status, getting outputs, etc.
 boolean isSecure( )
           Whether this job is secure.
 void launch( <string> body )
           Start the job If successful this will lead to an "onjoblaunched" event.
 void open( <string> uri, <boolean> autoRun, <string> type , <string> serviceName)
           Prepare this job for being run
 void query( )
           Run a one shot query for status of the job.
 Object removeAllListeners( )
           Removes all listeners
 void removeListener( <string> aType )
           Remove a listener from this job.
 void setAutoRun( <boolean> val )
           Set whether to handle querying and completion automatically or not
 void setId( <string> id )
           Sets this Job object's internal id.
 void setInterfaceURI( <string> uri )
           Sets the URI of the XUL panel associated with this job
 void setQueryInterval( aInterval )
           Sets the time interval between status queries
 void setServiceName( <string> sn )
           Set the name of the service this job is tied to.

Constructor Detail

Job

Job( aObj )

Method Detail

abort

void abort( )

addListener

void addListener( <string> aType , <function> aListener )

addNamespace

void addNamespace( <string> use , <string> aNamespace )

addURI

void addURI( <string> aType , <string> aURI )

getAutoRun

boolean getAutoRun( )

getCode

int getCode( )

getId

string getId( )

getInterfaceURI

string getInterfaceURI( )

getJobId

string getJobId( )

getLastResponseText

string getLastResponseText( )

getListeners

hash getListeners( )

getNamespaces

hash getNamespaces( )

getOutput

void getOutput( )

getQueryInterval

int getQueryInterval( )

getServiceName

string getServiceName( )

getServiceURI

string getServiceURI( )

getStatusMessage

string getStatusMessage( )

getTimeCompleted

int getTimeCompleted( )

getTimeOfLast

int getTimeOfLast( )

getTimeStarted

int getTimeStarted( )

init

void init( aObj )

isActive

boolean isActive( )

isSecure

boolean isSecure( )

launch

void launch( <string> body )

open

void open( <string> uri, <boolean> autoRun, <string> type , <string> serviceName)

query

void query( )

removeAllListeners

Object removeAllListeners( )

removeListener

void removeListener( <string> aType )

setAutoRun

void setAutoRun( <boolean> val )

setId

void setId( <string> id )

setInterfaceURI

void setInterfaceURI( <string> uri )

setQueryInterval

void setQueryInterval( aInterval )

setServiceName

void setServiceName( <string> sn )


Documentation generated by JSDoc on Tue Jan 23 13:09:00 2007