| |
|
| java.lang.Object java.lang.Thread org.netbeans.jemmy.ActionProducer
All known Subclasses: org.netbeans.jemmy.Test,
ActionProducer | public class ActionProducer extends Thread implements Action,Waitable,Timeoutable(Code) | | Runs actions with or without waiting.
Timeouts used:
ActionProducer.MaxActionTime - time action should be finished in.
See Also: Action See Also: Timeouts author: Alexandre Iline (alexandre.iline@sun.com) |
Method Summary | |
final public Object | actionProduced(Object obj) Inquire for a reference to the object returned by a launched action.
Parameters: obj - Not used. | public String | getDescription() | public Throwable | getException() Returns the exception value. | public boolean | getFinished() Check if a launched action has finished. | public Object | getResult() Get the result of a launched action. | public Timeouts | getTimeouts() Get all the time outs used by sleeps or waits used by the launched action. | public Object | launch(Object obj) Does nothing; the method should be overridden by inheritors.
Parameters: obj - An object used to modify execution. | public Object | produceAction(Object obj) Starts execution. | final public void | run() Launch an action in a separate thread of execution.
When the action finishes, record that fact. | public void | setActionPriority(int newPriority) Defines action priority in terms of thread priority. | public void | setOutput(TestOut out) Identity of the streams or writers used for print output. | public void | setTimeouts(Timeouts ts) Set all the time outs used by sleeps or waits used by the launched action. |
ActionProducer | public ActionProducer(Action a)(Code) | | Creates a producer for an action.
Parameters: a - Action implementation. |
ActionProducer | public ActionProducer(Action a, boolean nw)(Code) | | Creates a producer for an action.
Parameters: a - Action implementation. Parameters: nw - Defines if produceAction method should wait for the end of action. |
ActionProducer | protected ActionProducer()(Code) | | Creates a producer.
produceAction must be overridden.
|
ActionProducer | protected ActionProducer(boolean nw)(Code) | | Creates a producer.
produceAction must be overridden.
Parameters: nw - Defines if produceAction method should wait for the end of action. |
actionProduced | final public Object actionProduced(Object obj)(Code) | | Inquire for a reference to the object returned by a launched action.
Parameters: obj - Not used. the result returned when a launched action finishesnormally. See Also: org.netbeans.jemmy.Waitable |
getDescription | public String getDescription()(Code) | | this ActionProducer 's description. See Also: Action |
getException | public Throwable getException()(Code) | | Returns the exception value.
a Throwable object representing the exception value |
getFinished | public boolean getFinished()(Code) | | Check if a launched action has finished.
true if the launched action has completed,either normally or with an exception; false otherwise. |
launch | public Object launch(Object obj)(Code) | | Does nothing; the method should be overridden by inheritors.
Parameters: obj - An object used to modify execution. This might be ajava.lang.String[] that lists a test's command linearguments. An object - result of the action. See Also: org.netbeans.jemmy.Action |
setActionPriority | public void setActionPriority(int newPriority)(Code) | | Defines action priority in terms of thread priority.
Increase (decrease) parameter value to Thread.MIN_PRIORITY(MAX_PRIORITY)
in case if it is less(more) then it.
Parameters: newPriority - New thread priority. |
|
|
|