[ 
https://issues.apache.org/jira/browse/GEODE-7024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Owen Nichols updated GEODE-7024:
--------------------------------
    Description: 
The two implementations of ClusterManagementService should behave similarly in 
how errors are handled.  Currently calls to ClientClusterManagementService 
return a ClusterManagementResult bearing the status of the call, while calls to 
LocatorClusterManagementService are declared to return the same status wrapper, 
but in fact may often throw a Java exception instead.

The goal is to be able to code to the ClusterManagementService interface.  
Therefore to be consistent, ClientClusterManagementService should be changed to 
raise error statuses as Java exceptions, just as a Java developer would expect.

  was:
The two implementations of ClusterManagementService should behave similarly in 
how errors are handled.  Currently calls to ClientClusterManagementService 
return a ClusterManagementResult bearing the status of the call, while calls to 
LocatorClusterManagementService are declared to return the same status wrapper, 
but in fact may often throw a Java exception instead.

The goal is to be able to code to the ClusterManagementService interface.  
Therefore to be consistent, LocatorClusterManagementService should be changed 
to catch exceptions and report them through the ClusterManagementResult for 
consistency.


> CMS Java API on locator and client should have similar error handling
> ---------------------------------------------------------------------
>
>                 Key: GEODE-7024
>                 URL: https://issues.apache.org/jira/browse/GEODE-7024
>             Project: Geode
>          Issue Type: Improvement
>          Components: management
>            Reporter: Owen Nichols
>            Priority: Major
>
> The two implementations of ClusterManagementService should behave similarly 
> in how errors are handled.  Currently calls to ClientClusterManagementService 
> return a ClusterManagementResult bearing the status of the call, while calls 
> to LocatorClusterManagementService are declared to return the same status 
> wrapper, but in fact may often throw a Java exception instead.
> The goal is to be able to code to the ClusterManagementService interface.  
> Therefore to be consistent, ClientClusterManagementService should be changed 
> to raise error statuses as Java exceptions, just as a Java developer would 
> expect.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to