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

Suresh Srinivas commented on HADOOP-7455:
-----------------------------------------

> I think the method name "monitor" could be more descriptive. Perhaps 
> something like "getAvailabilityState"?
I am just trying to model it on OCF, where monitor is a way to see if the 
service is running/stopped. I did think of returning void when the service is 
healthy. But returning state seemed better.

> set of possible values of ServiceState might be too restrictive?
What other values you would add? We could add more later.

> ServiceAvailabilityException
Note that this is not just availability related. In the interface, I was 
looking at returning success/error. Both indicated through exit codes. But I 
wanted to avoid exit codes and use more descriptive exceptions. 


> Introduce HA Service Protocol Interface
> ---------------------------------------
>
>                 Key: HADOOP-7455
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7455
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: util
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>         Attachments: HADOOP-7455.1.patch, HDFS-7454.patch
>
>
> This jira introduces a protocol interface to be implemented by services that 
> provide HA functionality.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to