Examples of dispatch()


Examples of org.apache.cxf.ws.eventing.backend.notification.emitters.Emitter.dispatch()

        Server eventSinkServer = createEventSink(url);
        TestingEventSinkImpl.RECEIVED_FIRES.set(0);

        service.start();
        Emitter emitter = new EmitterImpl(service);
        emitter.dispatch(new FireEvent("Canada", 8));
        for (int i = 0; i < 10; i++) {
            if (TestingEventSinkImpl.RECEIVED_FIRES.get() == 3) {
                break;
            }
            try {
View Full Code Here

Examples of org.apache.cxf.ws.eventing.backend.notification.emitters.EmitterImpl.dispatch()

        Server eventSinkServer = createEventSink(url);
        TestingEventSinkImpl.RECEIVED_FIRES.set(0);

        service.start();
        Emitter emitter = new EmitterImpl(service);
        emitter.dispatch(new FireEvent("Canada", 8));
        for (int i = 0; i < 10; i++) {
            if (TestingEventSinkImpl.RECEIVED_FIRES.get() == 3) {
                break;
            }
            try {
View Full Code Here

Examples of org.apache.hama.ipc.GroomProtocol.dispatch()

        try {
          // dispatch() to the groom server
          GroomServerAction[] actions = new GroomServerAction[actionList.size()];
          actionList.toArray(actions);
          Directive d1 = new DispatchTasksDirective(actions);
          worker.dispatch(d1);
        } catch (IOException ioe) {
          LOG.error(
              "Fail to dispatch tasks to GroomServer "
                  + groomStatus.getGroomName(), ioe);
          return Boolean.FALSE;
View Full Code Here

Examples of org.apache.hama.ipc.WorkerProtocol.dispatch()

           
            WorkerProtocol worker = findGroomServer(ustus);
            Directive d1 = new Directive(currentGroomServerPeers(),
                new GroomServerAction[] { new KillTaskAction(ts.getTaskId()) });
           
            worker.dispatch(d1);
           
          }
         
        }
      } else {
View Full Code Here

Examples of org.apache.isis.core.wrapper.dispatchers.InteractionEventDispatcher.dispatch()

    public void notifyListeners(final InteractionEvent interactionEvent) {
        final InteractionEventDispatcher dispatcher = dispatchersByEventClass.get(interactionEvent.getClass());
        if (dispatcher == null) {
            throw new RuntimeException("Unknown InteractionEvent - register into dispatchers map");
        }
        dispatcher.dispatch(interactionEvent);
    }

    // /////////////////////////////////////////////////////////////
    // Listeners
    // /////////////////////////////////////////////////////////////
View Full Code Here

Examples of org.apache.isis.core.wrapper.internal.InteractionEventDispatcher.dispatch()

    public void notifyListeners(final InteractionEvent interactionEvent) {
        final InteractionEventDispatcher dispatcher = dispatchersByEventClass.get(interactionEvent.getClass());
        if (dispatcher == null) {
            throw new RuntimeException("Unknown InteractionEvent - register into dispatchers map");
        }
        dispatcher.dispatch(interactionEvent);
    }

    // /////////////////////////////////////////////////////////////
    // Listeners
    // /////////////////////////////////////////////////////////////
View Full Code Here

Examples of org.apache.niolex.commons.seda.Dispatcher.dispatch()

        System.out.println("Stage 1 - dispatch 5K/s, 100(1ms) : 1(100ms) weight messages; for 30 sec.");

        for (int i = 0; i < 30; ++i) {
            for (int j = 0; j < 5000; ++j) {
                if (j % 100 == 50) {
                    disp.dispatch("input", new WeightMessage(100));
                } else {
                    disp.dispatch("input", new WeightMessage(1));
                }
                if (j % 5 == 1) {
                    ThreadUtil.sleep(1);
View Full Code Here

Examples of org.apache.nutch.webapp.common.WebAppModule.dispatch()

    //get jsp include path_info from request object
    String relPath=(String)request.getAttribute("javax.servlet.include.path_info");

    if (allMappings.containsKey(relPath)) {
      WebAppModule module=(WebAppModule)allMappings.get(relPath);
      module.dispatch(relPath, request,response);
    }
  }
}
View Full Code Here

Examples of org.apache.tapestry.services.Dispatcher.dispatch()

        replay();

        Dispatcher d = new PageRenderDispatcher(resolver, handler);

        assertFalse(d.dispatch(request, response));

        verify();
    }

    // TAPESTRY-1343
View Full Code Here

Examples of org.apache.tapestry5.internal.services.AssetProtectionDispatcher.dispatch()

        AssetProtectionDispatcher disp = new AssetProtectionDispatcher(auths,null,logger);
        Request request = createMock(Request.class);
        expect(request.getPath()).andReturn("start");
        Response response = createMock(Response.class);
        replay(request,response,logger);
        assertFalse(disp.dispatch(request, response));
        verify(request,response,logger);
    }
   
    @Test
    public void checks_authorizers() throws IOException
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.