Interface | Description |
---|---|
ESP |
Embedded Java Server Plugin interface.
|
ESPContext |
Context information for an Embedded Server Plugin module.
|
LicenseListenerESP |
Class | Description |
---|---|
AbstractESP |
Abstract base class for an ESP.
|
Cumulus Server/esp
folder. When starting up the server loads all plugins which register to one or more of the available registries.
The currently available registries are:
API | Description |
---|---|
DBMirror |
The DBMirror API must be implemented if you want to extend the mirroring functionality for another type of
mirroring target.
|
Scheduler |
The Scheduler API must be implemented if you want to provide your own plugin executed within the faceless
Scheduler application.
|
Trigger |
The Trigger API must be implemented if you want to provide your own trigger action.
|
Validator |
The Validator API must be implemented if you want to provide your own validator for specific fields.
|
TableValidator |
The TableValidator API must be implemented if you want to provide your own validator for entire items on a table
when creating, saving or deleting such an item.
|
META_INF/MANIFEST.MF
file must have a Main-Class entry pointing to the class which implements the ESP
interface. Additional libraries must be copied into the CumulusServer/esp/youespname/lib folder. Those libraries
will be automatically available for the ESP both on server and client side.
ESP
interface provides the com.canto.cumulus.server.esp.ESP.initialize()
method which should
be used to register to one or more of the registries listed above. The following example shows how to register a custom scheduler job type:
import com.canto.cumulus.GUID; import com.canto.cumulus.server.esp.ESP; import com.canto.cumulus.server.esp.ESPContext; import com.canto.cumulus.server.esp.modules.ServerRegistryManager; import com.canto.cumulus.server.esp.modules.scheduler.SchedulerRegistry; public class SchedulerJobsESP implements ESP { private static final GUID ID = new GUID ("{d1923ffe-49ba-470e-8e6a-af46ad4745d0}"); // replace with your own GUID public SchedulerJobsESP () { } public void initialize (ESPContext context) { ServerRegistryManager serverRegistryManager = ServerRegistryManager.getInstance (); final SchedulerRegistry schedulerRegistry = serverRegistryManager.getSchedulerRegistry (); schedulerRegistry.registerSchedulerESP (new CustomSchedulerJobABC ()); } public void close () { } public GUID getID () { return ID; } public String getName (int language) { return "Custom Scheduler Job ABC"; } }
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.