Package org.rhq.core.domain.measurement

Examples of org.rhq.core.domain.measurement.NumericType


            }
            if (alertConditionCategory == AlertConditionCategory.BASELINE) {

                MeasurementDefinition def = alertCondition.getMeasurementDefinition();
                def = entityManager.getReference(MeasurementDefinition.class, def.getId());
                NumericType numType = def.getNumericType();
                if (numType == null) {
                    def = entityManager.getReference(MeasurementDefinition.class, def.getId());
                    numType = def.getNumericType();
                }
                if (numType != NumericType.DYNAMIC) {
View Full Code Here


        switch (definition.getDataType()) {
        case MEASUREMENT: {
            MeasurementUnits units = definition.getUnits();
            summary.setUnits(units.name());

            NumericType type = definition.getNumericType();
            if (type == null) {
                throw new IllegalStateException("NumericType is null, but no traits are expected here");
            }

            int collectionType;
View Full Code Here

                    int schedId = (Integer) row[i++];
                    long existingInterval = (Long) row[i++];
                    int resourceId = (Integer) row[i++];
                    String name = (String) row[i++];
                    DataType dataType = (DataType) row[i++];
                    NumericType numericType = (NumericType) row[i++];

                    ResourceMeasurementScheduleRequest req = reqMap.get(resourceId);
                    if (null == req) {
                        req = new ResourceMeasurementScheduleRequest(resourceId);
                        reqMap.put(resourceId, req);
View Full Code Here

                    Integer scheduleId = results.getInt(2);
                    String definitionName = results.getString(3);
                    Long interval = results.getLong(4);
                    Boolean enabled = results.getBoolean(5);
                    DataType dataType = DataType.values()[results.getInt(6)];
                    NumericType rawNumericType = NumericType.values()[results.getInt(7)];
                    if (results.wasNull()) {
                        rawNumericType = null;
                    }

                    ResourceMeasurementScheduleRequest scheduleRequest = scheduleRequestMap.get(resourceId);
View Full Code Here

            int id = this.metricScheduleCounter.getAndIncrement();
            String name = metric.getName();
            long interval = metric.getDefaultInterval();
            boolean enabled = metric.isDefaultOn() || metric.getDisplayType() == DisplayType.SUMMARY;
            DataType dataType = metric.getDataType();
            NumericType nDataType = metric.getNumericType();
            MeasurementScheduleRequest schedule = new MeasurementScheduleRequest(id, name, interval, enabled, dataType,
                nDataType);
            resourceSchedules.addMeasurementScheduleRequest(schedule);
        }
        return resourceSchedules;
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.measurement.NumericType

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.