Package org.jboss.dna.common.util

Examples of org.jboss.dna.common.util.Logger.error()


     */
    public void start() {
        if (getProblems().hasErrors()) {
            // First log the messages ...
            Logger log = Logger.getLogger(getClass());
            log.error(RepositoryI18n.errorsPreventStarting);
            for (Problem problem : getProblems()) {
                log.error(problem.getMessage(), problem.getParameters());
            }
            // Then throw an exception ...
            throw new IllegalStateException(RepositoryI18n.errorsPreventStarting.text());
View Full Code Here


        if (getProblems().hasErrors()) {
            // First log the messages ...
            Logger log = Logger.getLogger(getClass());
            log.error(RepositoryI18n.errorsPreventStarting);
            for (Problem problem : getProblems()) {
                log.error(problem.getMessage(), problem.getParameters());
            }
            // Then throw an exception ...
            throw new IllegalStateException(RepositoryI18n.errorsPreventStarting.text());
        }
        repositoryService.getAdministrator().start();
View Full Code Here

                    SequencerContext sequencerContext = new SequencerContext(context, graph);
                    try {
                        sequencer.execute(node, propertyName, change, outputPaths, sequencerContext, problems);
                        sequencerContext.getDestination().submit();
                    } catch (SequencerException e) {
                        logger.error(e, RepositoryI18n.errorWhileSequencingNode, sequencerName, change);
                    }
                }
                this.statistics.recordNodeSequenced();
            }
        } catch (Throwable e) {
View Full Code Here

                    }
                }
                this.statistics.recordNodeSequenced();
            }
        } catch (Throwable e) {
            logger.error(e, RepositoryI18n.errorFindingSequencersToRunAgainstNode, change);
        }
    }

    /**
     * The statistics for the system. Each sequencing system has an instance of this class that is updated.
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.