ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Konstantinov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2214) Incorrect java-code for near configuration
Date Mon, 21 Dec 2015 08:08:46 GMT
Pavel Konstantinov created IGNITE-2214:
------------------------------------------

             Summary: Incorrect java-code for near configuration
                 Key: IGNITE-2214
                 URL: https://issues.apache.org/jira/browse/IGNITE-2214
             Project: Ignite
          Issue Type: Sub-task
            Reporter: Pavel Konstantinov
            Assignee: Alexey Kuznetsov


Here is the currently generated java-code:
{code}
 cache1.setNearConfiguration(new NearCacheConfiguration());
 LruEvictionPolicy nearEvictionPolicy = new LruEvictionPolicy();
 nearEvictionPolicy.setMaxSize(10);
 nearConfiguration.setNearEvictionPolicy(nearEvictionPolicy);
{code}

'nearConfiguration' variable is undefined.
The right code should be:
{code}
 nearConfiguration = new NearCacheConfiguration();
 LruEvictionPolicy nearEvictionPolicy = new LruEvictionPolicy();
 nearEvictionPolicy.setMaxSize(10);
 nearConfiguration.setNearEvictionPolicy(nearEvictionPolicy);
 cache1.setNearConfiguration(nearConfiguration);
{code}



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

Mime
View raw message