Examples of executeServiceScanImmediately()


Examples of org.rhq.core.clientapi.agent.discovery.DiscoveryAgentService.executeServiceScanImmediately()

        PluginContainer pc = PluginContainer.getInstance();

        DiscoveryAgentService discovery = pc.getDiscoveryAgentService();

        discovery.executeServerScanImmediately();
        discovery.executeServiceScanImmediately();

        Resource platform = discovery.getPlatform();

        return platform;
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.discovery.DiscoveryAgentService.executeServiceScanImmediately()

        PluginContainer pc = PluginContainer.getInstance();

        DiscoveryAgentService discovery = pc.getDiscoveryAgentService();

        discovery.executeServerScanImmediately();
        discovery.executeServiceScanImmediately();

        return discovery.getPlatform();
    }

    private Resource findServer(String name, Resource platform)
View Full Code Here

Examples of org.rhq.core.pc.inventory.InventoryManager.executeServiceScanImmediately()

            if (!blacklist.isEmpty()) {
                out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_BLACKLISTED_TYPES, blacklist));
            }
            long start = System.currentTimeMillis();
            InventoryReport scan1 = inventoryManager.executeServerScanImmediately();
            InventoryReport scan2 = inventoryManager.executeServiceScanImmediately();
            out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_FULL_RUN, (System.currentTimeMillis() - start)));
            printInventoryReport(scan1, out, verbose);
            printInventoryReport(scan2, out, verbose);
        } else {
            try {
View Full Code Here

Examples of org.rhq.core.pc.inventory.InventoryManager.executeServiceScanImmediately()

                if (executeServerScan(resourceType)) {
                    inventoryManager.executeServerScanImmediately();
                }

                // Always execute a service scan
                inventoryManager.executeServiceScanImmediately();
            } catch (Throwable throwable) {
                log.warn("Error occurred on resource discovery request" + throwable);
            }
        }
View Full Code Here

Examples of org.rhq.core.pc.inventory.InventoryManager.executeServiceScanImmediately()

        PluginContainer.getInstance().initialize();

        InventoryManager im = PluginContainer.getInstance().getInventoryManager();
        for (int i = 0; i < CURRENT_SETUP.get().numberOfInitialDiscoveries(); ++i) {
            im.executeServerScanImmediately();
            im.executeServiceScanImmediately();
        }
    }

    /**
     * This method can be called in the after methods of the tests to clear up data
View Full Code Here

Examples of org.rhq.core.pc.inventory.InventoryManager.executeServiceScanImmediately()

        im.updatePluginConfiguration(apacheServer.getResource().getId(), config);

        //and run discovery so that the new resources can go into inventory

        im.executeServiceScanImmediately();
    }

    private ResourceContainer findApacheServerResource() throws Exception {
        InventoryManager im = PluginContainer.getInstance().getInventoryManager();
        ResourceTypes resourceTypes = new ResourceTypes(PluginLocation.APACHE_PLUGIN);
View Full Code Here

Examples of org.rhq.core.pc.inventory.InventoryManager.executeServiceScanImmediately()

            InventoryManager inventoryManager = PluginContainer.getInstance().getInventoryManager();
            System.out.println("Executing server discovery scan...");
            inventoryManager.executeServerScanImmediately();
            System.out.println("Executing service discovery scan...");
            inventoryManager.executeServiceScanImmediately();
        } catch (Exception e) {
            e.printStackTrace();
            fail("Failed to initialize the plugin container.", 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.