Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sboikov committed Jan 23, 2015
1 parent 4b25edc commit d0e6cac
Show file tree
Hide file tree
Showing 24 changed files with 38 additions and 40 deletions.
Expand Up @@ -29,7 +29,7 @@
<description>Main Spring file for grid configuration.</description>

<!-- Example of bean definition with given configuration. -->
<bean id="mySpringBean" class="org.gridgain.grid.GridSpringBean">
<bean id="mySpringBean" class="org.apache.ignite.GridSpringBean">
<property name="configuration">
<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<!-- Set to local host address just for examples. -->
Expand Down
Expand Up @@ -26,7 +26,6 @@
import org.apache.ignite.internal.processors.cache.*;
import org.apache.ignite.internal.processors.fs.*;
import org.apache.ignite.lang.*;
import org.gridgain.grid.*;
import org.apache.ignite.hadoop.*;
import org.apache.ignite.internal.processors.hadoop.planner.*;
import org.apache.ignite.internal.processors.interop.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.kernal;
package org.apache.ignite.internal.processors.schedule;

import org.apache.ignite.*;
import org.apache.ignite.lang.*;
Expand Down
Expand Up @@ -18,7 +18,7 @@
package org.apache.ignite.testsuites.bamboo;

import junit.framework.*;
import org.gridgain.grid.kernal.*;
import org.apache.ignite.internal.processors.schedule.*;

/**
* Scheduler tests.
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.logger.slf4j;
package org.apache.ignite.logger.slf4j;

import org.apache.ignite.*;
import org.jetbrains.annotations.*;
Expand All @@ -28,7 +28,7 @@
* Here is an example of configuring SLF4J logger in GridGain configuration Spring file:
* <pre name="code" class="xml">
* &lt;property name="gridLogger"&gt;
* &lt;bean class="org.gridgain.grid.logger.slf4j.GridSlf4jLogger"/&gt;
* &lt;bean class="org.apache.ignite.logger.slf4j.GridSlf4jLogger"/&gt;
* &lt;/property&gt;
* </pre>
* <p>
Expand Down
Expand Up @@ -15,9 +15,8 @@
* limitations under the License.
*/

package org.gridgain.grid;
package org.apache.ignite;

import org.apache.ignite.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.*;
import org.apache.ignite.internal.processors.resource.*;
Expand Down
Expand Up @@ -15,9 +15,8 @@
* limitations under the License.
*/

package org.gridgain.grid;
package org.apache.ignite;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
import org.apache.ignite.cluster.*;
import org.apache.ignite.configuration.*;
Expand Down Expand Up @@ -49,7 +48,7 @@
* <h1 class="header">Spring Configuration Example</h1>
* Here is a typical example of describing it in Spring file:
* <pre name="code" class="xml">
* &lt;bean id="mySpringBean" class="org.gridgain.grid.GridSpringBean"&gt;
* &lt;bean id="mySpringBean" class="org.apache.ignite.GridSpringBean"&gt;
* &lt;property name="configuration"&gt;
* &lt;bean id="grid.cfg" class="org.gridgain.grid.GridConfiguration"&gt;
* &lt;property name="gridName" value="mySpringGrid"/&gt;
Expand All @@ -59,7 +58,7 @@
* </pre>
* Or use default configuration:
* <pre name="code" class="xml">
* &lt;bean id="mySpringBean" class="org.gridgain.grid.GridSpringBean"/&gt;
* &lt;bean id="mySpringBean" class="org.apache.ignite.GridSpringBean"/&gt;
* </pre>
* <h1 class="header">Java Example</h1>
* Here is how you may access this bean from code:
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.cache.spring;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.cache.spring;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
Expand Down Expand Up @@ -62,7 +62,7 @@
* http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
* http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"&gt;
* &lt;-- Provide configuration file path. --&gt;
* &lt;bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringCacheManager"&gt;
* &lt;bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringCacheManager"&gt;
* &lt;property name="configurationPath" value="examples/config/spring-cache.xml"/&gt;
* &lt;/bean>
*
Expand All @@ -79,7 +79,7 @@
* http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
* http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"&gt;
* &lt;-- Provide configuration bean. --&gt;
* &lt;bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringCacheManager"&gt;
* &lt;bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringCacheManager"&gt;
* &lt;property name="configuration"&gt;
* &lt;bean id="gridCfg" class="org.gridgain.grid.GridConfiguration"&gt;
* ...
Expand All @@ -105,7 +105,7 @@
* http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
* http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"&gt;
* &lt;-- Provide Grid name. --&gt;
* &lt;bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringCacheManager"&gt;
* &lt;bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringCacheManager"&gt;
* &lt;property name="gridName" value="myGrid"/&gt;
* &lt;/bean>
*
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.cache.spring;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
Expand Down Expand Up @@ -62,7 +62,7 @@
* http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
* http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"&gt;
* &lt;-- Provide configuration file path --&gt;
* &lt;bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringCacheManager"&gt;
* &lt;bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringCacheManager"&gt;
* &lt;property name="dataCacheName" value="myDataCache"/&gt;
* &lt;/bean>
*
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.kernal;
package org.apache.ignite.internal;

