Examples of InventorySummary


Examples of org.rhq.core.domain.resource.InventorySummary

    @EJB
    private GroupDefinitionManagerLocal groupDefinitionManager;

    public InventorySummary getInventorySummary(Subject user) {
        InventorySummary summary = new InventorySummary();

        int[] categoryCounts = resourceManager.getResourceCountSummary(user, InventoryStatus.COMMITTED);
        summary.setPlatformCount(categoryCounts[0]);
        summary.setServerCount(categoryCounts[1]);
        summary.setServiceCount(categoryCounts[2]);

        categoryCounts = groupManager.getResourceGroupCountSummary(user);
        summary.setMixedGroupCount(categoryCounts[0]);
        summary.setCompatibleGroupCount(categoryCounts[1]);

        summary.setGroupDefinitionCount(groupDefinitionManager.getGroupDefinitionCount(user));

        summary.setScheduledMeasurementsPerMinute(scheduleManager.getScheduledMeasurementsPerMinute());

        return summary;
    }
View Full Code Here

Examples of org.rhq.core.domain.resource.InventorySummary

    }

    private void load() {
        try {
            ResourceBossLocal resourceBoss = LookupUtil.getResourceBoss();
            InventorySummary summary = resourceBoss.getInventorySummary(subject);
            loadFromSummary(summary);
            showCounts = true;
        } catch (Throwable t) {
            log.error("InventorySummaryUIBean loader experienced an error: " + t.getMessage());
            showCounts = false;
View Full Code Here

Examples of org.rhq.core.domain.resource.InventorySummary

    }

    private void initInventorySummary(Subject user, HttpServletRequest request)
        throws org.rhq.enterprise.server.auth.SessionNotFoundException,
        org.rhq.enterprise.server.auth.SessionTimeoutException, java.rmi.RemoteException {
        InventorySummary summary = LookupUtil.getResourceBoss().getInventorySummary(user);
        request.setAttribute(Constants.RESOURCE_SUMMARY_ATTR, summary);
    }
View Full Code Here

Examples of org.rhq.core.domain.resource.InventorySummary

    }

    private void initInventorySummary(Subject user, HttpServletRequest request)
        throws org.rhq.enterprise.server.auth.SessionNotFoundException,
        org.rhq.enterprise.server.auth.SessionTimeoutException, java.rmi.RemoteException {
        InventorySummary summary = LookupUtil.getResourceBoss().getInventorySummary(user);
        request.setAttribute(Constants.RESOURCE_SUMMARY_ATTR, summary);
    }
View Full Code Here

Examples of org.rhq.core.domain.resource.InventorySummary

    @Override
    public ActionForward execute(ComponentContext context, ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response) throws Exception {

        SummaryCountPortletPreferences counts = new SummaryCountPortletPreferences(); // all defaults are false
        InventorySummary summary = new InventorySummary();
        try {
            WebUser user = SessionUtils.getWebUser(request.getSession());
            if (user == null) {
                // session timed out, return prematurely
                return null;
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.