input
stringlengths
10
828
output
stringlengths
5
107
public element to xml return new element service provider todo
construct an xml representation of this object
public list get control links return m control links
returns a list of control link objects
public list get data links return m data links
returns a list of data link objects
public string get name return m flow model get name
returns the name attribute value of the embeded flow model object
public element to xml return new element flow model todo
construct an xml representation of this object
public string get service provider type return m flow model get service provider type
returns the service provider type attribute value of the embeded flow model object
public list get service providers return m flow model get service providers
returns a list of service provider objects of the embeded flow model object
public list get activities return m flow model get activities
returns a list of activity objects of the embeded flow model object
public list get control links return m flow model get control links
returns a list of control link objects of the embeded flow model object
public string get uddiquery return m uddi query
get the child text of this element
public element to xml return new element map todo
construct an xml representation of this object
public list get data links return m flow model get data links
returns a list of data link objects of the embeded flow model object
public activity get activity by name string activity name throws workflow spec parse exception activity target null iterator itor m flow model get activities iterator while itor has next activity a activity itor next string name a get name if name equals activity name target a break return target
convenience method for getting an activity object by the value of its attribute
public service provider get service provider by name string service provider name throws workflow spec parse exception service provider target null iterator itor m flow model get service providers iterator while itor has next service provider s service provider itor next string name s get name if name equals service pr...
convenience method for getting a service provider object by its name attribute value
public int get selection policy return m select policy
uddi type locators have a selection policy
public element to xml return new element locator todo
construct an xml representation of this object
private soapport get soap port string port type throws invocation exception list port list m reader soapports invocation get port type if port list size 0 there aren t any soap ports for our port type throw new invocation exception a suitable soap port for invoking the invocation get name wasn t found in the wsdl at m ...
fetches the wsdl soapport object that contains invocation information
public list soapports list soap ports new array list iterator i m port list iterator while i has next port p port i next if p instanceof soapport soap ports add soapport p return soap ports
retrieve a list of port objects with soap bindings
public list soapports string port type list target ports new array list list soap ports soapports iterator i soap ports iterator while i has next soapport p soapport i next binding b p get binding port type p type b get port type if p type get qname get local part equals port type target ports add p return target ports
retrieve a list of port objects that have soap bindings
public vector ordered message part names string message name javax wsdl message message m definition get message new qname m target namespace message name if message null return null list ordered parts message get ordered parts null vector v new vector iterator i ordered parts iterator while i has next part p part i ne...
returns list of message part names for a particlar message
public input get service input return input
retrieves the input object for this service invocation
public int get selection policy return selection policy
retrieve the selection policy for this uddi lookup task
public url get selected service wsdlurl return selection wsdlurl
retrieves the selected service wsdl location
private soapoperation get soap operation soapport port throws invocation exception string operation name invocation get operation soapoperation operation soapoperation port get binding get operation by name operation name if operation null this can t happen if the wsdl is valid throw new invocation exception binding op...
fetches the wsdl soapoperation object that contains invocation
public void set service output output output this output output
set the output object for this service invocation
public void set selection service wsdl string service wsdl throws java net malformed urlexception selection wsdlurl new url service wsdl
sets the selected service wsdl location
protected void set cancel tasks boolean is cancel tasks this is cancel tasks is cancel tasks
calling this method with an argument of code true code prevents
public boolean service selected if selection wsdlurl null return false else return true
checks whether a service has been selected yet
public output get service output return output
retrieves the output object for this service invocation
public service selection criteria get service selection criteria return null
retrieves the selection criteria associated with this task
public void clean up concrete task logger null
forces class to clean itself up a bit
public void initialise log should check prov logger not null if prov logger null prov logger init prov logger set start time new date prov logger set workflow status flow states running else logger error could not initialise provenance correctly
initialise anything needed for provenance logging
public url get service wsdlurl return invocation get selected service wsdlurl
retrieves the wsdl url for the chosen service
public void set selection service wsdlurl string service wsdl throws java net malformed urlexception selection wsdlurl new url service wsdl
sets the selected service wsdl location
public string get activity name return invocation get name
retrieves the activity name that this service will fulfill
protected string resolve namespace uri element element string prefix string uri null node node element do element el element node named node map atts el get attributes for int i 0 i atts get length i attr att attr atts item i string name att get name if name equals xmlns prefix return att get value node el get parent n...
searches for a namespace declaration for a particular
public void clean up concrete task selection wsdlurl null service points null user id null
forces class to clean itself up a bit
public void set provenance logger provenance logger prov logger this prov logger prov logger
sets the provenance logger used for this mygrid task
public string get request message name throws invocation exception if operation type operation type notification throw new invocation exception incorrect operation type for invocation invocation get name else return invocation get request message name
retrieves the wsdl request message name if one applies otherwise throws invocation exception
public provenance logger get provenance logger return prov logger
gets the provenance logger used for this mygrid task
public string get response message name throws invocation exception if operation type operation type one way throw new invocation exception incorrect operation type for invocation invocation get name else return invocation get response message name
retrieves the wsdl response message name if one applies otherwise throws invocation exception
public void clean up concrete task part null
forces class to clean itself up a bit
protected void set pause tasks boolean is pause tasks this is pause tasks is pause tasks
calling this method with an argument of code true code prevents
protected output execute throws invocation exception at the moment only request response is supported try prepare for call output messenger execute request response process after call catch invocation exception ex ex fill in stack trace throw ex return output
makes the actual invocation
public void set part part part this part part
sets the part that encapsulates the output data that this task generates
public output execute operation throws invocation exception try output execute catch invocation exception ex ex fill in stack trace throw ex return output
makes the actual invocation
public void clean up concrete task keys null values null
forces class to clean itself up a bit
public activity get wsflactivity return wsfl activity
retrieve the wsfl activity object for this task
public void clean up concrete task concept id null output null user id null logger null
forces class to clean itself up a bit
public void pause task by id string task id note used only for irun tasks for iterator i iruntasks iterator i has next task task task i next if task get task id task id task get state task state irun task pause break
pauses a specific task
public void set selection source service selection source source selection source source
sets the source for the wsdl service selected for use by this task
public void finalise log throws invocation exception should check prov logger not null if prov logger null prov logger set workflow status workflow enactment complete prov logger set end time new date prov logger send log completed user id prov logger send output concept id output else logger error could not log proven...
finalise dealings with the provenance logger
public service selection source get selection source return selection source
gets the source for the wsdl service selected for use by this task
public void clean up concrete task wsfl activity null selection source null request message name null response message name null invocation log null
forces class to clean itself up a bit
protected void handle resume run event run event throw new unsupported operation exception handle resume is not supported by interruptible task
must be implemented by the classes of interruptible tasks
public string get query string return uddi query msg
retrieve the soap uddi query string to post to the uddi registry
public void dispatch task task this task task start
dispatches the passed task according to the business rules for my grid
public void clean up concrete task uddi query msg null
forces class to clean itself up a bit
public string get part identifier return part name
retrieve the part identifier for this part
public void clean up concrete task activity name null message name null part name null part null
forces class to clean itself up a bit
private element clone element element el string new tag name document doc el get owner document element new el doc create element new tag name copy attributes to the new element copy attributes el new el append children to the new element node list nodes el get child nodes for int i 0 i nodes get length i node node nod...
clones the element including making deep copies of child nodes
protected void resume task by id string task id final run event run event new run event this hash set temp new hash set synchronized iteration sync temp add all paused tasks temp add all all tasks for iterator i temp iterator i has next task task task i next if task get task id equals task id task resume run event brea...
resumes a specific task
public void log provenance should check prov logger not null if prov logger null use the provenance logger to log the invocation log prov logger add invocation log invocation log if invocation log get status invocation log failed prov logger set workflow status workflow enactment failed
instructs task to log provenance using its provenance logger
protected void handle pause throw new unsupported operation exception handle pause is not supported by interruptible task
must be implemented by the classes of interruptible tasks
public void clean up concrete task workflow instance id null concept id null output null
forces class to clean itself up a bit
public void accept task tsk
facility to accept a possible execution
public void set task task tsk this task owner tsk
set the task assigned this slot
public string get restriction string restriction name object val criteria get restriction name if val null throw new illegal argument exception unrecognised selection restriction else return string val
retrieve a selection criteria item by name
public string get id return flow get id
retrieve the id for the flow
public long get time spent executing so far return flow get execution time so far
retrieve the time spent executing the flow so far
public int get new state return state
retrieve the state for the flow
public void release release concrete flow null
release a flow receipt gives the receipt opportunity to clean itself up
public void reschedule throws scheduler exception simply goes through each digraph and requests a slot from the serviceprovidermanager for each task from top to bottom left to right iterator iterator di graphs iterator while iterator has next di graph d grph di graph iterator next graph node in nodes d grph get node li...
reschedules any di graphs registered with the scheduler
protected void handle cancel throw new unsupported operation exception handle cancel is not supported by interruptible task
must be implemented by the classes of interruptible tasks
public string get description return message
retrieve descriptive string for this message
public int get number of children return children size
retrieves the number of child nodes for this graph node
public string get state string return new
retrieve a string description for the state
public void clean up input nodes null output nodes null node list null identifier null
provides for cleaning up this di graph
public int get number of parents return parents size
retrieves the number of parent nodes for this graph node
public string get state string return cancelled
retrieve a string description for the state
public boolean is ready for dispatch if all the parents are finalised then this is ready boolean ready true iterator iterator parents iterator while iterator has next graph node gn graph node iterator next if gn is successful ready false break if fired ready false return ready
tests whether this node is ready for dispatching
protected void resume tasks final run event run event new run event this hash set temp new hash set synchronized iteration sync temp add all paused tasks for iterator i temp iterator i has next task task task i next if task get state task state paused task resume run event
resumes all tasks
public string get state string return complete
retrieve a string description for the state
public task state fail task event handler event handler task state message tm throws illegal state exception event handler handle failed tm get description return task state failed
retrieves the state of the task as a consequence of a task failing
public task state cancel task event handler event handler task state message tm throws illegal state exception event handler handle cancelled tm get description return task state cancelled
retrieves the state of the task as a consequence of a task cancelled
protected void set successful successful true notify children
sets whether this node is successful only the task subclass should call this
public di graph get di graph return task graph
retrieve the di graph associated with this flow
public string get state string return scheduled
retrieve a string description for the state
public string get state string return suspended
retrieve a string description for the state
public task state fail task event handler event handler task state message tm throws illegal state exception throw new illegal state exception
retrieves the state of the task as a consequence of a task failing
public task state cancel task event handler event handler task state message tm throws illegal state exception throw new illegal state exception
retrieves the state of the task as a consequence of a task cancelled
public long get time since finalise if end time null start time null return 0 else return system current time millis end time get millisecs
retrieve the time since this workflow finalised
public task state cancel task event handler event handler task state message tm throws illegal state exception event handler handle cancelled tm get description allow task to complete first return task state running
retrieves the state of the task as a consequence of a task cancelled
public string get state string return failed
retrieve a string description for the state
public string get state string return running
retrieve a string description for the state
public slot get slot allocation return slot
retrieve the slot allocated as a consequence of this scheduling
public flow get flow return related flow
retrieves the flow associated with this event
public flow get parent flow return parent flow
gets the parent flow for the task
public int get command type return command type
retrieve the command type of this flowcommand event
public int get status return current state
retrieve the current status of the flow