Petals ESB CLI

The output of 'registry-list' should be controllable

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1.2
  • Fix Version/s: 2.2.0
  • Security Level: Public
  • Description:
    Hide

    The command 'registry-list' provides argument to filter endpoints, services and interfaces to display. But the output is always composed of 3 sections:

    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01]
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
    Interfaces:
    {http://petals.ow2.org/}HelloPortType:
    HelloEndpoint-TargetContainer0 HelloEndpoint-TargetContainer1

    Please add arguments to select the sections that the user want to display, examples:

    petals-cli@localhost:7700>registry-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
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-endpoints --output-interfaces 
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Interfaces:
    {http://petals.ow2.org/}HelloPortType:
    HelloEndpoint-TargetContainer0 HelloEndpoint-TargetContainer1
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-endpoints --output-services
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
    petals-cli@localhost:7700>registry-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
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-services
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
    Show
    The command 'registry-list' provides argument to filter endpoints, services and interfaces to display. But the output is always composed of 3 sections:
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01]
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
    Interfaces:
    {http://petals.ow2.org/}HelloPortType:
    HelloEndpoint-TargetContainer0 HelloEndpoint-TargetContainer1
    Please add arguments to select the sections that the user want to display, examples:
    petals-cli@localhost:7700>registry-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
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-endpoints --output-interfaces 
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Interfaces:
    {http://petals.ow2.org/}HelloPortType:
    HelloEndpoint-TargetContainer0 HelloEndpoint-TargetContainer1
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-endpoints --output-services
    Endpoints:
    HelloEndpoint-TargetContainer0: target-container-0,petals-se-pojo,INTERNAL
    HelloEndpoint-TargetContainer1: target-container-1,petals-se-pojo,INTERNAL
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
    petals-cli@localhost:7700>registry-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
    Services:
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    petals-cli@localhost:7700>registry-list -e HelloEndpoint-TargetContainer[01] --output-services
    {http://petals.ow2.org/}HelloService0:
    HelloEndpoint-TargetContainer0
    {http://petals.ow2.org/}HelloService1:
    HelloEndpoint-TargetContainer1
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Fri, 23 May 2014 - 09:15:43 +0200

Output filtering added in trunk

Show
Christophe DENEUX added a comment - Fri, 23 May 2014 - 09:15:43 +0200 Output filtering added in trunk

People

Dates

  • Created:
    Thu, 22 May 2014 - 16:21:52 +0200
    Updated:
    Fri, 23 May 2014 - 09:15:43 +0200
    Resolved:
    Fri, 23 May 2014 - 09:15:43 +0200