|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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( aObj )
| Method Detail |
void abort( )
void addListener( <string> aType , <function> aListener )
aType - the callback type
aListener - a function reference
void addNamespace( <string> use , <string> aNamespace )
use - the purpose of the namespace
aNamespace - the namespace
void addURI( <string> aType , <string> aURI )
aType - the purpose of the uri
aURI - the uri
boolean getAutoRun( )
int getCode( )
string getId( )
string getInterfaceURI( )
string getJobId( )
string getLastResponseText( )
hash getListeners( )
hash getNamespaces( )
void getOutput( )
int getQueryInterval( )
string getServiceName( )
string getServiceURI( )
string getStatusMessage( )
int getTimeCompleted( )
int getTimeOfLast( )
int getTimeStarted( )
void init( aObj )
boolean isActive( )
boolean isSecure( )
void launch( <string> body )
body - this job's input
void open( <string> uri, <boolean> autoRun, <string> type , <string> serviceName)
uri - the main service URI
autoRun - whether to handle querying and completion automatically or not
type - what class of service will be run. Options are "opal" and ""
serviceName - the service name
void query( )
Object removeAllListeners( )
void removeListener( <string> aType )
aType - the listener type to remove
void setAutoRun( <boolean> val )
val -
void setId( <string> id )
id -
void setInterfaceURI( <string> uri )
uri -
void setQueryInterval( aInterval )
the - time, in milliseconds
void setServiceName( <string> sn )
sn -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||