Examples of AutoDiscoveryListener


Examples of org.rhq.enterprise.communications.command.server.discovery.AutoDiscoveryListener

            // persisted preferences, replace the following line with:
            // 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);
View Full Code Here

Examples of org.rhq.enterprise.communications.command.server.discovery.AutoDiscoveryListener

        AgentMain agent1 = m_agent1Test.createAgent(false);
        agent1.start();
        agent1.getClientCommandSender().getRemoteCommunicator().setInitializeCallback(null);

        final Boolean[] online = new Boolean[] { null };
        agent1.getServiceContainer().addDiscoveryListener(new AutoDiscoveryListener() {
            public void serverOnline(InvokerLocator locator) {
                online[0] = Boolean.TRUE;
            }

            public void serverOffline(InvokerLocator locator) {
View Full Code Here

Examples of org.rhq.enterprise.communications.command.server.discovery.AutoDiscoveryListener

        LOG.debug(CommI18NResourceKeys.SERVICE_CONTAINER_NETWORK_NOTIF_LISTENER_SERVER_ONLINE,
            new_server_invoker_locator);

        // notify each of our listeners that a new invoker is now online
        for (Iterator iter = listeners_copy.iterator(); iter.hasNext();) {
            AutoDiscoveryListener listener = (AutoDiscoveryListener) iter.next();
            try {
                listener.serverOnline(new_server_invoker_locator);
            } catch (Throwable t) {
                LOG.error(t, CommI18NResourceKeys.SERVICE_CONTAINER_NETWORK_NOTIF_LISTENER_ONLINE_PROCESSING_FAILURE,
                    new_server_invoker_locator);
            }
        }
View Full Code Here

Examples of org.rhq.enterprise.communications.command.server.discovery.AutoDiscoveryListener

        LOG.debug(CommI18NResourceKeys.SERVICE_CONTAINER_NETWORK_NOTIF_LISTENER_SERVER_OFFLINE,
            dead_server_invoker_locator);

        // notify each of our listeners that an invoker is now offline
        for (Iterator iter = listeners_copy.iterator(); iter.hasNext();) {
            AutoDiscoveryListener listener = (AutoDiscoveryListener) iter.next();
            try {
                listener.serverOffline(dead_server_invoker_locator);
            } catch (Throwable t) {
                LOG.error(t, CommI18NResourceKeys.SERVICE_CONTAINER_NETWORK_NOTIF_LISTENER_OFFLINE_PROCESSING_FAILURE,
                    dead_server_invoker_locator);
            }
        }
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.