Package org.rhq.core.pluginapi.inventory

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent


    }

    @Test
    public void factoryShouldInitializeLegacyConfigMgmtWithComponentService() throws Exception {
        final boolean daemonOnly = true;
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here


    }

    @Test
    public void factoryShouldInitializeLegacyConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

        assertConfigurationUtilityServiceInitialized(loadConfig);
    }

    @Test
    public void factoryShouldInitializeStructuredConfigMgmtWithComponentService() throws Exception {
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                boolean daemonOnly = true;
View Full Code Here

    @Test
    public void factoryShouldInitializeStructuredConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

    @Test
    public void factoryShouldInitializeRawConfigMgmtWithComponentService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

    @Test
    public void factoryShouldInitializeRawConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

    @Test
    public void factoryShouldInitializeLoadStructuredAndRawWithComponentService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

    @Test
    public void factoryShouldInitializeLoadStructuredAndRawWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;
        final boolean onlyIfStarted = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

     * @throws Throwable if the discovery component threw an exception
     */
    public List<URL> invokeDiscoveryComponentClassLoaderFacet(Resource resource, ResourceDiscoveryComponent component,
        ResourceContainer parentContainer) throws Throwable {

        ResourceComponent parentComponent = parentContainer.getResourceComponent();
        ResourceContext parentResourceContext = parentContainer.getResourceContext();

        ResourceType resourceType = resource.getResourceType();
        long timeout = getDiscoveryComponentTimeout();

View Full Code Here

        Resource resource = null;
        boolean resourceAlreadyExisted = false;

        try {
            ResourceContainer parentResourceContainer = getResourceContainer(parentResourceId);
            ResourceComponent parentResourceComponent = parentResourceContainer.getResourceComponent();

            // Get the discovery component responsible for discovering resources of the specified resource type.
            PluginComponentFactory pluginComponentFactory = PluginContainer.getInstance().getPluginComponentFactory();
            ResourceDiscoveryComponent discoveryComponent = pluginComponentFactory.getDiscoveryComponent(resourceType,
                parentResourceContainer);
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.inventory.ResourceComponent

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.