Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.ModuleShutdownException


        try {
            consumerThread.shutdown();
            reader.shutdown();
            recoveryLog.shutdown("Server is shutting down.");
        } catch (JournalException e) {
            throw new ModuleShutdownException("Error closing journal reader.",
                                              role,
                                              e);
        }
    }
View Full Code Here


    public void shutdownModule() throws ModuleShutdownException {
        if(enabled()) {
            try {
                close();
            } catch (MessagingException e) {
                throw new ModuleShutdownException(e.getMessage(), getRole(), e);
            }
        }
    }
View Full Code Here

     *         recover from exceptional situations before throwing an exception.
     */
    public void shutdownModule() throws ModuleShutdownException {
        logger.info("Shutting down " + getClass().getName());
        if (1 == 2) {
            throw new ModuleShutdownException(null, null);
        }
    }
View Full Code Here

     */
    public void shutdown() throws ModuleShutdownException {
        try {
            writer.shutdown();
        } catch (JournalException e) {
            throw new ModuleShutdownException("JournalWriter generated an error on shutdown()",
                                              role,
                                              e);
        }
    }
View Full Code Here

    public void shutdownModule() throws ModuleShutdownException {
        if (_ri != null) {
            try {
                _ri.close();
            } catch (TrippiException e) {
                throw new ModuleShutdownException("Error closing RI",
                                                  getRole(),
                                                  e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.ModuleShutdownException

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.