Changeset 5407 for trunk/doc/src/docbook/developerdoc/plugin_developer.xml
- Timestamp:
- Sep 13, 2010, 12:53:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/developerdoc/plugin_developer.xml
r5071 r5407 661 661 parameter is used to tell the core if the plug-in was successful or 662 662 failed. Not setting a response is considered a failure by the core. From 663 the run method it is only allowed to use the664 <methodname>Response.setDone()</methodname> 665 or the666 <methodname>Response.set Error()</methodname>663 the run method it is only allowed to use on of the 664 <methodname>Response.setDone()</methodname>, 665 <methodname>Response.setError()</methodname> or 666 <methodname>Response.setContinue()</methodname> 667 667 methods. 668 668 </para> … … 1753 1753 designed for. This method should not throw any exceptions. 1754 1754 Use the <methodname>Response.setDone()</methodname> 1755 method to report success or the <methodname>Response.setError()</methodname> 1756 to report errors. 1755 method to report success, the <methodname>Response.setError()</methodname> 1756 method to report errors or the <methodname>Response.setContinue()</methodname> 1757 method to respond to a shutdown signal and tell the core to resume the 1758 job once the system is up and running again. 1757 1759 </para> 1758 1760 </listitem> … … 1760 1762 <listitem> 1761 1763 <para> 1762 In bothcases the <methodname>Plugin.done()</methodname>1764 In all cases the <methodname>Plugin.done()</methodname> 1763 1765 method is called and the plug-in instance is discarded. 1764 1766 </para> … … 4760 4762 4761 4763 <para> 4762 Another signal handler implementation is the 4763 <classname docapi="net.sf.basedb.core.signal">ProgressReporterSignalHandler</classname>. 4764 See that javadoc for information about how to use it. 4765 For more information about the signalling system as a whole, 4766 see <xref linkend="core_api.signals" />. 4764 Other signal handler implementations are 4765 <classname docapi="net.sf.basedb.core.signal">ProgressReporterSignalHandler</classname> 4766 and <classname docapi="net.sf.basedb.core.signal">EnhancedThreadSignalHandler</classname>. 4767 The latter handler also has support for the <constant>SHUTDOWN</constant> signal 4768 which is sent to plug-in when the system is shutting down. Clever plug-ins may use 4769 this to enable them to be restarted when the system is up and running again. 4770 See that javadoc for information about how to use it. For more information about the 4771 signalling system as a whole, see <xref linkend="core_api.signals" />. 4767 4772 </para> 4768 4773
Note: See TracChangeset
for help on using the changeset viewer.