Package io.s4.emitter

Examples of io.s4.emitter.CommLayerEmitter$PassThroughSerializer


   @Test
   public void testCloneAndInitialize() {
       MockPE prototype = new MockPE();
       prototype.setInitMethod("testInitialize");
      
       PrototypeWrapper prototypeWrapper = new PrototypeWrapper(prototype, new WallClock());

       assertEquals(0, prototype.getInitializeCount());
       MockPE instance = (MockPE)prototypeWrapper.getPE("asd");
       assertNotNull(instance);
      
View Full Code Here


        EventEmitter emitter = null;

        SerializerDeserializer serDeser = new KryoSerDeser();

        CommLayerEmitter clEmitter = new CommLayerEmitter();
        clEmitter.setAppName(senderApplicationName);
        clEmitter.setListenerAppName(listenerApplicationName);
        clEmitter.setClusterManagerAddress(clusterManagerAddress);
        clEmitter.setSenderId(String.valueOf(System.currentTimeMillis() / 1000));
        clEmitter.setSerDeser(serDeser);
        clEmitter.init();
        emitter = clEmitter;

        long endTime = 0;
        if (runForTime > 0) {
            endTime = System.currentTimeMillis() + (runForTime * 1000);
 
View Full Code Here

    private CommLayerEmitter eventEmitter;

    public EventGenerator() {
        SerializerDeserializer serDeser = new KryoSerDeser();

        eventEmitter = new CommLayerEmitter();
        eventEmitter.setAppName("s4");
        eventEmitter.setListenerAppName("s4");
        eventEmitter.setClusterManagerAddress("localhost");
        eventEmitter
                .setSenderId(String.valueOf(System.currentTimeMillis() / 1000));
View Full Code Here

TOP

Related Classes of io.s4.emitter.CommLayerEmitter$PassThroughSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.