[jboss-jira] [JBoss JIRA] (WFLY-7484) Tabulator in CLI could suggest actual values for attributes for operations

Miroslav Novak (JIRA) issues at jboss.org
Fri Nov 4 08:25:00 EDT 2016


Miroslav Novak created WFLY-7484:
------------------------------------

             Summary: Tabulator in CLI could suggest actual values for attributes for operations
                 Key: WFLY-7484
                 URL: https://issues.jboss.org/browse/WFLY-7484
             Project: WildFly
          Issue Type: Feature Request
          Components: CLI, JMS, Server
    Affects Versions: 10.1.0.Final
            Reporter: Miroslav Novak
            Assignee: Jeff Mesnil


There are number of cases where is necessary to execute CLI operation to actually get value for attribute to another CLI operation. For example I want to list all messages for subscription on the topic then it's necessary to get names of all subscriptions by:
{code}
[standalone at 172.16.10.17:9990 /] /subsystem=messaging-activemq/server=default/jms-topic=HQ_ProductFamilyT23:list-all-subscriptions
{
    "outcome" => "success",
    "result" => [
        {
            "durable" => true,
            "queueName" => "172\\.16\\.10\\.15_VM1_SPAgent55_0.SP_CallForOffersEH_55_EHID_1PF4",
            "clientID" => "172.16.10.15_VM1_SPAgent55_0",
            "messageCount" => 0,
            "deliveringCount" => 0,
            "name" => "SP_CallForOffersEH_55_EHID_1PF4",
            "consumers" => [{
                "creationTime" => 1478261489444L,
                "consumerID" => 4,
                "browseOnly" => false,
                "connectionID" => "-1638816479",
                "sessionID" => "d1149360-a287-11e6-bb34-97e27f67b29e"
            }]
        },
        {
            "durable" => true,
            "queueName" => "172\\.16\\.10\\.18_VM1_SPAgent23_0.SP_CallForOffersEH_23_EHID_1PF0",
            "clientID" => "172.16.10.18_VM1_SPAgent23_0",
            "messageCount" => 0,
            "deliveringCount" => 0,
            "name" => "SP_CallForOffersEH_23_EHID_1PF0",
            "consumers" => [{
                "creationTime" => 1478261516648L,
                "consumerID" => 0,
                "browseOnly" => false,
                "connectionID" => "-1794279882",
                "sessionID" => "e14e5343-a287-11e6-9311-4d8e66b2ef14"
            }]
        }
    ]
}
{code}
 
so name of subscription  {{SP_CallForOffersEH_55_EHID_1PF4}} could be used in:
[standalone at 172.16.10.17:9990 /] /subsystem=messaging-activemq/server=default/jms-topic=HQ_ProductFamilyT23:list-messages-for-subscription(queue-name=SP_CallForOffersEH_55_EHID_1PF4)

The improvement would allow to just press tab in:
[standalone at 172.16.10.17:9990 /] /subsystem=messaging-activemq/server=default/jms-topic=HQ_ProductFamilyT23:list-messages-for-subscription(queue-name=...  <-- tab here would suggest which queues are available

and it would suggest queue names of available subscriptions.

There are more places like this - for example :
{code}
/subsystem=messaging-activemq/server=default:rollback-prepared-transaction(transaction-as-base-64=... <-- tab here
{code}
would provide available prepared transactions which can be commit.





--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list