Package com.sun.enterprise.v3.admin

Examples of com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext


        ParameterMap deployParam = new ParameterMap();
        deployParam.set(DeploymentProperties.FORCE, Boolean.TRUE.toString());
        deployParam.set(DeploymentProperties.PATH, appInfo.getApplicationDirectory().getCanonicalPath());
        deployParam.set(DeploymentProperties.NAME, appInfo.getApplication().getName());
        deployParam.set(DeploymentProperties.KEEP_REPOSITORY_DIRECTORY, "true");
        commandRunner.getCommandInvocation("deploy", new XMLActionReporter(), kernelSubject).parameters(deployParam).execute();
       
       
        appInfo.recordLoad();
    }
View Full Code Here


            LOGGER.log(Level.SEVERE, LogFacade.ERROR_READING_CONF_FILE, e);
        }

        FormatterDelegate agentDelegate = null;
        if (agent != null) {
            agentDelegate = new AgentFormatterDelegate(agent);

        }

        // force the ConsoleHandler to use GF formatter
        String formatterClassName = null;
View Full Code Here

    private void configureODLFormatter(String excludeFields, boolean multiLineMode) {
        // this loop is used for ODL formatter
        ODLLogFormatter formatterClass = null;
        // set the formatter
        if (agent != null) {
            formatterClass = new ODLLogFormatter(new AgentFormatterDelegate(agent));
            setFormatter(formatterClass);
        } else {
            formatterClass = new ODLLogFormatter();
            setFormatter(formatterClass);
        }
View Full Code Here

        String cname = getClass().getName();
        // this loop is used for UFL formatter
        UniformLogFormatter formatterClass = null;
        // set the formatter
        if (agent != null) {
            formatterClass = new UniformLogFormatter(new AgentFormatterDelegate(agent));
            setFormatter(formatterClass);
        } else {
            formatterClass = new UniformLogFormatter();
            setFormatter(formatterClass);
        }
View Full Code Here

            LOGGER.log(Level.SEVERE, LogFacade.ERROR_READING_CONF_FILE, e);
        }

        FormatterDelegate agentDelegate = null;
        if (agent != null) {
            agentDelegate = new AgentFormatterDelegate(agent);

        }

        // force the ConsoleHandler to use GF formatter
        String formatterClassName = null;
View Full Code Here

        if (UniformLogFormatter.class.getName().equals(formatterName)) {
            // this loop is used for UFL formatter
            UniformLogFormatter formatterClass = null;
            // set the formatter
            if (agent != null) {
                formatterClass = new UniformLogFormatter(new AgentFormatterDelegate(agent));
                setFormatter(formatterClass);
            } else {
                formatterClass = new UniformLogFormatter();
                setFormatter(formatterClass);
            }

            if (formatterClass != null) {
                recordBeginMarker = manager.getProperty(cname + ".logFormatBeginMarker");
                if (recordBeginMarker == null || ("").equals(recordBeginMarker)) {
                    recordBeginMarker = RECORD_BEGIN_MARKER;
                }

                recordEndMarker = manager.getProperty(cname + ".logFormatEndMarker");
                if (recordEndMarker == null || ("").equals(recordEndMarker)) {
                    recordEndMarker = RECORD_END_MARKER;
                }

                recordFieldSeparator = manager.getProperty(cname + ".logFormatFieldSeparator");
                if (recordFieldSeparator == null || ("").equals(recordFieldSeparator) || recordFieldSeparator.length() > 1) {
                    recordFieldSeparator = RECORD_FIELD_SEPARATOR;
                }

                recordDateFormat = manager.getProperty(cname + ".logFormatDateFormat");
                if (recordDateFormat != null && !("").equals(recordDateFormat)) {
                    SimpleDateFormat sdf = new SimpleDateFormat(recordDateFormat);
                    try {
                        sdf.format(new Date());
                    } catch (Exception e) {
                        recordDateFormat = RECORD_DATE_FORMAT;
                    }
                } else {
                    recordDateFormat = RECORD_DATE_FORMAT;
                }

                formatterClass.setRecordBeginMarker(recordBeginMarker);
                formatterClass.setRecordEndMarker(recordEndMarker);
                formatterClass.setRecordDateFormat(recordDateFormat);
                formatterClass.setRecordFieldSeparator(recordFieldSeparator);
            }

        } else if (ODLLogFormatter.class.getName().equals(formatterName)) {
            // this loop is used for ODL formatter
            ODLLogFormatter formatterClass = null;
            // set the formatter
            if (agent != null) {
                formatterClass = new ODLLogFormatter(new AgentFormatterDelegate(agent));
                setFormatter(formatterClass);
            } else {
                formatterClass = new ODLLogFormatter();
                setFormatter(formatterClass);
            }
View Full Code Here

            LOGGER.log(Level.SEVERE, LogFacade.ERROR_READING_CONF_FILE, e);
        }

        FormatterDelegate agentDelegate = null;
        if (agent != null) {
            agentDelegate = new AgentFormatterDelegate(agent);

        }

        // force the ConsoleHandler to use GF formatter
        String formatterClassname = null;
