Examples of StringManagerBase


Examples of com.sun.enterprise.util.i18n.StringManagerBase

            result = new InstanceException(ex);
        } else
            level = Level.WARNING;
            result = new InstanceException(ex);
        }
        StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());           
        getLogger().log(level, sm.getString(messageId, args), ex);            
        return result;
    }                   
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

            result = (ConfigException)ex;
        } else
            level = Level.WARNING;
            result = new ConfigException(ex);
        }
        StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());           
        getLogger().log(level, sm.getString(messageId, args), ex);            
        return result;
    }   
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

            InstanceStatus.getInstance().updateStatusFromAdminChannel(
                instanceName, Status.kInstanceRunningCode);
            ProcessInstance pInstance =
                ProcessManager.getInstance().getProcess(instanceName);
            if (pInstance !=null) pInstance.setStopping(false);
            StringManagerBase sm = StringManagerBase.getStringManager(
                                   getLogger().getResourceBundleName())
            getLogger().log(Level.WARNING, sm.getString(
                "nodeagent.stop.instance.exception", instanceName), e);            
            throw new AgentException(e);
        }   
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        try {           
            final AgentManager manager = new AgentManager(getNodeAgentConfig());
            return RuntimeStatus.getRuntimeStatus(getNodeAgentName(),
                manager);
        } catch (Exception ex) {
            StringManagerBase sm = StringManagerBase.getStringManager(
                getLogger().getResourceBundleName())
            getLogger().log(Level.INFO, sm.getString(
                "nodeagent.getStatus.exception", getNodeAgentName()), ex);            
            throw new AgentException(ex);
        }
    }           
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

    public void dasHasMoved(String newHost, String newPort)
    throws AgentException, MBeanException {
        try {
            if (haveDASCoordinatesChanged(newHost, newPort) == false)
                return;
            StringManagerBase sm = StringManagerBase.getStringManager(
                                        getLogger().getResourceBundleName());             
            _logger.log(Level.INFO, "nodeagent.das_has_moved.info",
                        new Object[] {newHost, newPort});
            writeToDASPropertyReader(newHost, newPort);
            setJMXConnectorInfo(newHost, newPort);
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        // Change -- do not throw an Exception if it is not "running"

        boolean wasRunning = InstanceStatus.getInstance().updateStatusIfRunning(
                                instanceName, Status.kInstanceStoppingCode);
        if (!wasRunning) {
            StringManagerBase sm = StringManagerBase.getStringManager(
                getLogger().getResourceBundleName());
            String msg = sm.getString(
                "nodeagent.couldNotStopInstance", instanceName,
                InstanceStatus.getInstance().getStatus(
                    instanceName).getStatus().getStatusString());
            getLogger().log(Level.WARNING, msg);                                      
            //throw new AgentException(msg);
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        }
        boolean wasStopped = InstanceStatus.getInstance().updateStatusIfStopped(
                                instanceName, newStatus);

        if (!wasStopped) {
            StringManagerBase sm = StringManagerBase.getStringManager(
                getLogger().getResourceBundleName())
            String msg =
                sm.getString("nodeagent.couldNotStartInstance", instanceName,
                             InstanceStatus.getInstance().getStatus(
                                instanceName).getStatus().getStatusString());
            getLogger().log(Level.WARNING, msg);               
            throw new AgentException(msg);
        }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        } catch (Exception e) {
            //startup failed. We put the instance in a not running state so that
            // the user can attempt to start it again.
            InstanceStatus.getInstance().updateStatusFromAdminChannel(
                instanceName, Status.kInstanceNotRunningCode);                 
            StringManagerBase sm = StringManagerBase.getStringManager(
                getLogger().getResourceBundleName())
            getLogger().log(Level.WARNING,
              sm.getString("nodeagent.start.instance.exception", instanceName), e);                 
            throw new AgentException(e);
        }
    }
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

                if(status != Status.kInstanceNotRunningCode) {
                    try {
                        stopInstance(instanceName);
                    } catch (AgentException e) {
                        // only log exception, and continue deleting
                        StringManagerBase sm = StringManagerBase.getStringManager(
                            getLogger().getResourceBundleName())
                        getLogger().log(
                          Level.INFO,
                          sm.getString(
                             "nodeagent.stop.instance.exception", instanceName),
                          e);                         
                    }
                }
                // delete instance, without checking for JMS
View Full Code Here

Examples of com.sun.enterprise.util.i18n.StringManagerBase

        String configDir = System.getProperty("com.sun.aas.instanceRoot") +
                           File.separator + "config";
        java.io.File nssFile = new File(configDir, "key3.db");
        if (!nssFile.exists()) {
            if (System.getProperty("javax.net.ssl.keyStore") == null) {
                StringManagerBase sm = StringManagerBase.getStringManager(
                                        getLogger().getResourceBundleName());
                String msg = sm.getString(
                    "nodeagent.noKeyStoreFoundForInstanceSync");
                getLogger().log(Level.SEVERE, msg);                                      
                throw new AgentException(msg);
            } else {
                ar.add("-D" + "javax.net.ssl.keyStore" + "=" +
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.