Examples of onEvent()


Examples of com.corundumstudio.socketio.namespace.Namespace.onEvent()

            if (packet.getArgs() != null
                    && !packet.getArgs().isEmpty()) {
                data = packet.getArgs().get(0);
            }
            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            namespace.onEvent(client, packet.getName(), data, ackRequest);
            break;
        }

        case HEARTBEAT:
            heartbeatHandler.onHeartbeat(client.getBaseClient());
View Full Code Here

Examples of com.google.code.yanf4j.nio.NioSession.onEvent()

    @Test
    public void testRegisterOpenSession() throws Exception {
        IMocksControl control = EasyMock.createControl();
        NioSession session = control.createMock(NioSession.class);
        session.onEvent(EventType.ENABLE_READ, this.reactor.getSelector());
        EasyMock.expectLastCall();
        EasyMock.expect(session.isClosed()).andReturn(false);

        control.replay();
        this.reactor.registerSession(session, EventType.ENABLE_READ);
View Full Code Here

Examples of com.isencia.passerelle.ext.FiringEventListener.onEvent()

  public void notifyFiringEventListeners(FiringEvent event) {
    if (event != null && event.getDirector().equals(this)) {
      for (Iterator<FiringEventListener> listenerItr = firingEventListeners.iterator(); listenerItr.hasNext();) {
        FiringEventListener listener = listenerItr.next();
        listener.onEvent(event);
      }
    }
  }

  public void clearBusyTaskActors() {
View Full Code Here

Examples of com.nabalive.common.server.EventListener.onEvent()

        synchronized (eventListenerList) {
            Iterator<EventListener> iterator = eventListenerList.iterator();
            while (iterator.hasNext()) {
                EventListener listener = iterator.next();
                try {
                    listener.onEvent(jid.getUser(), event);
                } catch (Exception e) {
                    logger.debug("eventListener exception (unregister): ", e);
                    iterator.remove();
                }
            }
View Full Code Here

Examples of dbfit.util.DiffListener.onEvent()

        DiffListener reporter = new CompareStoredQueries.FitFixtureReporter(
                reportingSystem);

        MatchResult cellResult = createCellResult("*demo-1*", SUCCESS);

        reporter.onEvent(cellResult);

        verify(reportingSystem).addCell(cellResult);
    }
}
View Full Code Here

Examples of javax.jcr.observation.EventListener.onEvent()

               }
         }
         if (events.getSize() > 0)
         {
            // TCK says, no events - no onEvent() action
            listener.onEvent(events);
         }
      }
   }

   // ---------------------------------
View Full Code Here

Examples of net.hasor.core.EventListener.onEvent()

        LinkedList<EventListener> eventList = this.onceListenerMap.get(eventType);
        if (eventList != null) {
            EventListener listener = null;
            while ((listener = eventList.pollLast()) != null) {
                try {
                    listener.onEvent(eventType, objects);
                } catch (Throwable e) {
                    callBack.handleException(eventType, objects, e);
                } finally {
                    callBack.handleComplete(eventType, objects);
                }
View Full Code Here

Examples of org.apache.axis.ime.MessageExchangeEventListener.onEvent()

            } catch (Exception exception) {
                if (listener != null) {
                    MessageFaultEvent faultEvent = new MessageFaultEvent(
                            context.getMessageExchangeCorrelator(),
                            exception);
                    listener.onEvent(faultEvent);
                }
            } finally {
                if (log.isDebugEnabled()) {
                    log.debug("Exit: HandlerMessageExchange.Listener::onSend");
                }
View Full Code Here

Examples of org.apache.cloudstack.framework.events.EventSubscriber.onEvent()

        for (UUID subscriberId : subscribers.keySet()) {
            Pair<EventTopic, EventSubscriber>  subscriberDetails =  subscribers.get(subscriberId);
            // if the event matches subscribers interested event topic then call back the subscriber with the event
            if (isEventMatchesTopic(event, subscriberDetails.first())) {
                EventSubscriber subscriber =  subscriberDetails.second();
                subscriber.onEvent(event);
            }
        }
    }

    @Override
View Full Code Here

Examples of org.apache.ode.bpel.evtproc.ActivityStateDocumentBuilder.onEvent()

            TScopeInfo.Activities activities = scopeInfo.addNewActivities();
            List<BpelEvent> events = scope.listEvents();
            ActivityStateDocumentBuilder b = new ActivityStateDocumentBuilder();
            for (BpelEvent e : events)
                b.onEvent(e);
            for (ActivityInfoDocument ai : b.getActivities()) {
                for (ActivityRecoveryDAO recovery : recoveries) {
                    if (String.valueOf(recovery.getActivityId()).equals(ai.getActivityInfo().getAiid())) {
                        TFailureInfo failure = ai.getActivityInfo().addNewFailure();
                        failure.setReason(recovery.getReason());
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.