ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ershov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-2031) Add the possibility to adress local ignite instance inside lambda.
Date Tue, 01 Dec 2015 15:53:10 GMT

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

Vladimir Ershov commented on IGNITE-2031:
-----------------------------------------

Will be implemented under  IGNITE-10

> Add the possibility to adress local ignite instance inside lambda.
> ------------------------------------------------------------------
>
>                 Key: IGNITE-2031
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2031
>             Project: Ignite
>          Issue Type: Improvement
>    Affects Versions: 1.6
>            Reporter: Vladimir Ershov
>            Assignee: Vladimir Ershov
>            Priority: Minor
>              Labels: newbie
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Ignition.currentIgnite method is needed for case, when there is no Ignite instance available
around the closure. 
> So, this ticket is aimed to support syntax like this:
> {code:java}
>         cfg.setLifecycleBeans((LifecycleEventType evt)  -> {
>                 if (evt == LifecycleEventType.AFTER_NODE_START) {
>                     log.info("Load cache: " + Ignition.currentIgnite().name());
>                     Ignition.currentIgnite().cache(null).loadCache(null, 0);
>                     log.info("Cache loaded: " + Ignition.currentIgnite().name());
>                 }
>         });
> {code}
> Plus tests.



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

Mime
View raw message