import org.apache.ignite.*;
import org.apache.ignite.compute.*;
Expand All @@ -24,7 +24,6 @@
import org.apache.ignite.lifecycle.*;
import org.apache.ignite.resources.*;
import org.apache.ignite.spi.*;
import org.gridgain.grid.*;
import org.apache.ignite.spi.collision.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.internal.util.lang.*;
Expand Down Expand Up @@ -54,7 +53,7 @@

/**
* Tests for {@link org.apache.ignite.Ignition}.
* @see GridFactoryVmShutdownTest
* @see org.gridgain.grid.kernal.GridFactoryVmShutdownTest
*/
@SuppressWarnings("UnusedDeclaration")
@GridCommonTest(group = "NonDistributed Kernal Self")
Expand Down
Expand Up @@ -15,12 +15,12 @@
* limitations under the License.
*/

package org.gridgain.grid.kernal;
package org.apache.ignite.internal;

import org.apache.ignite.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.marshaller.*;
import org.apache.ignite.marshaller.optimized.*;
import org.gridgain.grid.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.p2p;
package org.apache.ignite.p2p;

import org.apache.ignite.*;
import org.apache.ignite.cache.*;
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

import org.apache.ignite.cache.*;
import org.apache.ignite.configuration.*;
Expand Down Expand Up @@ -75,7 +75,7 @@ public class GridSpringCacheManagerSelfTest extends GridCommonAbstractTest {

/** {@inheritDoc} */
@Override protected void beforeTest() throws Exception {
BeanFactory factory = new ClassPathXmlApplicationContext("org/gridgain/grid/cache/spring/spring-caching.xml");
BeanFactory factory = new ClassPathXmlApplicationContext("org/apache/ignite/spring/spring-caching.xml");

svc = (GridSpringCacheTestService)factory.getBean("testService");

Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

/**
* Complex key.
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

import org.springframework.cache.interceptor.*;

Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

import org.springframework.cache.annotation.*;

Expand Down
Expand Up @@ -15,9 +15,10 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

import org.apache.ignite.cache.*;
import org.apache.ignite.cache.spring.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
Expand Down Expand Up @@ -83,7 +84,7 @@ public class GridSpringDynamicCacheManagerSelfTest extends GridCommonAbstractTes
/** {@inheritDoc} */
@Override protected void beforeTest() throws Exception {
BeanFactory factory = new ClassPathXmlApplicationContext(
"org/gridgain/grid/cache/spring/spring-dynamic-caching.xml");
"org/apache/ignite/spring/spring-dynamic-caching.xml");

svc = (GridSpringDynamicCacheTestService)factory.getBean("testService");
mgr = (CacheManager)factory.getBean("cacheManager");
Expand Down
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.gridgain.grid.cache.spring;
package org.apache.ignite.spring;

import org.springframework.cache.annotation.*;

Expand Down
Expand Up @@ -26,19 +26,19 @@
<!--
Test service with cacheable methods.
-->
<bean id="testService" class="org.gridgain.grid.cache.spring.GridSpringCacheTestService"/>
<bean id="testService" class="org.apache.ignite.spring.GridSpringCacheTestService"/>

<!--
Cache manager.
-->
<bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringCacheManager">
<bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringCacheManager">
<property name="gridName" value="testGrid"/>
</bean>

<!--
Key generator.
-->
<bean id="keyGenerator" class="org.gridgain.grid.cache.spring.GridSpringCacheTestKeyGenerator"/>
<bean id="keyGenerator" class="org.apache.ignite.spring.GridSpringCacheTestKeyGenerator"/>

<!--
Enable annotation-driver configuration for caching.
Expand Down
Expand Up @@ -26,12 +26,12 @@
<!--
Test service with cacheable methods.
-->
<bean id="testService" class="org.gridgain.grid.cache.spring.GridSpringDynamicCacheTestService"/>
<bean id="testService" class="org.apache.ignite.spring.GridSpringDynamicCacheTestService"/>

<!--
Cache manager.
-->
<bean id="cacheManager" class="org.gridgain.grid.cache.spring.GridSpringDynamicCacheManager">
<bean id="cacheManager" class="org.apache.ignite.cache.spring.GridSpringDynamicCacheManager">
<property name="gridName" value="testGrid"/>
<property name="dataCacheName" value="data"/>
</bean>
Expand Down
Expand Up @@ -18,10 +18,11 @@
package org.apache.ignite.testsuites.bamboo;

import junit.framework.*;
import org.apache.ignite.internal.*;
import org.apache.ignite.p2p.*;
import org.apache.ignite.spring.*;
import org.apache.ignite.testsuites.*;
import org.gridgain.grid.cache.spring.*;
import org.gridgain.grid.kernal.*;
import org.gridgain.grid.p2p.*;

/**
* Spring tests.
Expand Down

0 comments on commit d0e6cac

Please sign in to comment.