Package org.fcrepo.server.utilities.status

Examples of org.fcrepo.server.utilities.status.ServerStatusFile


        }

        logger.info("Fedora Version: " + Server.VERSION);
        logger.info("Fedora Build Date: " + Server.BUILD_DATE);

        ServerStatusFile status = getStatusFile();
        try {
            status.append(ServerState.STARTING,
                    "Fedora Version: " + Server.VERSION);
            status.append(ServerState.STARTING,
                    "Fedora Build Date: " + Server.BUILD_DATE);
            status.append(ServerState.STARTING, "Server Host Name: "
                    + fedoraServerHost);
            status.append(ServerState.STARTING, "Server Port: "
                    + fedoraServerPort);
        } catch (Exception e) {
            e.printStackTrace();
            throw new ServerInitializationException("Unable to write to status file: "
                    + e.getMessage());
View Full Code Here


    public void init(ServletConfig config) throws ServletException {
        super.init(config);
        File fedoraHomeDir = getFedoraHomeDir();
        // get file for writing startup status
        try {
            m_status = new ServerStatusFile(new File(fedoraHomeDir, "server"));
        } catch (Throwable th) {
            failStartup("Error initializing server status file", th);
        }

        try {
View Full Code Here

        m_initialized = false;
        m_loadedModuleRoles = new HashSet<String>();
        m_serverDir = new File(homeDir, "server");
        m_uploadDir = new File(m_serverDir, "management/upload");
        try{
            m_statusFile = new ServerStatusFile(m_serverDir);
        } catch (Exception e) {
            throw new ServerInitializationException(e.toString());
        }
        File logDir = new File(m_serverDir, "logs");
        if (!logDir.exists()) {
View Full Code Here

TOP

Related Classes of org.fcrepo.server.utilities.status.ServerStatusFile

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.