Skip to content

Commit

Permalink
sprint-1 - Moved cache configuration to configuration package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitiry Setrakyan committed Feb 6, 2015
1 parent 6b46a52 commit dac60c3
Show file tree
Hide file tree
Showing 253 changed files with 246 additions and 304 deletions.
6 changes: 3 additions & 3 deletions config/fabric/default-config.xml
Expand Up @@ -40,23 +40,23 @@
<!--
Local cache configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="partitioned"/>
<property name="cacheMode" value="PARTITIONED"/>
</bean>

<!--
Replicated cache configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="replicated"/>
<property name="cacheMode" value="REPLICATED"/>
</bean>

<!--
Partitioned cache configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="local"/>
<property name="cacheMode" value="LOCAL"/>
</bean>
Expand Down
8 changes: 4 additions & 4 deletions config/hadoop/default-config.xml
Expand Up @@ -64,7 +64,7 @@
<!--
Abstract cache configuration for GGFS file data to be used as a template.
-->
<bean id="dataCacheCfgBase" class="org.apache.ignite.cache.CacheConfiguration" abstract="true">
<bean id="dataCacheCfgBase" class="org.apache.ignite.configuration.CacheConfiguration" abstract="true">
<property name="cacheMode" value="PARTITIONED"/>
<property name="atomicityMode" value="TRANSACTIONAL"/>
<property name="writeSynchronizationMode" value="FULL_SYNC"/>
Expand All @@ -80,7 +80,7 @@
<!--
Abstract cache configuration for GGFS metadata to be used as a template.
-->
<bean id="metaCacheCfgBase" class="org.apache.ignite.cache.CacheConfiguration" abstract="true">
<bean id="metaCacheCfgBase" class="org.apache.ignite.configuration.CacheConfiguration" abstract="true">
<property name="cacheMode" value="REPLICATED"/>
<property name="atomicityMode" value="TRANSACTIONAL"/>
<property name="writeSynchronizationMode" value="FULL_SYNC"/>
Expand Down Expand Up @@ -135,12 +135,12 @@
<property name="cacheConfiguration">
<list>
<!-- File system metadata cache. -->
<bean class="org.apache.ignite.cache.CacheConfiguration" parent="metaCacheCfgBase">
<bean class="org.apache.ignite.configuration.CacheConfiguration" parent="metaCacheCfgBase">
<property name="name" value="ggfs-meta"/>
</bean>

<!-- File system files data cache. -->
<bean class="org.apache.ignite.cache.CacheConfiguration" parent="dataCacheCfgBase">
<bean class="org.apache.ignite.configuration.CacheConfiguration" parent="dataCacheCfgBase">
<property name="name" value="ggfs-data"/>
</bean>
</list>
Expand Down
2 changes: 1 addition & 1 deletion examples/config/example-cache.xml
Expand Up @@ -126,7 +126,7 @@
</bean>

<!-- Template for all example cache configurations. -->
<bean id="cache-template" abstract="true" class="org.apache.ignite.cache.CacheConfiguration">
<bean id="cache-template" abstract="true" class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Initial cache size. -->
<property name="startSize" value="3000000"/>

Expand Down
4 changes: 2 additions & 2 deletions examples/config/filesystem/example-ignitefs.xml
Expand Up @@ -113,7 +113,7 @@

<property name="cacheConfiguration">
<list>
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="ignitefs-data"/>
<property name="cacheMode" value="PARTITIONED"/>
<property name="atomicityMode" value="TRANSACTIONAL"/>
Expand All @@ -129,7 +129,7 @@
</property>
</bean>

<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="ignitefs-meta"/>
<property name="cacheMode" value="REPLICATED"/>
<property name="atomicityMode" value="TRANSACTIONAL"/>
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.ignite.examples.datagrid.store;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.cache.store.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.examples.datagrid.store.dummy.*;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.ignite.examples.misc.client.memcache;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.cache.query.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.marshaller.optimized.*;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.ignite.client;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.cache.affinity.*;
import org.apache.ignite.client.balancer.*;
import org.apache.ignite.client.impl.*;
Expand Down
Expand Up @@ -17,7 +17,6 @@

package org.apache.ignite.client;

import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.ignite.internal.processors.rest;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.compute.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.*;
Expand Down
Expand Up @@ -19,7 +19,6 @@

import junit.framework.*;
import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.ignite.internal.processors.rest;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.client.*;
import org.apache.ignite.compute.*;
import org.apache.ignite.configuration.*;
Expand Down
Expand Up @@ -17,7 +17,6 @@

