[ 
https://issues.apache.org/jira/browse/HDDS-1217?focusedWorklogId=214978&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-214978
 ]

ASF GitHub Bot logged work on HDDS-1217:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Mar/19 19:26
            Start Date: 18/Mar/19 19:26
    Worklog Time Spent: 10m 
      Work Description: bharatviswa504 commented on issue #558: HDDS-1217. 
Refactor ChillMode rules and chillmode manager.
URL: https://github.com/apache/hadoop/pull/558#issuecomment-474065559
 
 
   > **ChillModeExitRule**
   > We can mandate the event handler adding logic of each and every 
ChillModeExitRule implementation by introducing an abstract `abstract 
TypedEvent<T> getEventType()` method in `ChillModeExitRule` class. Then we can 
make a call to this method from `ChillModeExitRule` constructor. This will 
mandate each and every rule to provide it's EventType and we can add its event 
handler in `ChillModeExitRule`.
   > 
   > ```
   > public ChillModeExitRule(SCMChillModeManager chillModeManager,
   >     String ruleName, EventQueue eventQueue) {
   >   this.chillModeManager = chillModeManager;
   >   this.ruleName = ruleName;
   >   eventQueue.addHandler(getEventType(), this);
   > }
   > ```
   
   Done
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 214978)
    Time Spent: 4h 10m  (was: 4h)

> Refactor ChillMode rules and chillmode manager
> ----------------------------------------------
>
>                 Key: HDDS-1217
>                 URL: https://issues.apache.org/jira/browse/HDDS-1217
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> # Make the chillmodeExitRule abstract class and move common logic for all 
> rules into this.
>  # Update test's for chill mode accordingly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to