Examples of InstanceDefinition


Examples of com.sun.enterprise.instance.InstanceDefinition

            else
            {
                sLogger.log(Level.INFO, "mbean.start_instance", mInstanceName);
            }

            InstanceDefinition instance = new InstanceDefinition(mInstanceName,
                    mHostAndPort.getPort());
            ServerManager.instance().startServerInstance(instance,passwords);
            /* calling start script*/

      // check if the instance has started
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

            InitConfFileBean conf = new InitConfFileBean();
            conf.initialise(mInstanceName, false);
            String security = conf.get_mag_var(InitConfFileBean.INITCONF_SECURITY_ATTRIBUTE);
            if(security.equalsIgnoreCase(InitConfFileBean.INITCONF_VALUE_ON))
            {
                InstanceDefinition instance = new InstanceDefinition(mInstanceName,
                        mHostAndPort.getPort());
                return ServerManager.instance().getSecurityTokensForInstance(instance);
                //FIXME: should be replaced by receiving actual tokens from security.db
                // this temp solution is just for starting UI work
                //return new String[]{"internal"};
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

        try
        {
            /* calling restart script */
            sLogger.log(Level.INFO, "mbean.restart_instance", mInstanceName);
            InstanceDefinition instance = new InstanceDefinition(
                                               mInstanceName,
                                               getHostAndPort().getPort());
            ServerManager.instance().restartServerInstance(instance);
            /*
             * There is certain time lapse between executing the subprocess
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

        /* calling stop script */
        try
        {
            sLogger.log(Level.INFO, "mbean.stop_instance", mInstanceName);
            InstanceDefinition instance = new InstanceDefinition(mInstanceName,
                    mHostAndPort.getPort());
            ServerManager.instance().stopServerInstance(instance);

      // check if the instance has stopped
      //
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

        MBeanServer mbs = MBeanServerFactory.getMBeanServer();
        if (!mbs.isRegistered(siObjectName))
        {
            try
            {
                InstanceDefinition instance = new InstanceDefinition(instanceName,
                        hostPort.getPort());
                if (runAsUser != null)
                {
                    instance.setUser(runAsUser);
                }
                ServerManager.instance().createServerInstance(instance);
                sLogger.log(Level.INFO, "mbean.created_instance", instanceName);
            }
            catch (Exception e)
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

        if (!mbs.isRegistered(siObjectName))
        {
            try
            {
                /* call the script to create instance */
                InstanceDefinition instance =
                    new InstanceDefinition(hAndp.getHost(), hAndp.getPort(),
                        instanceName, mailHost, user, docRoot, jmsPort,
                        jmsUser, jmsPasswd);
                ServerManager.instance().createServerInstance(instance);
                sLogger.log(Level.INFO, "mbean.created_instance", instanceName);
            }
View Full Code Here

Examples of com.sun.enterprise.instance.InstanceDefinition

    it's use is limited to construct the InstanceDefinition
    class
  */
  try
  {
    InstanceDefinition instanceDef = new InstanceDefinition(mInstanceId,
      testPort);
    svrMgr.stopServerInstance (instanceDef);
  }
  catch (Exception e)
  {
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.