package org.apache.ignite.jdbc;

import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
Expand Down
Expand Up @@ -17,7 +17,6 @@

package org.apache.ignite.jdbc;

import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
Expand Down
6 changes: 3 additions & 3 deletions modules/clients/src/test/resources/spring-cache.xml
Expand Up @@ -62,7 +62,7 @@
<!--
Partitioned cache example configuration (Transactional mode).
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="partitioned"/>

<property name="cacheMode" value="PARTITIONED"/>
Expand Down Expand Up @@ -111,7 +111,7 @@
<!--
Replicated cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="replicated"/>

<property name="atomicityMode" value="TRANSACTIONAL"/>
Expand All @@ -136,7 +136,7 @@
<!--
Local cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'local'. -->
<property name="name" value="local"/>

Expand Down
10 changes: 5 additions & 5 deletions modules/clients/src/test/resources/spring-server-node.xml
Expand Up @@ -113,7 +113,7 @@
<!--
Local cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is null. -->
<!--<property name="name"><null/></property>-->

Expand All @@ -126,7 +126,7 @@
<!--
Partitioned cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'partitioned'. -->
<property name="name" value="partitioned"/>

Expand Down Expand Up @@ -209,7 +209,7 @@
<!--
Local cache with store.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="local.store"/>

<property name="cacheMode" value="LOCAL"/>
Expand All @@ -226,7 +226,7 @@
<!--
Replicated cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'replicated'. -->
<property name="name" value="replicated"/>

Expand All @@ -241,7 +241,7 @@
<!--
Replicated cache with in-memory store enabled.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'replicated.store'. -->
<property name="name" value="replicated.store"/>

Expand Down
8 changes: 4 additions & 4 deletions modules/clients/src/test/resources/spring-server-ssl-node.xml
Expand Up @@ -97,7 +97,7 @@
<!--
Local cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is null. -->
<!--<property name="name"><null/></property>-->

Expand All @@ -110,7 +110,7 @@
<!--
Partitioned cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'partitioned'. -->
<property name="name" value="partitioned"/>

Expand Down Expand Up @@ -193,7 +193,7 @@
<!--
Replicated cache example configuration.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'replicated'. -->
<property name="name" value="replicated"/>

Expand All @@ -208,7 +208,7 @@
<!--
Replicated cache with in-memory store enabled.
-->
<bean class="org.apache.ignite.cache.CacheConfiguration">
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<!-- Cache name is 'replicated.store'. -->
<property name="name" value="replicated.store"/>

