Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.InstanceEnvironment


        timerCache_     = new TimerCache();
        shutdown_       = false;
        this.appID = appID;

        domainName_ = ServerManager.instance().getDomainName();
        InstanceEnvironment server =
            ApplicationServer.getServerContext().getInstanceEnvironment();
        serverName_ = server.getName();

        initProperties();
    }
View Full Code Here


                setPerformDBReadBeforeTimeout( false );
            }

            // Compose owner id for all timers created with this
            // server instance. 
            InstanceEnvironment server = sc.getInstanceEnvironment();
            String serverName = server.getName();
            ownerIdOfThisServer_ = serverName;

        } catch(Exception e) {
            logger.log(Level.FINE, "Exception converting timer service " +
               "domain.xml properties.  Defaults will be used instead.", e);
View Full Code Here

        throws Exception
    {
        File timerServiceShutdownDirectory;
        File timerServiceShutdownFile;

        InstanceEnvironment env = ApplicationServer.getServerContext().
                                    getInstanceEnvironment();
        AppsManager appsManager = new AppsManager(env, false);

        String j2eeAppPath = appsManager.getLocation(appID);
        timerServiceShutdownDirectory = new File(j2eeAppPath + File.separator);
View Full Code Here

     * @return    the environment object for this server instance
     */
    public InstanceEnvironment getInstanceEnvironment() {
        if (this.instanceEnvironment == null) {
            this.instanceEnvironment =
                new InstanceEnvironment(this.instanceName);
        }
        return this.instanceEnvironment;
    }
View Full Code Here

     */
    private DeploymentRequest deploy(File archive)
            throws IASDeploymentException {

        // instance environment for this server
        InstanceEnvironment env =
            ApplicationServer.getServerContext().getInstanceEnvironment();

        // sets the type of the archive being deployed
        DeployableObjectType type = null;
        if ( FileUtils.isEar(archive) ) {
View Full Code Here

    public boolean reload(MonitorableEntry entry) {
        // The actual reload is done by the NSAPI reconfiguration logic which
        // the reload monitor thread invokes (at the end), so simply return
        // true here.
       
        InstanceEnvironment ienv = ApplicationServer.getServerContext().getInstanceEnvironment();
       
        //4926513 work-around --- use displayname
        // for "foo", the id will be "foo[0]"
        //String moduleName = entry.getId();
        String moduleName = entry.getDisplayName();
View Full Code Here

       
            final DeploymentTarget target =
                DeploymentServiceUtils.getAndValidateDeploymentTarget(
                    targetName, referenceName, false);
           
            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.DEPLOY);
View Full Code Here

            final DeploymentTarget target = enforceValidation ?
                DeploymentServiceUtils.getAndValidateDeploymentTarget(
                    targetName, referenceName, false) :
                DeploymentServiceUtils.getDeploymentTarget(targetName);

            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.DEPLOY);
View Full Code Here

           
            final DeploymentTarget target =
                DeploymentServiceUtils.getAndValidateDeploymentTarget(
                targetName, referenceName, true);
               
            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.UNDEPLOY);
View Full Code Here

            final DeploymentTarget target =
                DeploymentServiceUtils.getAndValidateDeploymentTarget(
                targetName, referenceName, true);

            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.UNDEPLOY);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.instance.InstanceEnvironment

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.