WandoraTool

From WandoraWiki
Jump to: navigation, search

WandoraTool is the interface for all Wandora admin tools. When you make your own tools you should override AbstractWandoraTool instead of directly implementing this class (see Writing your own tool).

Implementations of this class need to implement all methods described in AbstractWandoraTool page except setDefaultLogger, log, hlog, singleLog, setState and forceStop. In addition implementations need to implement two other execute methods. execute(Wandora ,ActionEvent) is the primary entry point to tool. When user clicks a GUI element to start the tool, this is the method that starts the execution. execute(Wandora) is an alternative way to start the tool. It is meant to be used when the tool is launched by something else than the user, for example some other tool.