Expand Down
6 changes: 3 additions & 3 deletions modules/core/src/main/java/org/apache/ignite/IgniteCache.java
Expand Up @@ -214,7 +214,7 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K, V>, IgniteAsyncS
* that entry will be evicted only if it's not used (not
* participating in any locks or transactions).
* <p>
* If {@link CacheConfiguration#isSwapEnabled()} is set to {@code true} and
* If {@link org.apache.ignite.configuration.CacheConfiguration#isSwapEnabled()} is set to {@code true} and
* {@link org.apache.ignite.internal.processors.cache.CacheFlag#SKIP_SWAP} is not enabled, the evicted entry will
* be swapped to offheap, and then to disk.
* <h2 class="header">Cache Flags</h2>
Expand Down Expand Up @@ -261,7 +261,7 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K, V>, IgniteAsyncS
* Clears an entry from this cache and swap storage only if the entry
* is not currently locked, and is not participating in a transaction.
* <p>
* If {@link CacheConfiguration#isSwapEnabled()} is set to {@code true} and
* If {@link org.apache.ignite.configuration.CacheConfiguration#isSwapEnabled()} is set to {@code true} and
* {@link org.apache.ignite.internal.processors.cache.CacheFlag#SKIP_SWAP} is not enabled, the evicted entries will
* also be cleared from swap.
* <p>
Expand Down Expand Up @@ -341,7 +341,7 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K, V>, IgniteAsyncS
* </pre>
* <p>
* Note that this method makes sense only if cache is working in portable mode
* ({@link CacheConfiguration#isPortableEnabled()} returns {@code true}. If not,
* ({@link org.apache.ignite.configuration.CacheConfiguration#isPortableEnabled()} returns {@code true}. If not,
* this method is no-op and will return current projection.
*
* @return Projection for portable objects.
Expand Down
Expand Up @@ -17,7 +17,6 @@

package org.apache.ignite;

import org.apache.ignite.cache.*;
import org.apache.ignite.portables.*;
import org.jetbrains.annotations.*;

Expand Down Expand Up @@ -254,7 +253,7 @@
* or for a specific type via {@link org.apache.ignite.portables.PortableTypeConfiguration} instance.
* <h1 class="header">Query Indexing</h1>
* Portable objects can be indexed for querying by specifying index fields in
* {@link org.apache.ignite.cache.CacheTypeMetadata} inside of specific {@link CacheConfiguration} instance,
* {@link org.apache.ignite.cache.CacheTypeMetadata} inside of specific {@link org.apache.ignite.configuration.CacheConfiguration} instance,
* like so:
* <pre name=code class=xml>
* ...
Expand Down
Expand Up @@ -17,7 +17,6 @@

package org.apache.ignite;

import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.transactions.*;
import org.jetbrains.annotations.*;
Expand Down
Expand Up @@ -26,7 +26,7 @@
* used whenever transactions and explicit locking are not needed. Note that in {@link #ATOMIC}
* mode cache will still maintain full data consistency across all cache nodes.
* <p>
* Cache atomicity may be set via {@link CacheConfiguration#getAtomicityMode()}
* Cache atomicity may be set via {@link org.apache.ignite.configuration.CacheConfiguration#getAtomicityMode()}
* configuration property.
*/
public enum CacheAtomicityMode {
Expand Down
Expand Up @@ -22,7 +22,7 @@
/**
* This enum defines mode in which partitioned cache operates.
* <p>
* Partitioned distribution mode can be configured via {@link CacheConfiguration#getDistributionMode()}
* Partitioned distribution mode can be configured via {@link org.apache.ignite.configuration.CacheConfiguration#getDistributionMode()}
* configuration property.
*/
public enum CacheDistributionMode {
Expand All @@ -37,14 +37,14 @@ public enum CacheDistributionMode {
* recently accessed keys in a smaller near cache. Amount of recently accessed keys to cache is
* controlled by near eviction policy.
*
* @see CacheConfiguration#getNearEvictionPolicy()
* @see org.apache.ignite.configuration.CacheConfiguration#getNearEvictionPolicy()
*/
NEAR_ONLY,

/**
* Mode in which local node may store primary and/or backup keys, and also will cache recently accessed keys.
* Amount of recently accessed keys to cache is controlled by near eviction policy.
* @see CacheConfiguration#getNearEvictionPolicy()
* @see org.apache.ignite.configuration.CacheConfiguration#getNearEvictionPolicy()
*/
NEAR_PARTITIONED,

Expand Down
Expand Up @@ -26,7 +26,7 @@
* operations. The {@code onBefore} callbacks can also be used to change the values
* stored in cache or preventing entries from being removed from cache.
* <p>
* Cache interceptor is configured via {@link CacheConfiguration#getInterceptor()}
* Cache interceptor is configured via {@link org.apache.ignite.configuration.CacheConfiguration#getInterceptor()}
* configuration property.
* <p>
* Any grid resource from {@code org.apache.ignite.resources} package can be injected
Expand Down
Expand Up @@ -306,7 +306,7 @@ public interface CacheMetrics {
* <p/>
* If this value is {@code 0}, then flush is performed only on time-elapsing basis. However,
* when this value is {@code 0}, the cache critical size is set to
* {@link CacheConfiguration#DFLT_WRITE_BEHIND_CRITICAL_SIZE}
* {@link org.apache.ignite.configuration.CacheConfiguration#DFLT_WRITE_BEHIND_CRITICAL_SIZE}
*
* @return Buffer size that triggers flush procedure.
*/
Expand Down
Expand Up @@ -20,7 +20,7 @@
import org.jetbrains.annotations.*;

/**
* Enumeration of all supported caching modes. Cache mode is specified in {@link CacheConfiguration}
* Enumeration of all supported caching modes. Cache mode is specified in {@link org.apache.ignite.configuration.CacheConfiguration}
* and cannot be changed after cache has started.
*/
public enum CacheMode {
Expand Down Expand Up @@ -53,7 +53,7 @@ public enum CacheMode {
* <p>
* Note that partitioned cache is always fronted by local
* {@code 'near'} cache which stores most recent data. You
* can configure the size of near cache via {@link CacheConfiguration#getNearEvictionPolicy()}
* can configure the size of near cache via {@link org.apache.ignite.configuration.CacheConfiguration#getNearEvictionPolicy()}
* configuration property.
*/
PARTITIONED;
Expand Down

0 comments on commit dac60c3

Please sign in to comment.