|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.globus.cog.karajan.workflow.nodes.FlowNode
public class FlowNode
Nested Class Summary | |
---|---|
static class |
FlowNode.FNTP
|
Field Summary | |
---|---|
static Arg |
A_INLINE_TEXT
|
static boolean |
debug
|
static org.apache.log4j.Logger |
logger
|
static long |
startCount
|
static Arg.Channel |
STDERR
|
static Arg.Channel |
STDOUT
|
static Map |
threadTracker
|
Fields inherited from interface org.globus.cog.karajan.workflow.nodes.FlowElement |
---|
ANNOTATION, CALLER, FILENAME, LINE, TEXT, UID |
Constructor Summary | |
---|---|
FlowNode()
|
Method Summary | |
---|---|
protected void |
_finally(VariableStack stack)
|
protected void |
abort(VariableStack stack)
|
protected void |
abortEvent(AbortEvent e)
|
boolean |
acceptsInlineText()
Returns true if the implementation of this element makes use
of inline XML text. |
void |
addElement(FlowElement element)
Adds a child element to this element. |
void |
addStaticArgument(String name,
Object value)
|
Object |
checkClass(Object value,
Class cls,
String name)
|
protected void |
checkCompleted(VariableStack stack)
|
protected void |
checkFailed(VariableStack stack)
|
void |
complete(VariableStack stack)
|
protected void |
controlEvent(ControlEvent e)
|
FlowElement |
copy()
|
protected void |
echo(String message)
|
protected void |
echo(String message,
boolean nl)
|
int |
elementCount()
Returns the number of child elements for this element |
List |
elements()
Returns the list of child elements |
void |
event(Event e)
|
void |
execute(VariableStack stack)
|
protected boolean |
executeErrorHandler(VariableStack stack,
NotificationEvent error)
|
void |
executeSimple(VariableStack stack)
|
void |
fail(VariableStack stack,
String message)
|
void |
fail(VariableStack stack,
String message,
Throwable cause)
|
void |
failIfNotDefined(VariableStack stack,
String var,
String message)
|
void |
failIfNull(VariableStack stack,
String name)
|
void |
failIfNull(VariableStack stack,
String name,
String message)
|
void |
failImmediately(VariableStack stack,
FailureNotificationEvent fne)
|
void |
failImmediately(VariableStack stack,
String message)
Provides means to cause the execution of this element under the given context ( stack ) to fail |
void |
failImmediately(VariableStack stack,
String message,
Exception exception)
|
void |
failImmediately(VariableStack stack,
Throwable exception)
|
void |
fireControlEvent(FlowElement target,
FlowEvent event)
|
void |
fireMonitoringEvent(MonitoringEvent event)
|
void |
fireNotificationEvent(FlowEvent event,
VariableStack stack)
Notification events notify callers of the status of the execution (completed, failed, aborted, ...) |
void |
fireStatusMonitoringEvent(MonitoringEventType type,
VariableStack stack,
Object detail)
|
String |
get_locator()
|
boolean |
getBooleanProperty(String name)
|
boolean |
getBooleanProperty(String name,
boolean defaultValue)
|
Object |
getCanonicalType()
|
FlowElement |
getElement(int index)
Returns the child element at @param index |
String |
getElementType()
Returns the type of this element |
int |
getIntProperty(String name)
|
int |
getIntProperty(String name,
int defaultValue)
|
FlowElement |
getParent()
Retrieves the parent previously set with setParent |
Object |
getProperty(String name)
Retrieves the value of a property. |
Map |
getStaticArguments()
|
String |
getStringProperty(String name)
|
protected String |
getTextualName()
|
static Object |
getTreeProperty(String name,
FlowElement element)
|
Integer |
getUID()
|
protected boolean |
hasFrame()
|
boolean |
hasProperty(String name)
Returns true if a property with the given name
was set on this element. |
protected void |
initializeStatic()
|
boolean |
isCheckpointable()
|
boolean |
isSimple()
|
protected boolean |
isSystemProperty(String name)
|
void |
loadComplete()
|
void |
loadStarted()
|
protected void |
monitoringEvent(MonitoringEvent e)
|
protected void |
notificationEvent(NotificationEvent e)
|
Collection |
propertyNames()
Returns a collection of all the property names that are set on this element. |
void |
removeElement(FlowElement element)
|
void |
removeElement(int index)
Removes the child element at @param index. |
void |
removeProperty(String name)
Completely removes a property previously set on this element. |
void |
replaceElement(int index,
FlowElement element)
Replaces the child element at @param index with |
void |
restart(VariableStack stack)
|
void |
restartElement(FlowElement c,
VariableStack stack)
|
protected void |
ret(VariableStack stack,
Object value)
|
void |
set_locator(String locator)
|
protected void |
setAcceptsInlineText(boolean inlineText)
|
void |
setCheckpointable(boolean checkpointable)
|
void |
setElements(List elements)
|
void |
setElementType(String string)
Sets the element type. |
protected void |
setFrame(boolean frame)
|
void |
setParent(FlowElement element)
Sets the lexical parent of this element. |
void |
setProperties(Map properties)
|
void |
setProperty(String name,
boolean value)
|
void |
setProperty(String name,
int value)
|
void |
setProperty(String name,
Object value)
Sets a property on this element. |
void |
setStaticArguments(Map args)
|
void |
start(VariableStack stack)
|
protected void |
startElement(FlowElement c,
VariableStack stack)
|
void |
startElement(int index,
VariableStack stack)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger logger
public static final Arg A_INLINE_TEXT
public static final Arg.Channel STDOUT
public static final Arg.Channel STDERR
public static final Map threadTracker
public static long startCount
public static boolean debug
Constructor Detail |
---|
public FlowNode()
Method Detail |
---|
protected boolean executeErrorHandler(VariableStack stack, NotificationEvent error) throws ExecutionException
ExecutionException
public void failImmediately(VariableStack stack, FailureNotificationEvent fne)
public void failImmediately(VariableStack stack, String message)
FlowElement
stack
) to fail
failImmediately
in interface FlowElement
public void failImmediately(VariableStack stack, Throwable exception)
public void failImmediately(VariableStack stack, String message, Exception exception)
public void fireNotificationEvent(FlowEvent event, VariableStack stack)
public final void fireControlEvent(FlowElement target, FlowEvent event)
public final void fireMonitoringEvent(MonitoringEvent event)
public final void fireStatusMonitoringEvent(MonitoringEventType type, VariableStack stack, Object detail)
protected final void checkFailed(VariableStack stack)
protected final void checkCompleted(VariableStack stack)
public final void restart(VariableStack stack) throws ExecutionException
ExecutionException
protected void abort(VariableStack stack) throws ExecutionException
ExecutionException
public final void start(VariableStack stack) throws ExecutionException
ExecutionException
public void execute(VariableStack stack) throws ExecutionException
ExecutionException
public final void complete(VariableStack stack) throws ExecutionException
ExecutionException
protected void _finally(VariableStack stack) throws ExecutionException
ExecutionException
public final FlowElement copy()
public void event(Event e) throws ExecutionException
event
in interface EventListener
ExecutionException
protected void notificationEvent(NotificationEvent e) throws ExecutionException
ExecutionException
protected void controlEvent(ControlEvent e) throws ExecutionException
ExecutionException
protected void abortEvent(AbortEvent e) throws ExecutionException
ExecutionException
protected void monitoringEvent(MonitoringEvent e) throws ExecutionException
ExecutionException
public void fail(VariableStack stack, String message, Throwable cause) throws ExecutionException
ExecutionException
public void fail(VariableStack stack, String message) throws ExecutionException
ExecutionException
public void failIfNotDefined(VariableStack stack, String var, String message) throws ExecutionException
ExecutionException
public void failIfNull(VariableStack stack, String name) throws ExecutionException
ExecutionException
public void failIfNull(VariableStack stack, String name, String message) throws ExecutionException
ExecutionException
public void startElement(int index, VariableStack stack) throws ExecutionException
ExecutionException
protected void startElement(FlowElement c, VariableStack stack) throws ExecutionException
ExecutionException
public void restartElement(FlowElement c, VariableStack stack)
protected void ret(VariableStack stack, Object value) throws ExecutionException
ExecutionException
public String get_locator()
public void set_locator(String locator)
public String toString()
toString
in class Object
protected String getTextualName()
public List elements()
FlowElement
elements
in interface FlowElement
public void setCheckpointable(boolean checkpointable)
public boolean isCheckpointable()
public void addElement(FlowElement element)
FlowElement
addElement
in interface FlowElement
public void setElements(List elements)
setElements
in interface FlowElement
public void replaceElement(int index, FlowElement element)
FlowElement
replaceElement
in interface FlowElement
public void removeElement(int index)
FlowElement
removeElement
in interface FlowElement
public void removeElement(FlowElement element)
public FlowElement getElement(int index)
FlowElement
getElement
in interface FlowElement
public int elementCount()
FlowElement
elementCount
in interface FlowElement
public void setProperty(String name, Object value)
FlowElement
null
setProperty
in interface FlowElement
public void setProperties(Map properties)
setProperties
in interface FlowElement
public void removeProperty(String name)
FlowElement
removeProperty
will have no effect.
removeProperty
in interface FlowElement
public Object getProperty(String name)
FlowElement
getProperty
will
return null
. In order to distinguish between
a property with a value of null
and a property
not set, hasProperty
can be used.
getProperty
in interface FlowElement
public boolean hasProperty(String name)
FlowElement
true
if a property with the given name
was set on this element.
hasProperty
in interface FlowElement
public void setProperty(String name, int value)
public int getIntProperty(String name)
public int getIntProperty(String name, int defaultValue)
public String getStringProperty(String name)
public void setProperty(String name, boolean value)
public boolean getBooleanProperty(String name)
public boolean getBooleanProperty(String name, boolean defaultValue)
public void addStaticArgument(String name, Object value)
addStaticArgument
in interface FlowElement
public void setStaticArguments(Map args)
setStaticArguments
in interface FlowElement
public Map getStaticArguments()
getStaticArguments
in interface FlowElement
public String getElementType()
FlowElement
getElementType
in interface FlowElement
public void setElementType(String string)
FlowElement
setElementType
in interface FlowElement
public Object getCanonicalType()
public FlowElement getParent()
FlowElement
setParent
getParent
in interface FlowElement
public void setParent(FlowElement element)
FlowElement
addElement
, setParent
is
automatically called on the child element with this element as
the argument.
setParent
in interface FlowElement
public Collection propertyNames()
FlowElement
propertyNames
in interface FlowElement
protected void echo(String message)
protected void echo(String message, boolean nl)
protected void setAcceptsInlineText(boolean inlineText)
public boolean acceptsInlineText()
FlowElement
true
if the implementation of this element makes use
of inline XML text. XML unfortunately does not provide means to separate
relevant inline text from formatting whitespace (which in itself may or may
not be relevant, depending on the context).
acceptsInlineText
in interface FlowElement
public final Object checkClass(Object value, Class cls, String name) throws ExecutionException
ExecutionException
public static Object getTreeProperty(String name, FlowElement element)
protected boolean hasFrame()
protected void setFrame(boolean frame)
public void loadStarted()
loadStarted
in interface LoadListener
public Integer getUID()
public void loadComplete()
loadComplete
in interface LoadListener
protected void initializeStatic()
protected boolean isSystemProperty(String name)
public boolean isSimple()
isSimple
in interface ExtendedFlowElement
public void executeSimple(VariableStack stack) throws ExecutionException
executeSimple
in interface ExtendedFlowElement
ExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |