Examples of DiscoveredResourceDetails


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

            File info = new File("/proc/acpi/info");

            pluginConfig.put(new PropertySimple("type", HardwareType.ACPI_IBM));

            DiscoveredResourceDetails details =
                    new DiscoveredResourceDetails(
                            resourceDiscoveryContext.getResourceType(),
                            PROC_ACPI_IBM,
                            "IBM Hardware",
                            null,
                            "IBM Hardware Monitoring",
View Full Code Here

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

                    + "].  This is not allowed and they will be removed from discovery.  This is typically caused by "
                    + "having multiple versions of the same Deployment deployed.  To solve the problem either remove "
                    + "all but one version of the problem deployment or disable versioned deployment handling by "
                    + "setting -Drhq.as7.VersionedSubsystemDiscovery.pattern=disable for the agent.");
                for (Iterator<DiscoveredResourceDetails> i = updatedDetails.iterator(); i.hasNext();) {
                    DiscoveredResourceDetails detail = i.next();
                    if (detail.getResourceKey().equals(entry.getKey())) {
                        i.remove();
                    }
                }
            }
        }
View Full Code Here

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

        Exception {

        Set<DiscoveredResourceDetails> details = new HashSet<DiscoveredResourceDetails>();
        if (new File("/etc/postfix/access").exists()) {
            Configuration pluginConfig = discoveryContext.getDefaultPluginConfiguration();
            DiscoveredResourceDetails detail = new DiscoveredResourceDetails(discoveryContext.getResourceType(),
                RESOURCE_KEY, "Access File", null, RESOURCE_KEY, pluginConfig, null);
            details.add(detail);
        }
        return details;
    }
View Full Code Here

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

            String resourceName = resourceKey;
            String resourceVersion = "1.0";
            String resourceDescription = resourceKey + " description";
            Configuration pluginConfiguration = new Configuration();

            DiscoveredResourceDetails details = new DiscoveredResourceDetails(resourceType, resourceKey, resourceName,
                resourceVersion, resourceDescription, pluginConfiguration, null);

            discoveredResources.add(details);

            if (discoveryDelay>0) {
View Full Code Here

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

            conf.put(new PropertySimple(
                    JBossCacheDetailComponent.CACHE_DETAIL_BEAN_NAME,
                    beanName));
            conf.put(new PropertySimple(CACHE_JMX_NAME, jmxName));

            resources.add(new DiscoveredResourceDetails(resourceType,
                    beanName, resourceType.getName(), "", "JBoss Cache",
                    conf, null));
        }

    log.trace("Discovered " + resources.size() + " " + resourceType.getName() + " Resources.");
View Full Code Here

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

                    resourceName = objName.getKeyProperty(objectName);
                }
            }

            ResourceType resourceType = context.getResourceType();
            resources.add(new DiscoveredResourceDetails(resourceType, beanName,
                    resourceName, null, DEFAULT_RESOURCE_DESCRIPTION, pluginConfig, null));
        }

    return resources;
  }
View Full Code Here

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

                String version = project.getString("version");
                if (description.length() > 1000) {
                    description = description.substring(0, 999);
                }

                DiscoveredResourceDetails detail = new DiscoveredResourceDetails(discoveryContext.getResourceType(),
                    key, name, version, description, null, null);
                found.add(detail);
            }
            return found;
View Full Code Here

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

        SystemInfo sysinfo = context.getSystemInformation();
        HashSet<DiscoveredResourceDetails> set = new HashSet<DiscoveredResourceDetails>();
        //TODO This will really only work on rpm based systems.
        if (OperatingSystemType.LINUX == sysinfo.getOperatingSystemType()) {
            if (packageExists(sysinfo, "koan")) {
                DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(),
                    "Kickstart", "Kickstart", "1", "Koan Kickstart Engine", null, null);

                set.add(detail);
            }
        }
View Full Code Here

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

    public DiscoveredResourceDetails discoverResource(Configuration pluginConfiguration,
            ResourceDiscoveryContext<ResourceComponent<?>> context)
            throws InvalidPluginConfigurationException {

        String version = "";
        DiscoveredResourceDetails details = createResourceDetails(context, pluginConfiguration,
            version, null);
        return details;

    }
View Full Code Here

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

            Configuration pluginConfig, String version, @Nullable
            ProcessInfo processInfo) {
            String key = pluginConfig.getSimpleValue("url", "");
            String name = key;
            String description = "Database " + version + " (" + key + ")";
            return new DiscoveredResourceDetails(discoveryContext.getResourceType(), key, name, version, description,
                pluginConfig, processInfo);
        }
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.