Run Java Package
This handler (com.rierino.handler.JarLoadedEventHandler) provides ability to load and execute dynamic Java packages during runtime.
Handler Parameters
jar.state
Name of the state manager storing jar definitions
customJars
handler_jar
jar.domain
Category of jars within the jar state manager that can be used by this handler
basket_operations
-
jar.local.dir
Local directory to store dynamic jars
/tmp
java.io.tmpdir
Actions
Process / ProcessPackage
Passes requested event to dynamic event handler for processing. Event metadata parameters applicable for this action are as follows:
dynamicHandler
Name of the handler to execute request
basket_operations
-
dynamicAction
Name of the action to call on handler
PriceBasket
-
All parameters applicable for the selected handler are also passed on by the JarLoadedEventHandler.
Packages
Handler packages provide ability to deploy or replace packaged components during runtime. These packages are typically deployed using an JarLoadedEventHandler and can be automatically redeployed in production with a package pulse or journal.
It is possible to extend the languages that are supported for dynamic handler packages with new event handlers. Rierino is shipped with dynamic package deployment for Java with the following properties:
Name: Descriptive name of the handler package
Status: Whether the handler package should still execute or not
Description: Detailed explanation of the package contents
Package Files: List and URLs of files to load for the package
Package Handlers: List and fully qualified class names of handlers inside the package
While hot swapping packages during runtime has its risks, this feature allows for faster deployment of mission critical changes or simpler CI/CD processes during development.
Last updated