Examples of MetricTemplate


Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        importer.configure(null);

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        MetricTemplate template1 = new MetricTemplate(normalDef);
        MetricTemplate template2 = new MetricTemplate(perMinuteDef);

        assertSame(matcher.findMatch(template1), normalDef,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), perMinuteDef,
            "The matching metric template should have found the defined measurement definition");
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        importer.configure(null);

        importer.configure(null);

        MetricTemplate unmatched = new MetricTemplate();
        unmatched.setMetricName("made-up");
        unmatched.setResourceTypeName("made-up");
        unmatched.setResourceTypePlugin("made-up");

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        assertNull(matcher.findMatch(unmatched));
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

            return null;
        }

        @Override
        protected MetricTemplate convert(MeasurementDefinition object) {
            return new MetricTemplate(object);
        }
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

                Query q = entityManager.createQuery("SELECT md FROM MeasurementDefinition md");

                for (Object r : q.getResultList()) {
                    MeasurementDefinition md = (MeasurementDefinition) r;

                    cache.put(new MetricTemplate(md), md);
                }
               
            }
            @Override
            public MeasurementDefinition findMatch(MetricTemplate object) {
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.