Examples of addDiscoveryListener()


Examples of net.jini.discovery.LookupLocatorDiscovery.addDiscoveryListener()

        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        logger.log(Level.FINE, "verifying discovery for listener to be removed ...");
        newListener.setLookupsToDiscover(initLookupsToStart);
        lld.addDiscoveryListener(newListener);
        waitForDiscovery(newListener);

        /* Remove the listener */
        lld.removeDiscoveryListener(newListener);
        logger.log(Level.FINE, "removed listener from lookup locator discovery");
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery.addDiscoveryListener()

        /* Verify that the lookup locator discovery utility created
         * above is operational by verifying that the INITIIAL lookups
         * are discovered.
         */
        mainListener.setLookupsToDiscover(initLookupsToStart);
        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        /* Replace the current locators to discover with the empty set */
        LookupLocator[] locsToRemove = new LookupLocator[0];
        logger.log(Level.FINE, "replace the current set of "
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery.addDiscoveryListener()

        locatorDiscoveryList.add(lld);
        /* Add a listener to the lookup locator discovery utility created
         * above, and verify the listener receives no events.
         */
        mainListener.clearAllEventInfo();//listener expects no events
        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);
        /* Re-configure the listener to expect events for the lookups
         * started during setup.
         */
        locsToDiscover = toLocatorArray(initLookupsToStart);
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery.addDiscoveryListener()

        /* Verify that the lookup locator discovery utility created
         * above is operational by verifying that the INITIIAL lookups
         * are discovered.
         */
        mainListener.setLookupsToDiscover(initLookupsToStart);
        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        /* Terminate the lookup locator discovery utility */
        lld.terminate();
        logger.log(Level.FINE, "terminated lookup locator discovery");
View Full Code Here

Examples of org.rhq.enterprise.communications.ServiceContainer.addDiscoveryListener()

            // config = prepareConfigurationPreferences();
            ServerConfiguration config = reloadConfiguration();

            ServiceContainer container = (null == m_container) ? new ServiceContainer() : m_container;
            AutoDiscoveryListener listener = new ServerAutoDiscoveryListener(m_knownAgents);
            container.addDiscoveryListener(listener);

            container.start(config.getServiceContainerPreferences().getPreferences(), config
                .getClientCommandSenderConfiguration(), m_mbs);

            // now let's add our additional handler to support the remote clients (e.g. CLI)
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.