/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #EmptyRecord(IValueDeserializer)} instead. */ @Deprecated public EmptyRecord(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #TimestampRecord(IValueDeserializer)} instead. */ @Deprecated public TimestampRecord(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.timestamp = (Long) values[0]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #EmptyRecord(IValueDeserializer)} instead. */ @Deprecated protected EmptyRecord(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #AbstractEvent(IValueDeserializer)} instead. */ @Deprecated protected AbstractEvent(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.timestamp = (Long) values[0]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #NamedTSPoint(IValueDeserializer)} instead. */ @Deprecated public NamedTSPoint(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.timestamp = (Long) values[0]; this.value = (Double) values[1]; this.name = (String) values[2]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #BranchingRecord(IValueDeserializer)} instead. */ @Deprecated public BranchingRecord(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.timestamp = (Long) values[0]; this.branchID = (Integer) values[1]; this.branchingOutcome = (Integer) values[2]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #AggregationWindow(IValueDeserializer)} instead. */ @Deprecated protected AggregationWindow(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.windowStart = (Long) values[0]; this.windowEnd = (Long) values[1]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #NamedDoubleRecord(IValueDeserializer)} instead. */ @Deprecated public NamedDoubleRecord(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.applicationName = (String) values[0]; this.timestamp = (Long) values[1]; this.responseTime = (Double) values[2]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #TimestampRecord(IValueDeserializer)} instead. */ @Deprecated protected TimestampRecord(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.timestamp = (Long) values[0]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #AggregationWindow(IValueDeserializer)} instead. */ @Deprecated public AggregationWindow(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.windowStart = (Long) values[0]; this.windowEnd = (Long) values[1]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #AbstractJVMRecord(IValueDeserializer)} instead. */ @Deprecated protected AbstractJVMRecord(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.timestamp = (Long) values[0]; this.hostname = (String) values[1]; this.vmName = (String) values[2]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #ThreadMetaData(IValueDeserializer)} instead. */ @Deprecated public ThreadMetaData(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.hostname = (String) values[0]; this.threadId = (Long) values[1]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #TraceMetadata(IValueDeserializer)} instead. */ @Deprecated public TraceMetadata(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.traceId = (Long) values[0]; this.threadId = (Long) values[1]; this.sessionId = (String) values[2]; this.hostname = (String) values[3]; this.parentTraceId = (Long) values[4]; this.parentOrderId = (Integer) values[5]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #HostApplicationMetaData(IValueDeserializer)} instead. */ @Deprecated protected HostApplicationMetaData(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.systemName = (String) values[0]; this.ipAddress = (String) values[1]; this.hostname = (String) values[2]; this.applicationName = (String) values[3]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #StorableDetectionResult(IValueDeserializer)} instead. */ @Deprecated public StorableDetectionResult(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.applicationName = (String) values[0]; this.value = (Double) values[1]; this.timestamp = (Long) values[2]; this.forecast = (Double) values[3]; this.score = (Double) values[4]; }
/** * This constructor converts the given array into a record. * It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. * * @deprecated since 1.13. Use {@link #LoadAverageRecord(IValueDeserializer)} instead. */ @Deprecated public LoadAverageRecord(final Object[] values) { // NOPMD (direct store of values) AbstractMonitoringRecord.checkArray(values, TYPES); this.timestamp = (Long) values[0]; this.hostname = (String) values[1]; this.oneMinLoadAverage = (Double) values[2]; this.fiveMinLoadAverage = (Double) values[3]; this.fifteenMinLoadAverage = (Double) values[4]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #BranchingRecord(IValueDeserializer)} instead. */ @Deprecated protected BranchingRecord(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.timestamp = (Long) values[0]; this.branchID = (Integer) values[1]; this.branchingOutcome = (Integer) values[2]; }
/** * This constructor uses the given array to initialize the fields of this record. * * @param values * The values for the record. * @param valueTypes * The types of the elements in the first array. * * @deprecated since 1.13. Use {@link #StorableDetectionResult(IValueDeserializer)} instead. */ @Deprecated protected StorableDetectionResult(final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly) AbstractMonitoringRecord.checkArray(values, valueTypes); this.applicationName = (String) values[0]; this.value = (Double) values[1]; this.timestamp = (Long) values[2]; this.forecast = (Double) values[3]; this.score = (Double) values[4]; }
/** * This constructor converts the given array into a record. It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. */ public RegistryRecord(final Object[] values) { // NOPMD (direct store of E (usually String)) AbstractMonitoringRecord.checkArray(values, TYPES); this.id = (Integer) values[0]; this.string = (String) (values[1]); this.strBytes = RegistryRecord.stringToBytes(this.string); }
/** * This constructor converts the given array into a record. It is recommended to use the array which is the result of a call to {@link #toArray()}. * * @param values * The values for the record. */ @SuppressWarnings("unchecked") public RegistryRecord(final Object[] values) { // NOPMD (direct store of E (usually String)) AbstractMonitoringRecord.checkArray(values, TYPES); this.id = (Integer) values[0]; this.string = (String) (values[1]); this.strBytes = RegistryRecord.stringToBytes(this.string); }