[jira] [Commented] (YARN-2338) service assemble so complex

2016-05-01 Thread Denis Bolshakov (JIRA)

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

Denis Bolshakov commented on YARN-2338:
---

[~djp] Could you please assign it to me?

> service assemble so complex
> ---
>
> Key: YARN-2338
> URL: https://issues.apache.org/jira/browse/YARN-2338
> Project: Hadoop YARN
>  Issue Type: Improvement
>Reporter: tangjunjie
>
>   See ResourceManager
> protected void serviceInit(Configuration configuration) throws Exception 
> So many service will assembe into resourcemanager.
> Use guice or other service assemble framework to refactor this complex code.



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

-
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org



[jira] [Commented] (YARN-2338) service assemble so complex

2015-05-01 Thread Junping Du (JIRA)

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

Junping Du commented on YARN-2338:
--

The idea here sounds good. Any volunteers for a outstanding patch? :)

> service assemble so complex
> ---
>
> Key: YARN-2338
> URL: https://issues.apache.org/jira/browse/YARN-2338
> Project: Hadoop YARN
>  Issue Type: Wish
>Reporter: tangjunjie
>
>   See ResourceManager
> protected void serviceInit(Configuration configuration) throws Exception 
> So many service will assembe into resourcemanager.
> Use guice or other service assemble framework to refactor this complex code.



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


[jira] [Commented] (YARN-2338) service assemble so complex

2014-07-23 Thread dingjiaqi (JIRA)

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

dingjiaqi commented on YARN-2338:
-

Hi,Tsuyoshi OZAWA. I agree with tangjunjie.Do you need to refactor it?

> service assemble so complex
> ---
>
> Key: YARN-2338
> URL: https://issues.apache.org/jira/browse/YARN-2338
> Project: Hadoop YARN
>  Issue Type: Wish
>Reporter: tangjunjie
>
>   See ResourceManager
> protected void serviceInit(Configuration configuration) throws Exception 
> So many service will assembe into resourcemanager.
> Use guice or other service assemble framework to refactor this complex code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (YARN-2338) service assemble so complex

2014-07-23 Thread tangjunjie (JIRA)

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

tangjunjie commented on YARN-2338:
--

Hello, Tsuyoshi OZAWA 
 I think service assembly should remove from resourcemanager because 
the main task for resourcemanager is alloct resource and so on.Consider use 
lightweight DI framwork like guice to refactor .Then, resourcemanager code will 
get rid of bad code smell. Use xml or annotation to display service assembley. 
For example,


 
..



I think test code will also benifit from this refactor. Because we can easily 
mock a service then inject for test.



> service assemble so complex
> ---
>
> Key: YARN-2338
> URL: https://issues.apache.org/jira/browse/YARN-2338
> Project: Hadoop YARN
>  Issue Type: Wish
>Reporter: tangjunjie
>
>   See ResourceManager
> protected void serviceInit(Configuration configuration) throws Exception 
> So many service will assembe into resourcemanager.
> Use guice or other service assemble framework to refactor this complex code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (YARN-2338) service assemble so complex

2014-07-23 Thread Tsuyoshi OZAWA (JIRA)

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

Tsuyoshi OZAWA commented on YARN-2338:
--

Hi, do you mean that we should use DI framework? What kind of refatoring are 
you planning to do?

> service assemble so complex
> ---
>
> Key: YARN-2338
> URL: https://issues.apache.org/jira/browse/YARN-2338
> Project: Hadoop YARN
>  Issue Type: Wish
>Reporter: tangjunjie
>
>   See ResourceManager
> protected void serviceInit(Configuration configuration) throws Exception 
> So many service will assembe into resourcemanager.
> Use guice or other service assemble framework to refactor this complex code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)