[ https://issues.apache.org/jira/browse/TWILL-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097042#comment-16097042 ]
Chengfeng Mao commented on TWILL-240: ------------------------------------- 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 > > 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)