View Full Code Here

        if (UniformLogFormatter.class.getName().equals(formatterName)) {
            // this loop is used for UFL formatter
            UniformLogFormatter formatterClass = null;
            // set the formatter
            if (agent != null) {
                formatterClass = new UniformLogFormatter(new AgentFormatterDelegate(agent));
                setFormatter(formatterClass);
            } else {
                formatterClass = new UniformLogFormatter();
                setFormatter(formatterClass);
            }

            formatterClass.setExcludeFields(excludeFields);
            formatterClass.setMultiLineMode(multiLineMode);
            formatterClass.setLogEventBroadcaster(this);

            if (formatterClass != null) {
                recordBeginMarker = manager.getProperty(cname + ".logFormatBeginMarker");
                if (recordBeginMarker == null || ("").equals(recordBeginMarker)) {
                    recordBeginMarker = RECORD_BEGIN_MARKER;
                }

                recordEndMarker = manager.getProperty(cname + ".logFormatEndMarker");
                if (recordEndMarker == null || ("").equals(recordEndMarker)) {
                    recordEndMarker = RECORD_END_MARKER;
                }

                recordFieldSeparator = manager.getProperty(cname + ".logFormatFieldSeparator");
                if (recordFieldSeparator == null || ("").equals(recordFieldSeparator) || recordFieldSeparator.length() > 1) {
                    recordFieldSeparator = RECORD_FIELD_SEPARATOR;
                }

                recordDateFormat = manager.getProperty(cname + ".logFormatDateFormat");
                if (recordDateFormat != null && !("").equals(recordDateFormat)) {
                    SimpleDateFormat sdf = new SimpleDateFormat(recordDateFormat);
                    try {
                        sdf.format(new Date());
                    } catch (Exception e) {
                        recordDateFormat = RECORD_DATE_FORMAT;
                    }
                } else {
                    recordDateFormat = RECORD_DATE_FORMAT;
                }

                formatterClass.setRecordBeginMarker(recordBeginMarker);
                formatterClass.setRecordEndMarker(recordEndMarker);
                formatterClass.setRecordDateFormat(recordDateFormat);
                formatterClass.setRecordFieldSeparator(recordFieldSeparator);
            }

        } else if (ODLLogFormatter.class.getName().equals(formatterName)) {
            // this loop is used for ODL formatter
            ODLLogFormatter formatterClass = null;
            // set the formatter
            if (agent != null) {
                formatterClass = new ODLLogFormatter(new AgentFormatterDelegate(agent));
                setFormatter(formatterClass);
            } else {
                formatterClass = new ODLLogFormatter();
                setFormatter(formatterClass);
            }
View Full Code Here

            LOGGER.log(Level.SEVERE, LogFacade.ERROR_READING_CONF_FILE, e);
        }

        FormatterDelegate agentDelegate = null;
        if (agent != null) {
            agentDelegate = new AgentFormatterDelegate(agent);

        }

        // force the ConsoleHandler to use GF formatter
        String formatterClassName = null;
View Full Code Here

    private void configureODLFormatter(String excludeFields, boolean multiLineMode) {
        // this loop is used for ODL formatter
        ODLLogFormatter formatterClass = null;
        // set the formatter
        if (agent != null) {
            formatterClass = new ODLLogFormatter(new AgentFormatterDelegate(agent));
            setFormatter(formatterClass);
        } else {
            formatterClass = new ODLLogFormatter();
            setFormatter(formatterClass);
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext

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.