Examples of PurgeResourceTypesJob


Examples of org.rhq.enterprise.server.scheduler.jobs.PurgeResourceTypesJob

        if (!plugins.isEmpty()) {
            System.out.println("Purging plugins " + plugins + "...");
            for (Plugin plugin : plugins) {
                pluginMgr.deletePlugins(subjectMgr.getOverlord(), asList(plugin.getId()));
            }
            new PurgeResourceTypesJob().execute(null);
            new PurgePluginsJob().execute(null);
        }

        createPluginJarFile("test-plugin1.jar", "plugin_1.xml");
        createPluginJarFile("test-plugin2.jar", "plugin_2.xml");
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.jobs.PurgeResourceTypesJob

        pluginMgr.deletePlugins(overlord, doomedPlugins);

        //the following 3 lines ensure we truly delete the above plugins
        //from the database
        ackDeletedPlugins();
        new PurgeResourceTypesJob().executeJobCode(null);
        new PurgePluginsJob().executeJobCode(null);

        pluginIds.clear();
        deleteObjects(objectFileName);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.jobs.PurgeResourceTypesJob

                // 2) Immediately remove the uninventoried resources by forcing the normally async work to run in-band
                new AsyncResourceDeleteJob().execute(null);

                // 3) Immediately finish removing the deleted types by forcing the normally async work to run in-band
                new PurgeResourceTypesJob().executeJobCode(null);
            }
        } catch (Throwable t) {
            // Catch all exceptions, so a failure here does not cause the outer tx to rollback.
            log.error("Failure during removal of obsolete ResourceTypes and Subcategories.", t);
        }
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.