Examples of addListener()


Examples of org.pentaho.platform.repository2.unified.fileio.RepositoryFileOutputStream.addListener()

      }
    }

    RepositoryFileOutputStream outputStream =
        new RepositoryFileOutputStream( tempOutputFilePath, autoCreateUniqueFilename, true );
    outputStream.addListener( this );
    return outputStream;
  }

  public void fileCreated( String filePath ) {
    IUnifiedRepository repository = PentahoSystem.get( IUnifiedRepository.class );
View Full Code Here

Examples of org.photovault.imginfo.xml.XmlExporter.addListener()

            Thread exportThread = new Thread() {
                public void run() {
                    try {
                        BufferedWriter writer = new BufferedWriter( new FileWriter( f ) );
                        XmlExporter exporter = new XmlExporter( writer );
                        exporter.addListener( tthis );
                        exporter.write();
                        writer.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                    }
View Full Code Here

Examples of org.photovault.imginfo.xml.XmlImporter.addListener()

            Thread importThread = new Thread() {
                public void run() {
                    try {
                        BufferedReader reader = new BufferedReader( new FileReader( f ) );
                        XmlImporter importer = new XmlImporter( reader );
                        importer.addListener( staticThis );
                        importer.importData();
                        reader.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                    }
View Full Code Here

Examples of org.red5.server.Server.addListener()

  public void setUp() throws Exception {
    service = (QuartzSchedulingService) applicationContext.getBean("schedulingService");
    registry = (ClientRegistry) applicationContext.getBean("global.clientRegistry");
    context = (Context) applicationContext.getBean("web.context");
    Server server = (Server) applicationContext.getBean("red5.server");
    server.addListener(new IScopeListener() {
      public void notifyScopeCreated(IScope scope) {
        log.debug("Scope created: {}", scope);
      }

      public void notifyScopeRemoved(IScope scope) {
View Full Code Here

Examples of org.redisson.connection.PubSubConnectionEntry.addListener()

    private int addListener(RedisPubSubTopicListenerWrapper<M> pubSubListener) {
        PubSubConnectionEntry entry = connectionManager.subscribe(getName());
        synchronized (entry) {
            if (entry.isActive()) {
                entry.addListener(getName(), pubSubListener);
                return pubSubListener.hashCode();
            }
        }
        // entry is inactive trying add again
        return addListener(pubSubListener);
View Full Code Here

Examples of org.rhq.enterprise.agent.AgentPrintWriter.addListener()

        }

        CharArrayWriter listener = new CharArrayWriter();
        AgentPrintWriter apw = agent.getOut();
        try {
            apw.addListener(listener);
            agent.executePromptCommand(command);
        } catch (Exception e) {
            throw new ExecutionException(listener.toString(), e); // the message is the output, cause is the thrown exception
        } finally {
            apw.removeListener(listener);
View Full Code Here

Examples of org.rsbot.bot.Bot.addListener()

            if (menuBar.getCheckBox(key).isVisible()) {
              final boolean wasSelected = menuBar.getCheckBox(key).isSelected();
              menuBar.getCheckBox(key).setSelected(selected);
              if (selected) {
                if (!wasSelected) {
                  current.addListener(el);
                }
              } else {
                if (wasSelected) {
                  current.removeListener(el);
                }
View Full Code Here

Examples of org.rzo.yajsw.controller.jvm.JVMController.addListener()

          }

        }

      };
      controller.addListener(JVMController.STATE_STARTUP_TIMEOUT, restartHandler);
      controller.addListener(JVMController.STATE_PING_TIMEOUT, restartHandler);
      controller.addListener(JVMController.STATE_PROCESS_KILLED, restartHandler);

      if (!_config.getBoolean("wrapper.ntservice.autoreport.startup", true))
        if (getService() instanceof WrapperMainServiceWin)
View Full Code Here

Examples of org.sdnplatform.sync.internal.store.ListenerStorageEngine.addListener()

            throws UnknownStoreException {
        ListenerStorageEngine store = localStores.get(storeName);
        if (store == null)
            throw new UnknownStoreException("Store " + storeName +
                                            " has not been registered");
        store.addListener(listener);
    }

    @Override
    public void shutdown() {
       
View Full Code Here

Examples of org.sdnplatform.sync.internal.store.SynchronizingStorageEngine.addListener()

    @Override
    public void addListener(String storeName, MappingStoreListener listener)
            throws UnknownStoreException {
        SynchronizingStorageEngine store = getStoreInternal(storeName);
        store.addListener(listener);
    }

    /**
     * Update the node configuration to add or remove nodes
     * @throws FloodlightModuleException
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.