Package org.rhq.plugins.jbossas

Examples of org.rhq.plugins.jbossas.JBossASServerComponent


import org.rhq.plugins.jbossas.JBossASServerComponent;
import org.rhq.plugins.jbossas.util.FileContentDelegate;

public class ESBComponent extends AbstractESBComponent {
   public File getConfigurationPath() {
     JBossASServerComponent jass = (JBossASServerComponent) resourceContext.getParentResourceComponent();
     return jass.getConfigurationPath();
   }
View Full Code Here


    }

    public CreateResourceReport createResource(CreateResourceReport report) {

        JBossASServerComponent parentResourceComponent = (JBossASServerComponent) ctx.getParentResourceComponent();
        Configuration config = report.getResourceConfiguration();
        String name = report.getUserSpecifiedResourceName();
        //       String name = config.getSimple("MBeanName").getStringValue();
        //       PropertySimple nameTemplateProp = report.getPluginConfiguration().getSimple("nameTemplate");
        //       String rName = nameTemplateProp.getStringValue();
        //noinspection ConstantConditions
        //       rName = rName.replace("{name}", name);

        // TODO check for duplcicate name/mbean

        //       PropertySimple pluginNameProperty = new PropertySimple("name", rName);
        //       ctx.getPluginConfiguration().put(pluginNameProperty);

        File deployDir = new File(parentResourceComponent.getConfigurationPath() + "/deploy");
        File deploymentFile = new File(deployDir, FileNameUtility.formatFileName(name) + "-cache-service.xml");

        String flavour = config.getSimple("Flavour").getStringValue();
        boolean isTc = false;
        if (flavour != null && flavour.startsWith("tree"))
View Full Code Here

            //Just continue with the next discovery attempt.
        }

        try {
            if (parentResourceComponent instanceof JBossASServerComponent) {
                JBossASServerComponent parentComponent = (JBossASServerComponent) parentResourceComponent;

                return parentComponent.getPluginConfiguration()
                    .getSimple(parentComponent.CONFIGURATION_PATH_CONFIG_PROP).getStringValue()
                    + JBOSS_AS4_CONFIGURATION_FILE_RELATIVE_PATH;
            }
        } catch (java.lang.NoClassDefFoundError e) {
            //Do absolutely nothing, that means the class loader does not have this module loaded.
View Full Code Here

TOP

Related Classes of org.rhq.plugins.jbossas.JBossASServerComponent

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.