Examples of addBundleDestinationBaseDirectory()


Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

                            String description = destBaseDir.getDescription();
                            List<String> accepts = new ArrayList<String>();
                            for(BundleDestination.Accepts accept : destBaseDir.getAccepts()) {
                                accepts.add(accept.getBundleType());
                            }
                            bundleConfiguration.addBundleDestinationBaseDirectory(name, valueContext, valueName,
                                description, accepts);
                        } else if (destDef instanceof BundleDestinationDefinition) {
                            BundleDestinationDefinition def = (BundleDestinationDefinition) destDef;

                            ResourceTypeBundleConfiguration.BundleDestinationDefinition.Builder bld = bundleConfiguration
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

            propDef.setDisplayName(TEST_BUNDLE_DESTBASEDIR_PROP);
            pcDef.put(propDef);
            em.persist(pcDef);

            ResourceTypeBundleConfiguration rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(TEST_DESTBASEDIR_NAME,
                ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context.pluginConfiguration.name(),
                TEST_BUNDLE_DESTBASEDIR_PROP, null);
            resourceType.setResourceTypeBundleConfiguration(rtbc);
            resourceType.setPluginConfigurationDefinition(pcDef);
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

        ResourceType resourceType = SessionTestHelper.createNewResourceType(em);

        ResourceTypeBundleConfiguration resourceTypeBundleConfiguration = new ResourceTypeBundleConfiguration(
            new Configuration());
        resourceTypeBundleConfiguration.addBundleDestinationBaseDirectory(getRandomString(),
            ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context.pluginConfiguration.name(),
            getRandomString(), getRandomString());
        resourceType.setResourceTypeBundleConfiguration(resourceTypeBundleConfiguration);

        Resource resource = SessionTestHelper.createNewResource(em, getRandomString(), resourceType);
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

            // each different resource type that supports bundle deployments needs to define its
            // bundle configuration to denote where the base directory location is found.
            // Today we support four ways: via plugin config property, resource config property,
            // measurement trait value, or strictly on the root file system (using no resource specific value)
            ResourceTypeBundleConfiguration rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_FS, Context.fileSystem.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_FS, null);
            serverTypeFS.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_PC, Context.pluginConfiguration.name(),
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_FS, Context.fileSystem.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_FS, null);
            serverTypeFS.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_PC, Context.pluginConfiguration.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_PC, null);
            serverTypePC.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_RC, Context.resourceConfiguration.name(),
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_PC, Context.pluginConfiguration.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_PC, null);
            serverTypePC.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_RC, Context.resourceConfiguration.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_RC, null);
            serverTypeRC.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_MT, Context.measurementTrait.name(),
View Full Code Here

Examples of org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.addBundleDestinationBaseDirectory()

            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_RC, Context.resourceConfiguration.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_RC, null);
            serverTypeRC.setResourceTypeBundleConfiguration(rtbc);

            rtbc = new ResourceTypeBundleConfiguration(new Configuration());
            rtbc.addBundleDestinationBaseDirectory(BUNDLE_CONFIG_NAME_MT, Context.measurementTrait.name(),
                BUNDLE_CONFIG_CONTEXT_VALUE_MT, null);
            serverTypeMT.setResourceTypeBundleConfiguration(rtbc);

            // each different resource needs to specify where exactly it wants the bundles deployed
            // using the different contexts that are supported.
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.