|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.larkc.core.executor.Executor
public class Executor
The executor is responsible for actually constructing a workflow (or 'plumbing' the pipelines so to speak). The executor needs a workflow (described in RDF) to operate. Workflows can be generated by hand or by any plug-in (which is then usually called a 'decider').
| Constructor Summary | |
|---|---|
Executor(SetOfStatements workflowDescription)
Constructor. |
|
| Method Summary | |
|---|---|
void |
execute(SetOfStatements query)
Execute the given workflow by invoking the plugins. |
void |
execute(SetOfStatements query,
java.lang.String pipeId)
Execute the given workflow by invoking the plugins. |
java.lang.String |
getBrokerUrl()
Returns the URL of the broker. |
Endpoint |
getEndpoint(java.lang.String type)
This method returns the endpoint of a specific type. |
java.util.UUID |
getId()
Getter. |
SetOfStatements |
getNextResults()
Returns the next results of the workflow. |
SetOfStatements |
getNextResults(int offset,
int limit)
Get the next x results. |
SetOfStatements |
getNextResults(java.lang.String pipeId)
Returns the next results of the workflow. |
java.util.Set<java.lang.String> |
getPipeIds()
Deprecated. |
void |
messagingShutdown()
Shuts down the messaging. |
void |
onMessage(javax.jms.Message arg0)
|
void |
startListening(java.lang.String topic)
need to be implemented to handle the received message |
void |
stopEndpoints()
Removes all endpoints of this executor. |
void |
stopExecution()
Stops the execution of the workflow but does not terminate the executor. |
void |
terminate()
Removes the executor and the endpoints from the mapping and stops all endpoints. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Executor(SetOfStatements workflowDescription)
throws IllegalWorkflowGraphException
decider in charge.
workflowDescription - the workflow to be executed. Everything that is needed to
execute the workflow has to be included in this workflow
description. This can either be a full description of the
workflow or some special parameters used by the decider (to
actually create the workflow).
IllegalWorkflowGraphException| Method Detail |
|---|
public java.lang.String getBrokerUrl()
public void execute(SetOfStatements query)
query - the query
public void execute(SetOfStatements query,
java.lang.String pipeId)
query - the querypipeId - the ID of the pipe that should be called
public SetOfStatements getNextResults(int offset,
int limit)
offset - limit -
public java.util.UUID getId()
UUID
public void terminate()
throws EndpointShutdownException
EndpointShutdownException - thrown if one or more endpoints are unable to shutdownpublic void stopExecution()
public SetOfStatements getNextResults(java.lang.String pipeId)
pipeId - the ID of the pipe that sould be called
public SetOfStatements getNextResults()
public Endpoint getEndpoint(java.lang.String type)
type - type of the endpoint
public void stopEndpoints()
throws EndpointShutdownException
EndpointShutdownException - if one or more endpoints are unable to shutdownpublic void onMessage(javax.jms.Message arg0)
onMessage in interface javax.jms.MessageListenerpublic void startListening(java.lang.String topic)
topic - topic on what the class should listenpublic void messagingShutdown()
@Deprecated public java.util.Set<java.lang.String> getPipeIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||