Examples of scanAndRegister()


Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

    @Override
    public void scanAndRegister() throws RuntimeException {
        try {
            PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
            scanner.scanAndRegister();
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

            }

            pluginManager.deletePlugins(getSessionSubject(), getIds(allSelectedPlugins));
            log.info("Deleted agent plugins: " + pluginNames);
            PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
            scanner.scanAndRegister();
            return pluginNames;
        } catch (Throwable t) {
            throw getExceptionToThrowToClient(t);
        }
    }
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

    @Timeout
    public void scanForPlugins(final Timer timer) {
        try {
            PluginDeploymentScannerMBean deployer = getPluginDeploymentScanner();
            deployer.scanAndRegister();
        } catch (Throwable t) {
            log.error("Plugin scan failed. Cause: " + ThrowableUtil.getAllMessages(t));
            if (log.isDebugEnabled()) {
                log.debug("Plugin scan failure stack trace follows:", t);
            }
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

    @Override
    @RequiredPermission(Permission.MANAGE_SETTINGS)
    @TransactionAttribute(TransactionAttributeType.NEVER)
    public void update(Subject subject) throws Exception {
        PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
        scanner.scanAndRegister();
    }

    @Override
    @RequiredPermission(Permission.MANAGE_SETTINGS)
    public String schedulePluginUpdateOnAgents(Subject subject, long delayInMilliseconds) throws Exception {
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

                fos.close();
            }

            if (startScan) {
                PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
                scanner.scanAndRegister();
            }

            if (pushOutDelay >= 0) {
                LookupUtil.getPluginManager().schedulePluginUpdateOnAgents(caller, pushOutDelay);
            }
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

    public void scan() {
        hasPermission();

        try {
            PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
            scanner.scanAndRegister();
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Done scanning for updated plugins.");
        } catch (Exception e) {
            processException("Failed to scan for updated plugins", e);
        }
    }
View Full Code Here

Examples of org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean.scanAndRegister()

                pluginNames.add(plugin.getDisplayName());
            }

            pluginMgr.deletePlugins(subject, Arrays.asList(getSelectedPluginIds()));
            PluginDeploymentScannerMBean scanner = LookupUtil.getPluginDeploymentScanner();
            scanner.scanAndRegister();
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Deleted plugins: " + pluginNames);
        } catch (Exception e) {
            processException("Failed to delete agent plugins", e);
        }
        return;
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.