Package org.rhq.core.clientapi.descriptor.plugin

Examples of org.rhq.core.clientapi.descriptor.plugin.PluginDescriptor


        assert customJmxServer.getChildResourceTypes().size() == 2; // now has the new injected service
        assert customJmxServer.getChildResourceTypes().contains(customJmxService);
    }

    private PluginDescriptor loadPluginDescriptor(String file) throws Exception {
        PluginDescriptor pluginDescriptor;

        URL descriptorUrl = this.getClass().getClassLoader().getResource(file);
        System.out.println("Loading plugin descriptor at: " + descriptorUrl);

        pluginDescriptor = AgentPluginDescriptorUtil.parsePluginDescriptor(descriptorUrl
View Full Code Here


            String descriptor = DESCRIPTORS_LOCATION + entry.getKey() + ".xml";
            File file = entry.getValue();
            buildPluginJar(descriptor, file);
            assert file.exists();

            PluginDescriptor pluginDescriptor = AgentPluginDescriptorUtil.loadPluginDescriptorFromUrl(file.toURI()
                .toURL());
            testPluginDescriptors.put(entry.getKey(), pluginDescriptor);

            Plugin pluginPojo = new Plugin(PLUGIN_NAME, file.getName());
            pluginPojo.setVersion(pluginDescriptor.getVersion());
            pluginPojo.setMd5(MessageDigestGenerator.getDigestString(file));
            pluginPojo.setMtime(testTimestamps.get(entry.getKey()).getTime());
            testPlugins.put(entry.getKey(), pluginPojo);
        }
View Full Code Here

            String descriptor = DESCRIPTORS_LOCATION + entry.getKey() + ".xml";
            File file = entry.getValue();
            buildPluginJar(descriptor, file);
            assert file.exists();

            PluginDescriptor pluginDescriptor = AgentPluginDescriptorUtil.loadPluginDescriptorFromUrl(file.toURI()
                .toURL());
            testPluginDescriptors.put(entry.getKey(), pluginDescriptor);

            Plugin pluginPojo = new Plugin(PLUGIN_NAME, file.getName());
            pluginPojo.setVersion(pluginDescriptor.getVersion());
            pluginPojo.setMd5(MessageDigestGenerator.getDigestString(file));
            pluginPojo.setMtime(testTimestamps.get(entry.getKey()).getTime());
            testPlugins.put(entry.getKey(), pluginPojo);
        }
View Full Code Here

        if (pluginId != null) {
            Plugin plugin = this.testPlugins.get(pluginId);
            Plugin pluginDup = new Plugin(plugin.getName(), plugin.getPath(), plugin.getMd5());
            pluginDup.setMtime(plugin.getMtime());
            pluginDup.setVersion(plugin.getVersion());
            PluginDescriptor pluginDescriptor = this.testPluginDescriptors.get(pluginId);
            File localPluginFile = this.testPluginFiles.get(pluginId);
            pluginMgr.registerPlugin(pluginDup, pluginDescriptor, localPluginFile, false);
        }
        return;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.clientapi.descriptor.plugin.PluginDescriptor

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.