|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProcessor
Interface for processor implementations
| Field Summary | |
|---|---|
static java.lang.String |
ENACTOR
A string representing a resource location within the enactor JVM. |
| Method Summary | |
|---|---|
void |
addAlternate(AlternateProcessor ap)
Add an alternate processor to this processor definition |
void |
addAnnotationTemplate(AnnotationTemplate theTemplate)
Add an annotation template to this processor |
void |
addBreakpoint()
Add a breakpoint to the processor |
void |
addPort(Port the_port)
Add a new port to this processor |
AnnotationTemplate[] |
defaultAnnotationTemplates()
Create a standard annotation template for each pair of bound input / output ports, mostly just to test the metadata store and browser functionality. |
void |
fireModelEvent(ScuflModelEvent event)
Fire a change event back to the model |
AlternateProcessor[] |
getAlternatesArray()
Return the list of AlternateProcessor holders for this primary processor implementation. |
java.util.List |
getAlternatesList()
Return the alternates list object to allow addition or reordering of alternate processors |
AnnotationTemplate[] |
getAnnotationTemplates()
Return an array containing all annotation templates for this processor |
double |
getBackoff()
Return the factor by which the timeout value will be multiplied for each retry after the first. |
InputPort[] |
getBoundInputPorts()
Get an array of the input ports that are bound by data constraints defined within this processor |
OutputPort[] |
getBoundOutputPorts()
Get an array of all the output ports that are bound by data constraints and defined within this processor |
boolean |
getCritical()
Get whether the Processor is critical. |
int |
getDefaultWorkers()
Return the default number of workers for an instance of this processor type |
java.lang.String |
getDescription()
Get a description of the processor. |
InputPort[] |
getInputPorts()
Get an array containing only input ports |
IterationStrategy |
getIterationStrategy()
Get the iteration strategy for this processor, or null if the default should be used |
int |
getLogLevel()
Get the log level, this is the effective log level of the processor taking into account possible inheritence of the level from the ScuflModel instance. |
int |
getMaximumWorkers()
Return the maximum number of task implementations that should be launched for this processor. |
ScuflModel |
getModel()
Get the parent model |
java.lang.String |
getName()
Get the name for this processor. |
OutputPort[] |
getOutputPorts()
Get an array containing only output ports |
Port[] |
getPorts()
Get an array of the ports, input or output, defined within this processor. |
java.util.Properties |
getProperties()
Return a properties object containing the processor specific properties for this processor type instance. |
int |
getRealLogLevel()
Get the real log level set by this processor, this can be -1 in which case the getLogLevel method will return the log level of the ScuflModel that 'owns' this processor |
java.lang.String |
getResourceHost()
If meaningful, obtain the host that the resource is based in. |
int |
getRetries()
Return the number of retries after the initial invocation attempt. |
int |
getRetryDelay()
Get the number of milliseconds to wait before first retrying an invocation of the task this processor represents. |
int |
getTimeout()
Return the time in milliseconds after which an instance of this processor should be regarded as having failed with a timeout. |
int |
getWorkers()
Return the number of workers for this instance |
boolean |
hasBreakpoint()
Check for a breakpoint |
boolean |
isBoring()
Is this processor boring? If so it shouldn't show up by default in the status display |
boolean |
isOffline()
Are we in offline mode? |
Port |
locatePort(java.lang.String port_name)
Find a particular named port |
Port |
locatePort(java.lang.String port_name,
boolean isInputPort)
Find a particular named port, input port if boolean flag is true |
void |
removeAlternate(AlternateProcessor ap)
Delete an alternate processor from this processor definition |
void |
removeAnnotationTemplate(AnnotationTemplate theTemplate)
Remove an annotation template from this processor |
void |
removePort(Port the_port)
Remove a port from a processor (only really applicable to the workflow source and sink ports, so be careful when you're using it) |
void |
rmvBreakpoint()
Remove a breakpoint to the processor |
void |
setBackoff(double backoff)
Set the backoff factor |
void |
setBoring(boolean boring)
Set whether this processor is boring |
void |
setCritical(boolean critical)
Set whether the Processor is critical. |
void |
setDescription(java.lang.String the_description)
Set the description for the processor. |
void |
setIterationStrategy(IterationStrategy i)
Set the iteration strategy |
void |
setLogLevel(int level)
Set the log level |
void |
setName(java.lang.String newName)
Set the name, providing that names doesn't exist within the current workflow that this processor is bound to. |
void |
setOffline()
|
void |
setOnline()
Allow subclasses to intercept requests to go offline and online, allows e.g. |
void |
setRetries(int retries)
Set the number of retries |
void |
setRetryDelay(int delay)
Set the retry delay |
void |
setTimeout(int timeout)
Set the timeout parameter |
void |
setWorkers(int workers)
Set the number of workers |
| Field Detail |
|---|
static final java.lang.String ENACTOR
| Method Detail |
|---|
boolean isBoring()
void setBoring(boolean boring)
void setOnline()
void setOffline()
boolean hasBreakpoint()
void addBreakpoint()
void rmvBreakpoint()
java.lang.String getResourceHost()
int getMaximumWorkers()
int getDefaultWorkers()
int getWorkers()
void setWorkers(int workers)
void setName(java.lang.String newName)
IterationStrategy getIterationStrategy()
void setIterationStrategy(IterationStrategy i)
AnnotationTemplate[] getAnnotationTemplates()
void addAnnotationTemplate(AnnotationTemplate theTemplate)
void removeAnnotationTemplate(AnnotationTemplate theTemplate)
AnnotationTemplate[] defaultAnnotationTemplates()
AlternateProcessor[] getAlternatesArray()
java.util.List getAlternatesList()
void addAlternate(AlternateProcessor ap)
void removeAlternate(AlternateProcessor ap)
int getTimeout()
void setTimeout(int timeout)
int getRetries()
void setRetries(int retries)
int getRetryDelay()
void setRetryDelay(int delay)
double getBackoff()
void setBackoff(double backoff)
boolean getCritical()
void setCritical(boolean critical)
int getLogLevel()
int getRealLogLevel()
void setLogLevel(int level)
java.util.Properties getProperties()
java.lang.String getName()
java.lang.String getDescription()
void setDescription(java.lang.String the_description)
Port[] getPorts()
InputPort[] getBoundInputPorts()
OutputPort[] getBoundOutputPorts()
Port locatePort(java.lang.String port_name)
throws UnknownPortException
UnknownPortException
Port locatePort(java.lang.String port_name,
boolean isInputPort)
throws UnknownPortException
UnknownPortExceptionInputPort[] getInputPorts()
OutputPort[] getOutputPorts()
void addPort(Port the_port)
void removePort(Port the_port)
ScuflModel getModel()
void fireModelEvent(ScuflModelEvent event)
boolean isOffline()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||