Add command line for sync, prepare and log download via jmx.
The current command line should be extended.
- New z.jar util usages are introduced:
- sync -u <jmx service url> (invoke sync via JMX)
- showlog -u <jmx service url> (invoke log streaming via JMX)
- Use z.jar for the embedded case as well - behaving as z_embedded when there is a -DcomponentName
- preserve z_embedded for compatibility with an adapted manifest.
Updated by Henning Blohm 11 months ago
New command line is:
z2 Manage: Various remotely invoked management commands. SYNOPSIS java -cp z.jar Manage <command> <options> COMMANDS sync The sync performs a synchronization of a running (remote) z2 Home. showlog Continuously stream the z2 Home log of a running z2 Home to the current stderr. OPTIONS -url <url> JMX URL identifying the target z2 Home. Defaults to service:jmx:rmi:///jndi/rmi://localhost:7777/jmxrmi The URL may be shortened to <host>:<port> (e.g. localhost:7777) -user <username> Username used for JMX authentication. Optional. -pass <password> Password used for JMX authentication. Optional. Mandatory when a username has been set -b <n> Number of lines to read before current (if available) when running showlog. EXAMPLE java -cp z.jar com.zfabrik.launch.Manage showlog -url host:7777 -user admin -pass admin
z2 MainRunner: Main program execution of z2 components. SYNOPSIS java -DcomponentName=<component name> -cp z.jar MainRunner <args> OPTIONS <component name> A component name in Z2 identifying a main program component <args> Parameters passed to the main program NOTES Make sure to either set a Z2_HOME environment variable pointing to the relevant z2 home installation or specify the system property com.zfabrik.home when calling the MainRunner: java -DcomponentName=<component name> -Dcom.zfabrik.home=<home folder> -cp z.jar com.zfabrik.launch.MainRunner <args>
We script prepare for now. z_embedded is just a compatibility version of z.jar.