Package org.glassfish.api.admin

Examples of org.glassfish.api.admin.ServerEnvironment


        System.exit(1);
    }

    private static String getInstanceRoot() {
        try {
         ServerEnvironment se = (Globals.getDefaultHabitat() != null)?Globals.getDefaultHabitat().getComponent(ServerEnvironment.class):null;
         File fileInstanceRoot = (se == null)?null:se.getInstanceRoot();
         return (fileInstanceRoot != null)?fileInstanceRoot.getCanonicalPath():null;
        }
        catch(IOException e) {
            _logger.log(Level.FINE, "io_exception while getting the instanceRoot");
            return null;
View Full Code Here


            ReadableArchive archive = factory.openArchive(docRoot);

            if (report==null)
                report = new PlainTextActionReporter();

            ServerEnvironment env = services.getService(ServerEnvironment.class);

            DeployCommandParameters params = new DeployCommandParameters();
            params.contextroot = contextRoot;
            params.enabled = Boolean.FALSE;
            params.origin = OpsParams.Origin.deploy;
View Full Code Here

             */
            String logRoot = domain.getLogRoot();
            if (logRoot != null) {
                dir = new File(logRoot, accessLog);
            } else {
                ServerEnvironment env = services.getService(ServerEnvironment.class);
                dir = new File(env.getDomainRoot(), accessLog);
            }
        }
           
        if (_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE,
View Full Code Here

    private static final Logger _logger = SecurityLoggerInfo.getLogger();
   
    public void copyConfigFiles(ServiceLocator habitat, File fromInstanceDir, File domainXml) {
        //For security reasons, permit only an embedded server instance to carry out the copy operations
        ServerEnvironment se = habitat.getService(ServerEnvironment.class);
        if (!isEmbedded(se)) {
            return;
        }

        if ((fromInstanceDir == null) || (domainXml == null)) {
View Full Code Here

            ReadableArchive archive = factory.openArchive(docRoot);

            if (report==null)
                report = new PlainTextActionReporter();

            ServerEnvironment env = services.getService(ServerEnvironment.class);

            DeployCommandParameters params = new DeployCommandParameters();
            params.contextroot = contextRoot;
            params.enabled = Boolean.FALSE;
            params.origin = OpsParams.Origin.deploy;
View Full Code Here

             */
            String logRoot = domain.getLogRoot();
            if (logRoot != null) {
                dir = new File(logRoot, accessLog);
            } else {
                ServerEnvironment env = services.getService(ServerEnvironment.class);
                dir = new File(env.getDomainRoot(), accessLog);
            }
        }
           
        if (_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE,
View Full Code Here

TOP

Related Classes of org.glassfish.api.admin.ServerEnvironment

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.