Package com.sun.enterprise.admin.remote

Examples of com.sun.enterprise.admin.remote.AdminCommandStateImpl


    private Object process(final String name, Object event) {
        if (processor != null && AdminCommandStateImpl.EVENT_STATE_CHANGED.equals(name)) {
            AdminCommandState acs = (AdminCommandState) event;
            ActionReport report = processor.process(acs.getActionReport(), eventOuptut);
            event = new AdminCommandStateImpl(acs.getState(), report, acs.isOutboundPayloadEmpty(), acs.getId());
        }
        return event;
    }
View Full Code Here


                        "Unexpected exception during command execution. {0}",
                        thr.toString()));
                ActionReport actionReport = new PropsFileActionReporter(); //new RestActionReporter();
                actionReport.setFailureCause(thr);
                actionReport.setActionExitCode(ActionReport.ExitCode.FAILURE);
                AdminCommandState acs = new AdminCommandStateImpl(AdminCommandState.State.COMPLETED, actionReport, true, "unknown");
                listener.onAdminCommandEvent(AdminCommandStateImpl.EVENT_STATE_CHANGED, acs);
            } finally {
                try {
                    eventChannel.close();
                } catch (IOException ex) {
View Full Code Here

            RestLogging.restLogger.log(Level.WARNING, RestLogging.UNEXPECTED_EXCEPTION,
                    thr);
            ActionReport actionReport = new PropsFileActionReporter(); //new RestActionReporter();
            actionReport.setFailureCause(thr);
            actionReport.setActionExitCode(ActionReport.ExitCode.FAILURE);
            AdminCommandState acs = new AdminCommandStateImpl(AdminCommandState.State.COMPLETED, actionReport, true, "unknown");
            onAdminCommandEvent(AdminCommandStateImpl.EVENT_STATE_CHANGED, acs);
        } finally {
            try {
                eventOuptut.close();
            } catch (IOException ex) {
View Full Code Here

    private Object process(final String name, Object event) {
        if (processor != null && AdminCommandStateImpl.EVENT_STATE_CHANGED.equals(name)) {
            AdminCommandState acs = (AdminCommandState) event;
            ActionReport report = processor.process(acs.getActionReport(), eventOuptut);
            event = new AdminCommandStateImpl(acs.getState(), report, acs.isOutboundPayloadEmpty(), acs.getId());
        }
        return event;
    }
View Full Code Here

                                                    "Unexpected exception during command execution. {0}",
                                                    thr.toString()));
                            ActionReport ar = new PropsFileActionReporter(); //new RestActionReporter();
                            ar.setFailureCause(thr);
                            ar.setActionExitCode(ActionReport.ExitCode.FAILURE);
                            AdminCommandState acs = new AdminCommandStateImpl(AdminCommandState.State.COMPLETED, ar, true, "unknown");
                            listener.onAdminCommandEvent(AdminCommandStateImpl.EVENT_STATE_CHANGED, acs);
                        } finally {
                            try {
                                ec.close();
                            } catch (IOException ex) {
View Full Code Here

                        "Unexpected exception during command execution. {0}",
                        thr.toString()));
                ActionReport actionReport = new PropsFileActionReporter(); //new RestActionReporter();
                actionReport.setFailureCause(thr);
                actionReport.setActionExitCode(ActionReport.ExitCode.FAILURE);
                AdminCommandState acs = new AdminCommandStateImpl(AdminCommandState.State.COMPLETED, actionReport, true, "unknown");
                listener.onAdminCommandEvent(AdminCommandStateImpl.EVENT_STATE_CHANGED, acs);
            } finally {
                try {
                    eventChannel.close();
                } catch (IOException ex) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.remote.AdminCommandStateImpl

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.