You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "William Guo (JIRA)" <ji...@apache.org> on 2018/12/01 06:57:00 UTC

[jira] [Updated] (GRIFFIN-200) Lifecycle hooks support

     [ https://issues.apache.org/jira/browse/GRIFFIN-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Guo updated GRIFFIN-200:
--------------------------------
    Fix Version/s: 0.4.0-incubating

> Lifecycle hooks support
> -----------------------
>
>                 Key: GRIFFIN-200
>                 URL: https://issues.apache.org/jira/browse/GRIFFIN-200
>             Project: Griffin (Incubating)
>          Issue Type: New Feature
>            Reporter: Nikolay Sokolov
>            Assignee: Eugene
>            Priority: Minor
>             Fix For: 0.4.0-incubating
>
>
> In some environments, users might want to perform certain actions before/after job is created, before/after job is activated, before/after job is deleted, and so on.
> To fullfill that need, some hook plugin mechanism can be provided, similar to what Hive is doing. User would place respective jar files into Service module classpath at deployment time, and would specify class names using some annotation or using property listing class names (particular mechanism is yet to be determined).
> Proposed signature:
> {code:none}
> public interface GriffinHook {
>     void onEvent(GriffinHookEvent event) throws Exception;
> }
> public interface GriffinHookEvent { ... }
> public interface JobEvent implements GriffinHookEvent { ... } 
> public class BeforeJobCreated implements JobEvent { ... }
> public class AfterJobCreated implements JobEvent { ... }
> public class BeforeJobDeleted implements JobEvent { ... }
> public class AfterJobDeleted implements JobEvent { ... }
> public interface JobInstanceEvent implements GriffinHookEvent { ... }
> public class BeforeJobInstanceStart implements JobInstanceEvent { ... }
> public class AfterJobInstanceEnd implements JobInstanceEvent { ... }
> {code}



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