Project

General

Profile

Improvement #2049

Add command line for sync, prepare and log download via jmx.

Added by Henning Blohm about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-core
Target version:
Start date:
17.11.2019
Due date:
% Done:

0%

Estimated time:
origin:

Description

The current command line should be extended.

Acceptance Criteria

  • 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.
#1

Updated by Henning Blohm about 5 years ago

  • Target version set to 2.8
#2

Updated by Henning Blohm about 5 years ago

  • Description updated (diff)
#3

Updated by Henning Blohm about 5 years ago

  • Description updated (diff)
#4

Updated by Henning Blohm about 5 years ago

  • Description updated (diff)
#5

Updated by Henning Blohm about 5 years ago

  • Subject changed from Add command line for sync and log download via jmx. to Add command line for sync, prepare and log download via jmx.
  • Description updated (diff)
#6

Updated by Henning Blohm about 5 years ago

  • Description updated (diff)
#7

Updated by Henning Blohm about 5 years 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 

and


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.

#8

Updated by Henning Blohm about 5 years ago

  • Status changed from In Progress to To Be Documented
#9

Updated by Henning Blohm almost 5 years ago

  • Status changed from To Be Documented to Resolved

Also available in: Atom PDF