Examples of EventFilter


Examples of com.hazelcast.spi.EventFilter

        return mapService.getMapServiceContext().addEventListener(listener, eventFilter, name);
    }

    protected String addEntryListenerInternal(
            EntryListener listener, Predicate predicate, final Data key, final boolean includeValue) {
        EventFilter eventFilter = new QueryEventFilter(includeValue, key, predicate);
        final MapService mapService = getService();
        return mapService.getMapServiceContext().addEventListener(listener, eventFilter, name);
    }
View Full Code Here

Examples of com.hazelcast.spi.EventFilter

    }

    @Override
    public String addEntryListener(EntryListener listener, Object key) {
        ValidationUtil.isNotNull(listener, "listener");
        EventFilter eventFilter = new ReplicatedEntryEventFilter(marshallKey(key));
        mapStats.incrementOtherOperations();
        return replicatedMapService.addEventListener(listener, eventFilter, getName());
    }
View Full Code Here

Examples of com.hazelcast.spi.EventFilter

    }

    @Override
    public String addEntryListener(EntryListener listener, Predicate predicate, Object key) {
        ValidationUtil.isNotNull(listener, "listener");
        EventFilter eventFilter = new ReplicatedQueryEventFilter(marshallKey(key), predicate);
        mapStats.incrementOtherOperations();
        return replicatedMapService.addEventListener(listener, eventFilter, getName());
    }
View Full Code Here

Examples of com.hazelcast.spi.EventFilter

                    endpoint.sendEvent(portableEntryEvent, getCallId());
                }
            }
        };

        EventFilter eventFilter;
        if (getPredicate() == null) {
            eventFilter = new EntryEventFilter(includeValue, key);
        } else {
            eventFilter = new QueryEventFilter(includeValue, key, getPredicate());
        }
View Full Code Here

Examples of com.netflix.eventbus.spi.EventFilter

        EventBusImpl bus = eventBus;
        TestAwareConsumerQueueSupplier consumerQueueSupplier = new TestAwareConsumerQueueSupplier();
        bus.setConsumerQueueSupplier(consumerQueueSupplier);

        StatefulEventHandler handler1 = new StatefulEventHandler("con1");
        EventFilter filter = new InfixFilterLanguageSupport().convert("xpath(\"//name\")=\"con1\"");
        bus.registerSubscriber(filter, handler1);
        TestAwareQueue handler1Q = consumerQueueSupplier.testAwareQueue;

        StatefulEventHandler handler2 = new StatefulEventHandler("con2");
        filter = new InfixFilterLanguageSupport().convert("xpath(\"//name\")=\"con1\"");
View Full Code Here

Examples of com.qspin.qtaste.tools.converter.filter.EventFilter

      LOGGER.error(pExc);
    }
    List<Filter> filters = new ArrayList<Filter>();
    for (Filter f: gestionnaire.getDecodedFilters() )
    {
      filters.add(new EventFilter(f));
    }
    return filters;
  }
View Full Code Here

Examples of de.novanic.eventservice.client.event.filter.EventFilter

public class ActivationCommandTest extends ClientCommandTestCase
{
    @Test
    public void testExecute() {
        final Domain theTestDomain = DomainFactory.getDomain("test_domain");
        final EventFilter theEventFilter = new TypeEventFilterTestMode();
        final TestEventNotification theTestEventNotification = new TestEventNotification();

        getRemoteEventConnectorMock().activate(theTestDomain, theEventFilter, theTestEventNotification, getCommandCallback());

        testExecute(new ActivationCommand(getRemoteEventConnectorMock(), theTestDomain, theEventFilter, theTestEventNotification, getCommandCallback()));
View Full Code Here

Examples of de.novanic.eventservice.client.event.filter.EventFilter

    public void deregisterEventFilter(Domain aDomain, AsyncCallback<Void> aCallback) {
        aCallback.onSuccess(null);
    }

    public void getEventFilter(Domain aDomain, AsyncCallback<EventFilter> aCallback) {
        aCallback.onSuccess(new EventFilter() {
            public boolean match(Event anEvent) {
                return false;
            }
        });
    }
View Full Code Here

Examples of eas.simulation.event.EventFilter

              + "*environment*.getSimTime().broadcastEvent(new ChartEvent(*...*));\n"
              + "To store an existing chart as PDF you can broadcast a 'ChartEventStoreAsPDF', e.g.,\n"
              + "*environment*.getSimTime().broadcastEvent(new ChartEventStoreAsPDF(*chartName*, *File*));\n"
              + "***********************************************************************\n");
     
      env.getSimTime().requestEvents(this, new EventFilter() {
            private static final long serialVersionUID = 3719917006278896507L;

            @Override
            public boolean isAcceptable(EASEvent event) {
                return event.getClass().isAssignableFrom(ChartEvent.class);
View Full Code Here

Examples of javax.portlet.filter.EventFilter

    public void doFilter(EventRequest request, EventResponse response) throws IOException, PortletException {
        if (filterListIndex <filterList.size()){
            Filter filter = filterList.get(filterListIndex);
            filterListIndex++;
            try {
                EventFilter eventFilter = (EventFilter) loader.loadClass(filter.getFilterClass()).newInstance();
                FilterConfigImpl filterConfig = new FilterConfigImpl(filter.getFilterName(),filter.getInitParams(),portletContext);
                eventFilter.init(filterConfig);
                eventFilter.doFilter(request, response, this);
                eventFilter.destroy();
            } catch (InstantiationException e) {
                e.printStackTrace();
            } catch (IllegalAccessException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
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.