Examples of EventBus


Examples of com.google.common.eventbus.EventBus

      mockMonitor(null, null, new Function<Object, MonitorStatus>() {
         @Override
         public MonitorStatus apply(final Object input) {
            return MonitorStatus.DONE;
         }
      }, new EventBus());
   }

Examples of com.google.common.eventbus.EventBus

      }, new EventBus());
   }

   @Test(expectedExceptions = NullPointerException.class)
   public void testCreateMonitorWithNullFunction() {
      mockMonitor(null, new Object(), null, new EventBus());
   }

Examples of com.google.common.eventbus.EventBus

    binder.install(new PubsubEventModule());
  }

  @Override
  protected void configure() {
    final EventBus eventBus = new EventBus("TaskEvents");
    eventBus.register(new Object() {
      @Subscribe public void logDeadEvent(DeadEvent event) {
        LOG.warning("Captured dead event " + event.getEvent());
      }
    });

    bind(EventBus.class).toInstance(eventBus);

    EventSink eventSink = new EventSink() {
      @Override
      public void post(PubsubEvent event) {
        eventBus.post(event);
      }
    };
    bind(EventSink.class).toInstance(eventSink);

    // Ensure at least an empty binding is present.

Examples of com.google.common.eventbus.EventBus

            }
        } catch (ApplicationSettingsException e) {
            e.printStackTrace();
        }
        try {
            publisher = new MonitorPublisher(new EventBus());
            BetterGfacImpl.setMonitorPublisher(publisher);
            registry = RegistryFactory.getDefaultRegistry();
            setGatewayProperties();
            BetterGfacImpl.startDaemonHandlers();
            BetterGfacImpl.startStatusUpdators(registry,zk,publisher);

Examples of com.google.common.eventbus.EventBus

        this.registry = registry;
        this.airavataAPI = airavataAPI;
        this.airavataRegistry2 = airavataRegistry2;
        daemonHandlers = new ArrayList<ThreadedHandler>();
        activityListeners = new ArrayList<AbstractActivityListener>();
        monitorPublisher = new MonitorPublisher(new EventBus());     // This is a EventBus common for gfac
        startStatusUpdators();
        startDaemonHandlers();
    }

Examples of com.google.common.eventbus.EventBus

    @Test
    public void testLocalProvider() throws GFacException,GFacProviderException {
        LocalDirectorySetupHandler localDirectorySetupHandler = new LocalDirectorySetupHandler();
        localDirectorySetupHandler.invoke(jobExecutionContext);
        LocalProvider localProvider = new LocalProvider();
        localProvider.setMonitorPublisher(new MonitorPublisher(new EventBus()));
        localProvider.initialize(jobExecutionContext);
        localProvider.execute(jobExecutionContext);
        localProvider.dispose(jobExecutionContext);
    }

Examples of com.google.common.eventbus.EventBus

    private AuthenticationInfo authenticationInfo;

    public HPCPullMonitor() {
        connections = new HashMap<String, ResourceConnection>();
        this.queue = new LinkedBlockingDeque<UserMonitorData>();
        publisher = new MonitorPublisher(new EventBus());
    }

Examples of com.google.common.eventbus.EventBus

    * Provides asynchronous {@link EventBus}.
    */
   @Provides
   @Singleton
   EventBus provideSyncEventBus(DeadEventLoggingHandler deadEventsHandler) { // NO_UCD
      EventBus syncBus = new EventBus("jclouds-sync-event-bus");
      syncBus.register(deadEventsHandler);
      return syncBus;
   }

Examples of com.google.common.eventbus.EventBus

    }

    @Override
    protected void setUp() throws Exception {
      subscriber = createSubscriber();
      EventBus bus = new EventBus();
      bus.register(subscriber);
      bus.post(EVENT);
    }

Examples of com.google.gwt.event.shared.EventBus

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
   
        EventBus eventBus = new SimpleEventBus();
        final PlaceController placeController = new PlaceController(eventBus);
       
        Desktop display = GWT.create(Desktop.class);
        if (display instanceof HasEventBus) {
          HasEventBus hasEventBus = (HasEventBus) display;
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.