Package org.rhq.enterprise.server.plugin.pc

Examples of org.rhq.enterprise.server.plugin.pc.MasterServerPluginContainerConfiguration


    private BundleServerPluginFacet bundlePlugin;

    public TestBundleServerPluginService(File tmpdir, BundleServerPluginFacet bundlePlugin) {
        // build the config at constructor time so tests have it even before the PC is initialized
        this.masterConfig = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir, tmpdir, null);
        this.bundlePlugin = bundlePlugin;
    }
View Full Code Here


    public TestMasterServerPluginContainer master;
    public MasterServerPluginContainerConfiguration masterConfig;

    public TestServerPluginService(File tmpdir) {
        // build the config at constructor time so tests have it even before the PC is initialized
        this.masterConfig = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir, tmpdir, null);
    }
View Full Code Here

     * some of these deployed or if you want to supply a custom one tailored for your test.
     */
    public List<Class<? extends AbstractTypeServerPluginContainer>> pluginContainerClasses;

    public StandardServerPluginService(File tmpdir) {
        this.masterConfig = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir, tmpdir, null);
        pluginContainerClasses = new ArrayList<Class<? extends AbstractTypeServerPluginContainer>>();
        pluginContainerClasses.add(AlertServerPluginContainer.class);
        pluginContainerClasses.add(BundleServerPluginContainer.class);
        pluginContainerClasses.add(ContentServerPluginContainer.class);
        pluginContainerClasses.add(GenericServerPluginContainer.class);
View Full Code Here

public abstract class TestServerPluginService extends ServerPluginService implements TestServerPluginServiceMBean {
    public TestMasterServerPluginContainer master;
    public MasterServerPluginContainerConfiguration masterConfig;

    protected TestServerPluginService(File tmpdir) {
        this.masterConfig = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir, tmpdir, null);
    }
View Full Code Here

    public TestGenericServerPluginContainer genericPC;
    public MasterServerPluginContainerConfiguration masterConfig;

    public TestGenericServerPluginService(File tmpdir) {
        // build the config at constructor time so tests have it even before the PC is initialized
        this.masterConfig = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir, tmpdir, null);
    }
View Full Code Here

    private void deleteAllTestPluginJars() {
        if (this.pluginService==null) {
            System.err.println("Plugin service was null !!");
            return;
        }
        MasterServerPluginContainerConfiguration masterConfig = this.pluginService.masterConfig;
        if (masterConfig==null)
            return;

        File pluginDirectory = masterConfig.getPluginDirectory();

        File[] files = pluginDirectory.listFiles();
        if (files != null) {
            for (File file : files) {
                if (file.getName().endsWith(".jar")) {
View Full Code Here

        providers.put(source.getId(), provider);
    }

    protected MasterServerPluginContainer createMasterPluginContainer() {
        MasterServerPluginContainer master = new TestMasterServerPluginContainer();
        MasterServerPluginContainerConfiguration config = new MasterServerPluginContainerConfiguration(tmpdir, tmpdir,
            tmpdir, null);
        master.initialize(config);
        return master;
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.plugin.pc.MasterServerPluginContainerConfiguration

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.