Examples of PluginMetadataManager


Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

    private PluginMetadataManager metadataManager;

    @BeforeClass
    public void beforeClass() {
        try {
            this.metadataManager = new PluginMetadataManager();
        } catch (Throwable t) {
            // Catch RuntimeExceptions and Errors and dump their stack trace, because Surefire will completely swallow them
            // and throw a cryptic NPE (see http://jira.codehaus.org/browse/SUREFIRE-157)!
            t.printStackTrace();
            throw new RuntimeException(t);
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

    @BeforeClass
    public void beforeClass() {
        try {
            System.out.println("~~~~~ START " + ExtensionModelTest.class.getName() + " ~~~~~");
            this.metadataManager = new PluginMetadataManager();
        } catch (Throwable t) {
            // Catch RuntimeExceptions and Errors and dump their stack trace, because Surefire will completely swallow them
            // and throw a cryptic NPE (see http://jira.codehaus.org/browse/SUREFIRE-157)!
            t.printStackTrace();
            throw new RuntimeException(t);
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

     *
     * @throws IllegalStateException if there is none or more than 1 app servers
     * in the plugin container's inventory.
     */
    public static Resource getASResource() {
        PluginMetadataManager pluginMetadataManager = PluginContainer.getInstance().getPluginManager()
            .getMetadataManager();
        ResourceType appServerResourceType = pluginMetadataManager.getType(APPLICATION_SERVER_RESOURCE_NAME,
            PLUGIN_NAME);

        InventoryManager inventoryManager = PluginContainer.getInstance().getInventoryManager();

        Set<Resource> appServers = inventoryManager.getResourcesWithType(appServerResourceType);
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

    }

    protected static Set<ResourceType> getResourceTypes(String pluginName) {
        Set<ResourceType> ret = new HashSet<ResourceType>();
        PluginManager pluginManager = PluginContainer.getInstance().getPluginManager();
        PluginMetadataManager pluginMetadataManager = pluginManager.getMetadataManager();
        for (ResourceType res : pluginMetadataManager.getAllTypes()) {
            if (pluginName.equals(res.getPlugin())) {
                ret.add(res);
            }
        }
        return ret;
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

        return ret;
    }

    protected static ResourceType getResourceType(String resourceTypeName, String pluginName) {
        PluginManager pluginManager = PluginContainer.getInstance().getPluginManager();
        PluginMetadataManager pluginMetadataManager = pluginManager.getMetadataManager();
        return pluginMetadataManager.getType(resourceTypeName, pluginName);
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

        return getResources(getResourceType());
    }

    protected static ResourceType getResourceType(String resourceTypeName, String pluginName) {
        PluginManager pluginManager = PluginContainer.getInstance().getPluginManager();
        PluginMetadataManager pluginMetadataManager = pluginManager.getMetadataManager();
        return pluginMetadataManager.getType(resourceTypeName, pluginName);
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

    }

    @Deprecated
    protected ResourceType getServerResource() {
        PluginManager pluginManager = PluginContainer.getInstance().getPluginManager();
        PluginMetadataManager pluginMetadataManager = pluginManager.getMetadataManager();
        return pluginMetadataManager.getType("JBossAS Server", getPluginName());
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

        }
        return matchingOperationDefinition;
    }

    private boolean supportsFacet(Class<?> facetInterface) {
        PluginMetadataManager manager = PluginContainer.getInstance().getPluginManager().getMetadataManager();
        String componentClass;
        try {
            componentClass = manager.getComponentClass(getResourceType());
        } catch (ResourceTypeNotEnabledException rtne) {
            throw new RuntimeException(rtne);
        }

        try {
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

        }
    }

    public static ConfigurationDefinition getConfigurationDefinition(PluginContainer container, Components component) {
        PluginManager pluginManager = container.getPluginManager();
        PluginMetadataManager pluginMetadataManager = pluginManager.getMetadataManager();

        ResourceType type =
            pluginMetadataManager.getType(component.getComponentName(), ApacheTestConstants.PLUGIN_NAME);
        ConfigurationDefinition configDef = type.getResourceConfigurationDefinition();
        return configDef;
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager

   * @throws IllegalStateException
   *             if there is none or more than 1 app servers in the plugin
   *             container's inventory.
   */
  public static Resource getASResource() {
    PluginMetadataManager pluginMetadataManager = PluginContainer
        .getInstance().getPluginManager().getMetadataManager();
    ResourceType appServerResourceType = pluginMetadataManager.getType(
        APPLICATION_SERVER_RESOURCE_NAME, PLUGIN_NAME);

    InventoryManager inventoryManager = PluginContainer.getInstance()
        .getInventoryManager();

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.