Skip to content

Commit

Permalink
IGNITE-61 - Direct marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Kulichenko committed Feb 9, 2015
1 parent f62ee2d commit 1c19aa4
Show file tree
Hide file tree
Showing 23 changed files with 620 additions and 591 deletions.
Expand Up @@ -20,7 +20,6 @@
import org.apache.ignite.*;
import org.apache.ignite.cluster.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.direct.*;
import org.apache.ignite.plugin.*;
import org.apache.ignite.spi.*;

Expand Down Expand Up @@ -93,9 +92,4 @@ public GridPluginContext(GridKernalContext ctx, PluginConfiguration cfg, IgniteC
@Override public void deregisterPorts(Class<?> cls) {
ctx.ports().deregisterPorts(cls);
}

/** {@inheritDoc} */
@Override public byte registerMessageProducer(GridTcpCommunicationMessageProducer producer) {
return ctx.io().registerMessageProducer(producer);
}
}
Expand Up @@ -768,8 +768,6 @@ public void start(final IgniteConfiguration cfg, ExecutorService utilityCachePoo
provider.start(ctx.plugins().pluginContextForProvider(provider), attrs);
}

ctx.io().initMessageFactory();

if (ctx.isEnterprise()) {
security = new GridSecurityImpl(ctx);
portables = new GridPortablesImpl(ctx);
Expand Down
Expand Up @@ -259,7 +259,7 @@ private static Type type(Class<?> cls) {
}

/** */
private final GridTcpMessageFactory msgFactory;
private final MessageFactory msgFactory;

/** */
private ByteBuffer buf;
Expand Down Expand Up @@ -318,7 +318,7 @@ private static Type type(Class<?> cls) {
/**
* @param msgFactory Message factory.
*/
public DirectByteBufferStream(@Nullable GridTcpMessageFactory msgFactory) {
public DirectByteBufferStream(@Nullable MessageFactory msgFactory) {
this.msgFactory = msgFactory;
}

Expand Down
Expand Up @@ -37,7 +37,7 @@ public class DirectMessageReader implements MessageReader {
/**
* @param msgFactory Message factory.
*/
public DirectMessageReader(GridTcpMessageFactory msgFactory) {
public DirectMessageReader(MessageFactory msgFactory) {
this.stream = new DirectByteBufferStream(msgFactory);
}

Expand Down

0 comments on commit 1c19aa4

Please sign in to comment.