[ 
https://issues.apache.org/jira/browse/CAMEL-9224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995148#comment-14995148
 ] 

Evgeny Minkevich commented on CAMEL-9224:
-----------------------------------------

*SyntaxExceptions*

SyntaxExceptions are being thrown by the underlying framework - CRaSH - when a 
argument designated as @Required has not been provided. The name of the 
argument is given - in the log above it is “Camel Context”. The validation 
happens before the groovy command method is called. Not sure how easy how a 
handler can be implemented - I will check.

What has been done, however, is autocompletion - if the user presses “TAB” the 
Context Name/Route ID will be inserted.
That’s why I reasoned that it should be OK for the immediate future.

*Endpoint Stats*

If you run the command you still get the output:

{code}
> camel endpoint-stats CAMEL_TEST log://UPLOADER2?level=INFO&showBody=true
 Context        Uri                                                     Route 
Id       Direction      Static         Dynamic             Total #
 -------        ---                                                     
--------       ---------      ------         -------             -------
{code}

My understanding is that the issue lies with the the implementation of the 
underlying command itself, yet I have not looked into it. What I have noticed, 
however, is that JBoss FUSE 6.2 does not include it at all. I opted to include 
it into the set and leave the practical implementation to be worked out later - 
I might need assistance with that.

The code.

Apologies for the formatting. Somehow I missed this. Is there a formatting 
config for Eclipse/Intellij anywhere?

> Camel specific commands for spring boot shell
> ---------------------------------------------
>
>                 Key: CAMEL-9224
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9224
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot, tooling
>            Reporter: Evgeny Minkevich
>            Assignee: Claus Ibsen
>             Fix For: 2.17.0
>
>
> As an integration administrator who has to monitor/troubleshoot running PROD 
> environments I would like to have camel specific commands in spring boot 
> shell:
> camel:context-info
> camel:context-list
> camel:context-start
> camel:context-stop
> camel:endpoint-list
> camel:route-info
> camel:route-list
> camel:route-profile
> camel:route-reset-stats
> camel:route-resume
> camel:route-show
> camel:route-start
> camel:route-stop
> camel:route-suspend



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to