Package com.sun.enterprise.admin.wsmgmt.msg

Examples of com.sun.enterprise.admin.wsmgmt.msg.MessageTraceMgr


     */
    public void onStartup(ServerContext sc) throws ServerLifecycleException {
        serverStatus |= STATUS_STARTED;

        // initializes message trace
        MessageTraceMgr msgTraceMgr = MessageTraceMgr.getInstance();
        if ( msgTraceMgr != null) {
            msgTraceMgr.init();
        }
    }
View Full Code Here


     */
    public void onShutdown() throws ServerLifecycleException {
        serverStatus |= STATUS_SHUTDOWN;
       
        // shuts down message trace
        MessageTraceMgr msgTraceMgr = MessageTraceMgr.getInstance();
        if ( msgTraceMgr != null) {
            msgTraceMgr.stop();
        }
    }
View Full Code Here

                WebServiceEndpoint wsep = (WebServiceEndpoint) bean;
                String epName = wsep.getName();
                String appId = getApplicationId(wsep);

                // disables message trace for this endpoint
                MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();
                traceMgr.disable(appId, epName);

                AppServWSMonitorLifeCycleProvider aplifeProv =
                    new AppServWSMonitorLifeCycleProvider();
                aplifeProv.reconfigureMonitoring(wsep, appId,
                MonitoringLevel.instance(wsep.getMonitoring()),
View Full Code Here

                // application id
                String appId = getApplicationId(wsep);

                // message trace manager
                MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();

                // monitoring level changed
                if ( (newMonitoring != null) && (oldMonitoring != null)
                        && (!newMonitoring.equals(oldMonitoring)) ) {

                    // monitoring level is changed to HIGH
                    if ("HIGH".equalsIgnoreCase(newMonitoring)) {
                        traceMgr.enable(appId, epName, historySize);

                    // monitoirng level is changed from HIGH to LOW or OFF
                    } else if ("HIGH".equalsIgnoreCase(oldMonitoring)) {
                        traceMgr.disable(appId, epName);
                    }
                } else {
                    // old history size
                    String oldHs = oWsep.getMaxHistorySize();
                    int oldHistorySize = 0;
                    if (oldHs != null) {
                        oldHistorySize = Integer.parseInt(oldHs);
                    }

                    // history size has changed and monitoring level is HIGH
                    if ((historySize != oldHistorySize)
                            && ("HIGH".equalsIgnoreCase(newMonitoring))) {

                        traceMgr.setMessageHistorySize(appId, epName,
                                                        historySize);
                    }
                }
                   
                AppServWSMonitorLifeCycleProvider aplifeProv =
View Full Code Here

                // monitoring level
                String newMonitoring = wsep.getMonitoring();

                if ("HIGH".equalsIgnoreCase(newMonitoring)) {
                    // enables message trace for this endpoint
                    MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();
                    traceMgr.enable(appId, epName, historySize);
                }

                AppServWSMonitorLifeCycleProvider aplifeProv =
                    new AppServWSMonitorLifeCycleProvider();
                aplifeProv.reconfigureMonitoring(wsep, appId,
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.wsmgmt.msg.MessageTraceMgr

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.