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

Chengfeng Mao edited comment on TWILL-240 at 7/26/17 12:37 AM:
---------------------------------------------------------------

Proposing to add the following methods to {{EventHandler}} class:
# {{started(String twillAppName, RunId runId)}}
#* at the end of AM {{doStart()}} method
# {{containerLaunched(String twillAppName, RunId runId, int instanceId, String 
containerId)}}
#* when a container is launched to run a runnable
# {{containerStopped(String twillAppName, RunId runId, int instanceId, String 
containerId)}}
#* when a container is stopped
# {{completed(String twillAppName, RunId runId)}}
#* when all containers complete with exit code 0
# {{killed(String twillAppName, RunId runId)}}
#* when the TwillApp is stopped by a stop message
# {{aborted(String twillAppName, RunId runId)}}
#* when the TwillApp is aborted because of provision timeout


was (Author: cmao):
Proposing to add the following methods to {{EventHandler}} class:
# {{started(String twillAppName, RunId runId)}}
#* at the end of AM {{doStart()}} method
# {{containerLaunched(String twillAppName, RunId runId, int instanceId)}}
#* when a container is launched to run a runnable
# {{completed(String twillAppName, RunId runId)}}
#* when all containers complete with exit code 0
# {{killed(String twillAppName, RunId runId)}}
#* when the TwillApp is stopped by a stop message

> Allow running application specific code in Application Master 
> --------------------------------------------------------------
>
>                 Key: TWILL-240
>                 URL: https://issues.apache.org/jira/browse/TWILL-240
>             Project: Apache Twill
>          Issue Type: New Feature
>            Reporter: Chengfeng Mao
>            Assignee: Chengfeng Mao
>
> Application Master should be able to run application specific code. For 
> instance, an app can attach a custom handler to the application lifecycle. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to