Package com.sun.enterprise.ee.admin.servermgmt

Examples of com.sun.enterprise.ee.admin.servermgmt.AgentException


            final ConfigContext configContext = getConfigContext();
            //Validate port number since it is a string...
            try {
                Integer.parseInt(port);
            } catch (NumberFormatException ex) {
                throw new AgentException(_strMgr.getString("portMustBeNumeric",
                    port));
            }

            NodeAgents controllers = ServerBeansFactory.getDomainBean(configContext).getNodeAgents();
View Full Code Here


            final ConfigContext configContext = getConfigContext();
            // Validate port number since it is a string...
            try {
                Integer.parseInt(port);
            } catch (NumberFormatException ex) {
                throw new AgentException(_strMgr.getString("portMustBeNumeric",
                    port));
            }

            // TODO: get nodeagent to alter, ** need to verify code when dtd is finalized ???
            NodeAgents controllers = ServerBeansFactory.getDomainBean(configContext).getNodeAgents();
View Full Code Here

        try {
            JMXConnectorConfig config = ServerHelper.getJMXConnectorInfo(configContext,
                instanceName);           
            return new MBeanServerConnectionInfo(config);
        } catch (Exception ex) {
            throw new AgentException(ex);
        }
    }
View Full Code Here

        }
       
        if (ex instanceof AgentException) {
            result = ex;
        } else {
            result = new AgentException(ex);
        }
        //If the server is unreachable then we want to mark the connection as disabled
        if (isUnreachable(ex)) {
            try {
                NodeAgentRegistry.disconnectNodeAgentConnection(getNodeAgentName());
View Full Code Here

            throw ex;
        } catch (Exception ex) {
            if (DEBUG) {
                System.out.println("Connection to " + name + " failed " + ex);
            }
            throw new AgentException(ex);
        }
    }
View Full Code Here

        try {           
            JMXConnectorConfig config = NodeAgentHelper.getJMXConnectorInfo(configContext,
                nodeAgentName);           
            return new MBeanServerConnectionInfo(config);
        } catch (Exception ex) {
            throw new AgentException(ex);
        }
    }
View Full Code Here

        throws AgentException
    {
        try {
            getNodeAgentRegistry().disconnectCachedConnector(nodeAgentName);
        } catch (IOException ex) {
            throw new AgentException(ex);
        }
    }
View Full Code Here

        return handleAgentException(ex, messageId, new String[] {arg});
    }
   
    public AgentException handleAgentException(Exception ex, String messageId, String[] args)
    {
        AgentException result = null;
        Level level = Level.FINE;
        if (ex instanceof AgentException) {                       
            result = (AgentException)ex;
        } else if (ex instanceof ConfigException) {           
            result = new AgentException(ex);
        } else
            level = Level.WARNING;
            result = new AgentException(ex);
        }
        StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());           
        getLogger().log(level, sm.getString(messageId, args), ex);        
        return result;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.servermgmt.AgentException

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.