use of org.apache.ignite.marshaller.jdk.JdkMarshaller in project ignite by apache.
the class CacheEntryProcessorNonSerializableTest method getConfiguration.
/** {@inheritDoc} */
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
((TcpDiscoverySpi) cfg.getDiscoverySpi()).setIpFinder(ipFinder);
((TcpCommunicationSpi) cfg.getCommunicationSpi()).setSharedMemoryPort(-1);
cfg.setClientMode(client);
//set custom marshaller to get expected exception
cfg.setMarshaller(new JdkMarshaller());
return cfg;
}
use of org.apache.ignite.marshaller.jdk.JdkMarshaller in project ignite by apache.
the class IgniteExternalizableAbstractTest method getMarshallers.
/**
* @return Marshallers.
*/
protected List<Marshaller> getMarshallers() throws IgniteCheckedException {
List<Marshaller> marshallers = new ArrayList<>();
BinaryMarshaller bin = createStandaloneBinaryMarshaller();
marshallers.add(new JdkMarshaller());
marshallers.add(bin);
return marshallers;
}
use of org.apache.ignite.marshaller.jdk.JdkMarshaller in project ignite by apache.
the class GridIoManagerSelfTest method beforeTest.
/** {@inheritDoc} */
@Override
protected void beforeTest() throws Exception {
ctx.config().setCommunicationSpi(new TcpCommunicationSpi());
ctx.config().setMarshaller(new JdkMarshaller());
// Turn off peer class loading to simplify mocking.
ctx.config().setPeerClassLoadingEnabled(false);
// Register local and remote nodes in discovery manager.
GridDiscoveryManager mockedDiscoveryMgr = Mockito.mock(GridDiscoveryManager.class);
when(mockedDiscoveryMgr.localNode()).thenReturn(locNode);
when(mockedDiscoveryMgr.remoteNodes()).thenReturn(F.<ClusterNode>asList(rmtNode));
ctx.add(mockedDiscoveryMgr);
}
use of org.apache.ignite.marshaller.jdk.JdkMarshaller in project ignite by apache.
the class GridCacheStoreManagerDeserializationTest method getConfiguration.
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override
protected IgniteConfiguration getConfiguration(final String igniteInstanceName) throws Exception {
IgniteConfiguration c = super.getConfiguration(igniteInstanceName);
if (igniteInstanceName != null && igniteInstanceName.toLowerCase().startsWith("binary"))
c.setMarshaller(new BinaryMarshaller());
else
c.setMarshaller(new JdkMarshaller());
TcpDiscoverySpi disco = new TcpDiscoverySpi();
disco.setIpFinder(IP_FINDER);
c.setDiscoverySpi(disco);
c.setCacheConfiguration(cacheConfiguration());
return c;
}
Aggregations