Petals CLI 2.3.0-SNAPSHOT

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (21)

View Page History
Get the values defined in its server.properties file.
pwd Print the working directory.
registry-list endpoint-list
List the entries of the registry. endpoint directory.
registry-sync
Synchronize the registry.
set Assign a value to the system property named key.
show Print informations about a JBI artifact.
{code}

h2. Working with the Service Registry endpoint directory

h3. Showing the registry's endpoint directory's full content

The full content of the registry endpoint directory can be dumped by using the '_registry-list_' '_endpoint-list_' command:
{code}
petals-cli> registry-list endpoint-list
Endpoints:
<endpoint-name-1>: <endpoint-1-characteristics>
{note}Qualified names, like service and interface names, are written as follows:\{namespace-uri\}local-part.{note}

h4. Filtering the registry's endpoint directory's full content

The content of the registry endpoint directory can be dumped by using the '_registry-list_' '_endpoint-list_' command.
It is however possible to filter the dumped result.
{code}
petals-cli> registry-list endpoint-list [-e <endpoint-name-regexp>] [-s <service-name-regexp>] [-i <interface-name-regexp>] [-c <container-name-regexp>]
{code}


The parameter order (endpoint, service, interface) does not matter.
All are optional. If none is specified, the entire regitry endpoint directory content is dumped.

{note}
{note}

h4. Controlling the output of the endpoint directory content dumped

h4. Controlling the output of the registry content dumped

The output of the command 'registry-list', 'endpoint-list', defined below, is composed of 3 parts:
* endpoints, under the header '{{Endpoints:}}',
* services, under the header '{{Services:}}',
You can select the parts to display one by one using:
{code}
petals-cli> registry-list endpoint-list [--output-endpoints] [--output-services] [--output-interfaces]
{code}


{code:title=Sample #1}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01]
Endpoints:
HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
{code}
{code:title=Sample #2}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01] --output-endpoints
HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
{code}
{code:title=Sample #3}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01] --output-endpoints --output-interfaces
Endpoints:
HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
{code}
{code:title=Sample #4}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01] -s {http://petals.ow2.org/}HelloService0 --output-endpoints --output-services
Endpoints:
HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
{code}
{code:title=Sample #5}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01] -s {http://petals.ow2.org/}HelloService0 --output-services
{http://petals.ow2.org/}HelloService0:
HelloEndpoint-TargetContainer0
{code}
{code:title=Sample #6}
petals-cli@localhost:7700>registry-list petals-cli@localhost:7700>endpoint-list -e HelloEndpoint-TargetContainer[01] --output-services
{http://petals.ow2.org/}HelloService0:
HelloEndpoint-TargetContainer0