Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.NodeAgent


    {      
        final ConfigContext configContext =
            ApplicationServer.getServerContext().getConfigContext();
        final Domain domain = ServerBeansFactory.getDomainBean(configContext);
        final NodeAgents controllers = domain.getNodeAgents();
        final NodeAgent controller = controllers.getNodeAgentByName(getNodeAgentName());
       
        boolean rendezvousOccurred = true;
        ElementProperty rendezvousProperty = null;
       
        //It is an expected case for the controller to be null. In the case where we
        //are unbinding from a node agent, the node controller element will already be
        //removed before invoking synchronizeWithDAS via this proxy.
        //Tested case where nodeagent has never rendezvoused and then it is deleted, works correctly
        //with connection failure exception being thrown
        if (controller != null) {                   
            //See if a rendezvous has occurred       
            rendezvousProperty = controller.getElementPropertyByName(
                IAdminConstants.RENDEZVOUS_PROPERTY_NAME);           
            rendezvousOccurred = new Boolean(rendezvousProperty.getValue()).booleanValue();                
        }
       
        if (rendezvousOccurred) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.NodeAgent

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.