Examples of addListener()


Examples of org.infinispan.Cache.addListener()

   private void induceListenerMalfunctioning(boolean throwError, FailureType failureType) throws Throwable {
      Cache cache1 = cache(0, "replSync");
      Cache cache2 = cache(1, "replSync");
      ErrorInducingListener listener = new ErrorInducingListener(throwError);
      cache2.addListener(listener);
      try {
         cache1.put(failureType, 1);
      } catch (RemoteException e) {
         Throwable cause = e.getCause(); // get the exception behind the remote one
         if (throwError && cause.getCause() instanceof InvocationTargetException)
View Full Code Here

Examples of org.infinispan.manager.DefaultCacheManager.addListener()

        this.configureTransactions(defaultConfig);

        // create the cache manager
        EmbeddedCacheManager manager = new DefaultCacheManager(global, defaultConfig, false);
        manager.addListener(this);
        // Add named configurations
        for (Map.Entry<String, Configuration> entry: this.configuration.getConfigurations().entrySet()) {
            Configuration overrides = entry.getValue();
            Configuration configuration = defaults.getDefaultConfiguration(overrides.getCacheMode()).clone();
            configuration.applyOverrides(overrides);
View Full Code Here

Examples of org.infinispan.manager.EmbeddedCacheManager.addListener()

               Cache<?, ?> cache = container.getCache(cacheName);
               cache.addListener(this);
               caches.add(cache);
            }
         }
         container.addListener(this);
      }
      catch (Exception e)
      {
         throw new RuntimeException(e);
      }
View Full Code Here

Examples of org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifier.addListener()

      globalComponentRegistry.stop();
   }

   public void addListener(Object listener) {
      CacheManagerNotifier notifier = globalComponentRegistry.getComponent(CacheManagerNotifier.class);
      notifier.addListener(listener);
   }

   public void removeListener(Object listener) {
      CacheManagerNotifier notifier = globalComponentRegistry.getComponent(CacheManagerNotifier.class);
      notifier.removeListener(listener);
View Full Code Here

Examples of org.jahia.ajax.gwt.client.widget.content.ThumbsListView.addListener()

        VBoxLayoutData contentVBoxData = new VBoxLayoutData();
        contentVBoxData.setFlex(2);
        tab.add(contentContainer, contentVBoxData);

        listView.addListener(Events.DoubleClick, new Listener<ListViewEvent<GWTJahiaNode>>() {
            public void handleEvent(ListViewEvent<GWTJahiaNode> be) {
                Window w = new Window();
                GWTJahiaNode node = listView.getSelectionModel().getSelectedItem();

                final String text = "Preview of " + node.getDisplayName();
View Full Code Here

Examples of org.jamesii.simspex.gui.PerfDBRecorder.addListener()

      perfRec.getNewVerRTConfigIDs().addAll(configsWithAlgo);

      // Execute experiment, record performance
      ComparisonJobResultListener cjrl =
          new ComparisonJobResultListener(job, perfType);
      perfRec.addListener(cjrl);
      perfRec.start();
      exp.execute();
      perfRec.stop();

      outputHandler.output(job.getProblem(), job);
View Full Code Here

Examples of org.jboss.as.configadmin.service.ConfigAdminService.addListener()

            public Set<String> getPIDs() {
                return Collections.singleton(ConfiguredService.SERVICE_PID);
            }
        };
        ConfigAdminService configAdmin = getConfigAdminService();
        configAdmin.addListener(listener);

        latches[0].await();
        assertNull("First invocation with null", dictionaries[0]);

        Dictionary<String, String> config = new Hashtable<String, String>();
View Full Code Here

Examples of org.jboss.dashboard.ui.Dashboard.addListener()

        if (dashboards.containsKey(key)) return dashboards.get(key);

        // Initialize a dashboard instance for the section.
        Dashboard dashboard = new Dashboard();
        dashboard.setSection(section);
        dashboard.addListener(listener);
        dashboards.put(key, dashboard);

        // Init the dashboard (the related data sets will be loaded).
        dashboard.init();
        return dashboard;
View Full Code Here

Examples of org.jboss.jsfunit.framework.JSFUnitWebConnection.addListener()

 
      this.jsfServerSession = new JSFServerSession();
      this.jsfClientSession = new JSFClientSession(webClient, jsfServerSession);
     
      JSFUnitWebConnection webConnection = (JSFUnitWebConnection)this.webClient.getWebConnection();
      webConnection.addListener(this.jsfServerSession);
     
      if (HtmlUnitSnooper.enabled()) webConnection.addListener(new HtmlUnitSnooper());
   }
  
   /**
 
View Full Code Here

Examples of org.jboss.msc.service.BatchBuilder.addListener()

            // Setup a batch level dependency on deployment service
            deploymentSubBatch.addDependency(deploymentServiceName);

            // Add a deployment failure listener to the batch
            deploymentSubBatch.addListener(new DeploymentFailureListener(deploymentServiceName));

            // Create the deployment unit context
            final DeploymentUnitContext deploymentUnitContext = new DeploymentUnitContextImpl(deploymentServiceName.getSimpleName(), deploymentSubBatch, serviceBuilder);
            attachVirtualFile(deploymentUnitContext, deploymentRoot);
            deploymentUnitContext.putAttachment(MountHandle.ATTACHMENT_KEY, handle);
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.