Package org.rhq.core.domain.discovery

Examples of org.rhq.core.domain.discovery.MergeInventoryReportResults


        ignoredTypesCriteria.addFilterIgnored(true);
        ignoredTypesCriteria.setPageControl(PageControl.getUnlimitedInstance());
        PageList<ResourceType> ignoredTypes = resourceTypeManager.findResourceTypesByCriteria(
            subjectManager.getOverlord(), ignoredTypesCriteria);

        MergeInventoryReportResults results;
        if (syncInfo != null) {
            results = new MergeInventoryReportResults(syncInfo, ignoredTypes);
        } else {
            results = null;
        }

        if (LOG.isDebugEnabled()) {
View Full Code Here


            String reportType = (report.isRuntimeReport()) ? "runtime" : "server";
            log.info("Sending [" + reportType + "] inventory report to Server...");
            long startTime = System.currentTimeMillis();
            DiscoveryServerService discoveryServerService = configuration.getServerServices()
                .getDiscoveryServerService();
            MergeInventoryReportResults results = discoveryServerService.mergeInventoryReport(report);
            if (results != null) {
                platformSyncInfo = results.getPlatformSyncInfo();
                ignoredTypes = results.getIgnoredResourceTypes();
            } else {
                platformSyncInfo = null;
                ignoredTypes = null;
            }
            if (log.isDebugEnabled()) {
View Full Code Here

                            if (res.getParentResource() == Resource.ROOT) {
                                platform = persisted;
                            }
                        }

                        return new MergeInventoryReportResults(getPlatformSyncInfo(), null);
                    } finally {
                        if (discoveryChecker != null && !inventoryReport.getAddedRoots().isEmpty()) {
                            discoveryChecker.setDepth(getResourceTreeDepth());
                        }
                    }
View Full Code Here

                        if (res.getParentResource() == Resource.ROOT) {
                            platform = persisted;
                        }
                    }
                    return new MergeInventoryReportResults(getPlatformSyncInfo(), null);
                }
            }
        };
    }
View Full Code Here

                synchronized (FakeServerInventory.this) {
                    throwIfFailing();

                    platform = null;

                    return new MergeInventoryReportResults(getPlatformSyncInfo(), null);
                }
            }
        };
    }
View Full Code Here

                persistInSimulatedInventory(res);
            }
            syncInfo = PlatformSyncInfo.buildPlatformSyncInfo(platform);
        }

        MergeInventoryReportResults result = new MergeInventoryReportResults(syncInfo, ignoredTypes);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.discovery.MergeInventoryReportResults

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.