Examples of appendMessage()


Examples of org.glassfish.api.ActionReport.appendMessage()

                return;
            }
        } else if (isAll && !dryRun) {
            report.appendMessage(localStrings.getLocalString("create.module.config.creating.all",
                    "Creating all default configuration elements that are not present in the domain.xml under target {0}.", target));
            report.appendMessage(LINE_SEPARATOR);
            try {
                createAllMissingElements(report);
            } catch (Exception e) {
                String msg = localStrings.getLocalString("create.module.config.creating.all.failed",
                        "Failed to create all default configuration elements that are not present in the domain.xml under target {0} due to {1}.", target, e.getLocalizedMessage());
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                                listener.setTransport(spdyTransportName);
                                return listener;
                            }
                        }, networkListener);

                        report.appendMessage(String.format(" **NOTE** In order to support SPDY %s network listener's transport has been changed to %s.\n", networkListener.getName(), spdyTransportName));
                    }
                }
            }
           
            ConfigSupport.apply(new SingleConfigCode<Http>() {
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

            report.setMessage(String.format("Unable to enable SPDY for protocol %s.  See log for details.", protocolName));
            report.setActionExitCode(ActionReport.ExitCode.FAILURE);
            report.setFailureCause(e);
            return;
        }
        report.appendMessage("SPDY enabled.\n **NOTE** This is an experimental feature!\nFor any issues with the SPDY implementation, please log issues here: http://java.net/jira/browse/GRIZZLY .");
        report.setActionExitCode(ActionReport.ExitCode.SUCCESS);

    }

    /**
 
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                    if (commandUser != null && commandUser.equals(attachedUser))  {
                        purgeJob(attached.getId());

                    }
                    ar.setActionExitCode(attached.getActionReport().getActionExitCode());
                    ar.appendMessage(strings.getLocalString("attach.finished", "Command {0} executed with status {1}",attached.getName(),attached.getActionReport().getActionExitCode()));
                }
            }
        } else {

            if (jobInfo != null && jobInfo.state.equals(COMPLETED.toString())) {
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                if (attachedUser!= null && attachedUser.equals( jobInfo.user)) {
                    purgeJob(jobInfo.jobId);

                }
                ar.setActionExitCode(ActionReport.ExitCode.SUCCESS);
                ar.appendMessage(strings.getLocalString("attach.finished", "Command {0} executed{1}",jobName,jobInfo.exitCode));
            }
        }
    }

}
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                    loggerDescriptions.put(logger, desc); //Needed for REST xml and JSON output
                    loggerList.add(logger); //Needed for REST xml and JSON output                                   
                }
            }
           
            report.appendMessage(colFormatter.toString());
            report.appendMessage(System.getProperty("line.separator"));
           
            // Populate the extraProperties data structure for REST...
            Properties restData = new Properties();
            restData.put("loggerSubsystems", loggerSubsystems);
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                    loggerList.add(logger); //Needed for REST xml and JSON output                                   
                }
            }
           
            report.appendMessage(colFormatter.toString());
            report.appendMessage(System.getProperty("line.separator"));
           
            // Populate the extraProperties data structure for REST...
            Properties restData = new Properties();
            restData.put("loggerSubsystems", loggerSubsystems);
            restData.put("loggerDescriptions", loggerDescriptions);
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                report.setActionExitCode(ActionReport.ExitCode.FAILURE);
                report.setFailureCause(e);
                return;
            }
        } else if (isAll && !dryRun) {
            report.appendMessage(localStrings.getLocalString("create.module.config.creating.all",
                    "Creating all default configuration elements that are not present in the domain.xml under target {0}.", target));
            report.appendMessage(LINE_SEPARATOR);
            try {
                createAllMissingElements(report);
            } catch (Exception e) {
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                return;
            }
        } else if (isAll && !dryRun) {
            report.appendMessage(localStrings.getLocalString("create.module.config.creating.all",
                    "Creating all default configuration elements that are not present in the domain.xml under target {0}.", target));
            report.appendMessage(LINE_SEPARATOR);
            try {
                createAllMissingElements(report);
            } catch (Exception e) {
                String msg = localStrings.getLocalString("create.module.config.creating.all.failed",
                        "Failed to create all default configuration elements that are not present in the domain.xml under target {0} due to {1}.", target, e.getLocalizedMessage());
View Full Code Here

Examples of org.glassfish.api.ActionReport.appendMessage()

                    if (commandUser != null && commandUser.equals(attachedUser))  {
                        purgeJob(attached.getId());

                    }
                    ar.setActionExitCode(attached.getActionReport().getActionExitCode());
                    ar.appendMessage(strings.getLocalString("attach.finished", "Command {0} executed with status {1}",attached.getName(),attached.getActionReport().getActionExitCode()));
                }
            }
        } else {

            if (jobInfo != null && jobInfo.state.equals(COMPLETED.toString())) {
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.