Package com.sun.mfwk.agent.appserv.connection

Examples of com.sun.mfwk.agent.appserv.connection.ConnectionRegistry


                    throw new MBeanException(e);
                }

                try {
                    // refresh connection
                    ConnectionRegistry r = ConnectionRegistry.getInstance();
                    this.mbs = r.getConnection(serverName, domainName);

                    LogDomains.getLogger().fine(
                        "Refreshed connection for server: " + serverName);

                    if (ra.handler != null) {
View Full Code Here


                "Found stale connection for server: " + serverName);

            try {
                if (serverName != null) {
                    // refresh connection
                    ConnectionRegistry r = ConnectionRegistry.getInstance();
                    this.mbs = r.getConnection(serverName, domainName);

                    LogDomains.getLogger().fine(
                        "Refreshed connection for server: " + serverName);

                    return this.mbs.queryNames(pattern, null);
View Full Code Here

    * @throws IOException
    */
    private MBeanServerConnection getConnection(String server, String domain)
            throws IOException {

        ConnectionRegistry registry = ConnectionRegistry.getInstance();
        MBeanServerConnection connection =
            registry.getConnection(server, domain);
        return connection;
    }
View Full Code Here

            MBeanServerConnection mbsthrows HandlerException, AttributeNotFoundException,
             MBeanException, ReflectionException, InstanceNotFoundException,
             IOException  {
        try {   
           
            ConnectionRegistry registry = ConnectionRegistry.getInstance();
             MBeanServerConnection connection =
                    registry.getConnection("server", (String)getMappingQueryService().getProperty(Constants.DOMAIN_NAME_PROP));
            
            Object status =
                connection.invoke(new ObjectName("com.sun.appserv:name=domain-status"),
                "getstate",
                new String[]{peer.getKeyProperty("name")},
View Full Code Here

                // handle HELLO messages
                if (msg.getMessageType() == MfDiscoveryParameters.MSG_TYPE_HELLO) {
                    logger.finest("DISCOVERY HELLO message");
                    // set up connection credentials in registry
                    ConnectionRegistry reg = ConnectionRegistry.getInstance();
                    reg.setConnectionCredentials(instanceName, domainName, map);
                   
                    sManager.start();

                   // Set the appropriated states
                   // Send the notifications to SNMP mediation
View Full Code Here

TOP

Related Classes of com.sun.mfwk.agent.appserv.connection.ConnectionRegistry

Copyright © 2018 www.massapicom. 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.