Skip to content

Commit

Permalink
ignite-2065: portable -> binary renaming (methods, javadoc and etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutakGG committed Dec 11, 2015
1 parent 1f2af31 commit 10b83fb
Show file tree
Hide file tree
Showing 214 changed files with 1,588 additions and 1,610 deletions.
Expand Up @@ -27,20 +27,20 @@
public class CacheClientBinaryExampleTest extends GridAbstractExamplesTest { public class CacheClientBinaryExampleTest extends GridAbstractExamplesTest {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override protected String defaultConfig() { @Override protected String defaultConfig() {
return "examples/config/portable/example-ignite-portable.xml"; return "examples/config/binary/example-ignite-binary.xml";
} }


/** /**
* @throws Exception If failed. * @throws Exception If failed.
*/ */
public void testPortablePutGetExample() throws Exception { public void testBinaryPutGetExample() throws Exception {
CacheClientBinaryPutGetExample.main(new String[] {}); CacheClientBinaryPutGetExample.main(new String[] {});
} }


/** /**
* @throws Exception If failed. * @throws Exception If failed.
*/ */
public void testPortableQueryExample() throws Exception { public void testBinaryQueryExample() throws Exception {
CacheClientBinaryQueryExample.main(new String[] {}); CacheClientBinaryQueryExample.main(new String[] {});
} }
} }
Expand Up @@ -25,13 +25,13 @@
public class ComputeClientBinaryExampleTest extends GridAbstractExamplesTest { public class ComputeClientBinaryExampleTest extends GridAbstractExamplesTest {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override protected String defaultConfig() { @Override protected String defaultConfig() {
return "examples/config/portable/example-ignite-portable.xml"; return "examples/config/binary/example-ignite-binary.xml";
} }


/** /**
* @throws Exception If failed. * @throws Exception If failed.
*/ */
public void testPortableTaskExecutionExample() throws Exception { public void testBinaryTaskExecutionExample() throws Exception {
ComputeClientBinaryTaskExecutionExample.main(new String[] {}); ComputeClientBinaryTaskExecutionExample.main(new String[] {});
} }
} }
Expand Up @@ -88,7 +88,7 @@ public static TestSuite suite() throws Exception {
suite.addTest(new TestSuite(MemcacheRestExamplesMultiNodeSelfTest.class)); suite.addTest(new TestSuite(MemcacheRestExamplesMultiNodeSelfTest.class));
suite.addTest(new TestSuite(MonteCarloExamplesMultiNodeSelfTest.class)); suite.addTest(new TestSuite(MonteCarloExamplesMultiNodeSelfTest.class));


// Portable. // Binary.
suite.addTest(new TestSuite(CacheClientBinaryExampleTest.class)); suite.addTest(new TestSuite(CacheClientBinaryExampleTest.class));
suite.addTest(new TestSuite(ComputeClientBinaryExampleTest.class)); suite.addTest(new TestSuite(ComputeClientBinaryExampleTest.class));


Expand Down
Expand Up @@ -26,7 +26,7 @@
import org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler; import org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler;
import org.apache.ignite.internal.util.typedef.F; import org.apache.ignite.internal.util.typedef.F;


import static org.apache.ignite.internal.client.GridClientCacheFlag.KEEP_PORTABLES; import static org.apache.ignite.internal.client.GridClientCacheFlag.KEEP_BINARIES;


/** /**
* Tests conversions between GridClientCacheFlag. * Tests conversions between GridClientCacheFlag.
Expand All @@ -37,7 +37,7 @@ public class ClientCacheFlagsCodecTest extends TestCase {
*/ */
public void testEncodingDecodingFullness() { public void testEncodingDecodingFullness() {
for (GridClientCacheFlag f : GridClientCacheFlag.values()) { for (GridClientCacheFlag f : GridClientCacheFlag.values()) {
if (f == KEEP_PORTABLES) if (f == KEEP_BINARIES)
continue; continue;


int bits = GridClientConnection.encodeCacheFlags(Collections.singleton(f)); int bits = GridClientConnection.encodeCacheFlags(Collections.singleton(f));
Expand Down Expand Up @@ -71,8 +71,8 @@ private void doTestGroup(GridClientCacheFlag... flags) {


boolean out = GridCacheCommandHandler.parseCacheFlags(bits); boolean out = GridCacheCommandHandler.parseCacheFlags(bits);


int length = flagSet.contains(KEEP_PORTABLES) ? flagSet.size() - 1 : flagSet.size(); int length = flagSet.contains(KEEP_BINARIES) ? flagSet.size() - 1 : flagSet.size();


assertEquals(length > 0, out); assertEquals(length > 0, out);
} }
} }
8 changes: 4 additions & 4 deletions modules/clients/src/test/resources/spring-server-node.xml
Expand Up @@ -123,12 +123,12 @@
</bean> </bean>
</property> </property>


<property name="portableEnabled" value="true"/> <property name="binaryEnabled" value="true"/>


<property name="typeMetadata"> <property name="typeMetadata">
<list> <list>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridPortablePerson"/> <property name="valueType" value="GridBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand All @@ -146,7 +146,7 @@
</property> </property>
</bean> </bean>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridImplicitPortablePerson"/> <property name="valueType" value="GridImplicitBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand All @@ -159,7 +159,7 @@
</property> </property>
</bean> </bean>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridNoDefPortablePerson"/> <property name="valueType" value="GridNoDefBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand Down
8 changes: 4 additions & 4 deletions modules/clients/src/test/resources/spring-server-ssl-node.xml
Expand Up @@ -125,12 +125,12 @@
</bean> </bean>
</property> </property>


<property name="portableEnabled" value="true"/> <property name="binaryEnabled" value="true"/>


<property name="typeMetadata"> <property name="typeMetadata">
<list> <list>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridPortablePerson"/> <property name="valueType" value="GridBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand All @@ -148,7 +148,7 @@
</property> </property>
</bean> </bean>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridImplicitPortablePerson"/> <property name="valueType" value="GridImplicitBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand All @@ -161,7 +161,7 @@
</property> </property>
</bean> </bean>
<bean class="org.apache.ignite.cache.CacheTypeMetadata"> <bean class="org.apache.ignite.cache.CacheTypeMetadata">
<property name="valueType" value="GridNoDefPortablePerson"/> <property name="valueType" value="GridNoDefBinaryPerson"/>
<property name="ascendingFields"> <property name="ascendingFields">
<map> <map>
<entry key="age" value="java.lang.Integer"/> <entry key="age" value="java.lang.Integer"/>
Expand Down
4 changes: 2 additions & 2 deletions modules/core/pom.xml
Expand Up @@ -36,8 +36,8 @@


<repositories> <repositories>
<repository> <repository>
<id>ignite-portables-test-repo</id> <id>ignite-binaries-test-repo</id>
<url>file://${basedir}/src/test/portables/repo</url> <url>file://${basedir}/src/test/binaries/repo</url>
</repository> </repository>
</repositories> </repositories>


Expand Down

0 comments on commit 10b83fb

Please sign in to comment.