Package com.sun.enterprise.admin.servermgmt

Examples of com.sun.enterprise.admin.servermgmt.RepositoryConfig


            throw new ConfigException(e);
        }
    }
   
    private Config getTemplateConfig(final String profile) throws IllegalArgumentException, ConfigException {
        final RepositoryConfig myRepos = new RepositoryConfig(); //all system properties are taken care of.
        final PEFileLayout layout = new PEFileLayout(myRepos);
        final File profileDomainXmlTemplate = layout.getPreExistingDomainXmlTemplateForProfile(profile);
        if (! profileDomainXmlTemplate.exists()) {
            final String msg = localStrings.getString("template.domain.xml.not.found",
                    profileDomainXmlTemplate.getAbsolutePath(), profile);
View Full Code Here


    private RuntimeStatus getRuntimeStatus() throws InstanceException
    {       
        String serverName =
            System.getProperty(SystemPropertyConstants.SERVER_NAME);
        PEInstancesManager manager = new PEInstancesManager(new RepositoryConfig());
        return RuntimeStatus.getRuntimeStatus(serverName, manager);       
    }
View Full Code Here

    public RuntimeStatus getRuntimeStatus() throws InstanceException
    {       
        String serverName =
            System.getProperty(SystemPropertyConstants.SERVER_NAME);
        EEInstancesManager manager = new EEInstancesManager(new RepositoryConfig());
        return RuntimeStatus.getRuntimeStatus(serverName, manager);       
    }
View Full Code Here

           
            switch(type)
            {
                case DAS:
                    // e.g. /as/domains/domain1 --> repName=domain1, repRoot=/as/domains
                config = new RepositoryConfig(serverDir.getName(), parent.getPath());
                break;
               
                case INSTANCE:
                config = new RepositoryConfig(serverDir.getAbsolutePath());
                break;

                case NA:
                    // e.g. /as/nodeagents/na1/agent --> repName=na1,
                    // repRoot=/as/nodeagents and instanceName=agent
View Full Code Here

   
    protected RepositoryConfig getConfigForRepositoryStatus(RepositoryConfig config,
        String repository)
    {
        //The repository here corresponds to the node agent name       
        return new RepositoryConfig(repository,
            config.getRepositoryRoot(), config.getInstanceName());
       
    }
View Full Code Here

                commandLineArgs.add(
                    IAdminConstants.NODEAGENT_RESTARTINSTANCES_OVERRIDE +
                    "=" + restartInstancesOverride);
            }
            // set interativeOptions for security to hand to starting process from ProcessExecutor
            RepositoryConfig config=getConfig();
            String[] options = getInteractiveOptions(
                (String)config.get(AgentConfig.K_DAS_USER),
                (String)config.get(AgentConfig.K_DAS_PASSWORD),
                (String)config.get(AgentConfig.K_MASTER_PASSWORD),
                (HashMap)config.get(AgentConfig.K_EXTRA_PASSWORDS));
            String[] commLineArgs = new String[commandLineArgs.size()];
            for (int i = 0; i < commandLineArgs.size(); i++)
                commLineArgs[i] = commandLineArgs.get(i);
            startInstance(options, commLineArgs, getEnvProps());           
        } catch (Exception e) {
View Full Code Here

    @Override
    protected Properties getEnvProps() {
        // this is where we get the info that used to be buried in the startserv script.
        // this will eventually be passed to PEInstancesManager to set in System once a copy
        // of the existing SystemProps is saved...
        RepositoryConfig cfg = getConfig();
        Properties p = new Properties();
       
        p.setProperty("com.sun.aas.processName", "s1as8-nodeagent");
        p.setProperty("com.sun.aas.instanceName", cfg.getRepositoryName());
        p.setProperty("com.sun.aas.instanceRoot", cfg.getRepositoryRoot() + File.separator + cfg.getRepositoryName() + File.separator + "agent");

        return p;
    }
View Full Code Here

   
    protected RepositoryConfig getConfigForRepositoryStatus(RepositoryConfig config,
        String repository)
    {
        //The repository here corresponds to the instance name               
        return new RepositoryConfig(config.getRepositoryName(),
            config.getRepositoryRoot(), repository);       
    }
View Full Code Here

    protected Properties getEnvProps()
    {
        // this is where we get the info that used to be buried in the startserv script.
        // this will eventually be passed to PEInstancesManager to set in System once a copy
        // of the existing SystemProps is saved...
        RepositoryConfig cfg = getConfig();
        Properties p = new Properties();

        p.setProperty("com.sun.aas.instanceRoot", cfg.getRepositoryRoot() + File.separator + cfg.getRepositoryName() + File.separator + cfg.getInstanceName());
        p.setProperty("com.sun.aas.launcherReturn", "return");
        p.setProperty("com.sun.aas.instanceName", cfg.getInstanceName());
        p.setProperty("com.sun.aas.processName", "as9-server");
        p.setProperty("com.sun.aas.processLauncher", "SE");
        p.setProperty("com.sun.aas.limitedCommamdExecution", "true");
       
        return p;
View Full Code Here

            //Add/override properties in the cloned configuration
            addConfigurationProperties(newConfig, props);

            //Copy the configuration directory from the central repository
            EEDomainsManager mgr = new EEDomainsManager();
            mgr.copyConfigururation(new RepositoryConfig(),
                sourceConfigName, newConfigName)
           
            //Set the name of the newly created standalone configuration and add it to the
            //list of configurations
            newConfig.setName(newConfigName);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.servermgmt.RepositoryConfig

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.