/** * @param ctx Grid kernal context. */ @SuppressWarnings("deprecation") public GridIoManager(GridKernalContext ctx) { super(ctx, ctx.config().getCommunicationSpi()); pools = ctx.pools(); assert pools != null; locNodeId = ctx.localNodeId(); marsh = ctx.config().getMarshaller(); synchronized (sysLsnrsMux) { sysLsnrs = new GridMessageListener[GridTopic.values().length]; } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByGridUuidAndUUID() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_GRID_UUID, AN_UUID); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByGridUuidAndLong() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_GRID_UUID, A_LONG); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByStringAndUUIDAndLong() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_STRING, AN_UUID, A_LONG); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByString() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_STRING); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByGridUuid() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_GRID_UUID); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByStringAndIntAndLong() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_STRING, AN_INT, A_LONG); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByStrinAndLong() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_STRING, A_LONG); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } }
/** * @throws Exception If failed. */ @Test public void testSerializationTopicCreatedByStringAndUUIDAndIntAndLong() throws Exception { for (Marshaller marsh : getMarshallers()) { info("Test GridTopic externalization [marshaller=" + marsh + ']'); for (GridTopic topic : GridTopic.values()) { Externalizable msgOut = (Externalizable)topic.topic(A_STRING, AN_UUID, AN_INT, A_LONG); assertEquals(msgOut, GridTestIoUtils.externalize(msgOut, marsh)); } } } }
/** * @param ctx Grid kernal context. */ @SuppressWarnings("deprecation") public GridIoManager(GridKernalContext ctx) { super(ctx, ctx.config().getCommunicationSpi()); pools = ctx.pools(); assert pools != null; locNodeId = ctx.localNodeId(); marsh = ctx.config().getMarshaller(); synchronized (sysLsnrsMux) { sysLsnrs = new GridMessageListener[GridTopic.values().length]; } }