congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AbstractMonitoringRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractMonitoringRecord
in
kieker.common.record

Best Java code snippets using kieker.common.record.AbstractMonitoringRecord (Showing top 20 results out of 315)

origin: net.kieker-monitoring/kieker

public static final IMonitoringRecord createFromArray(final String recordClassName, final Object[] values) throws MonitoringRecordException {
  final Class<? extends IMonitoringRecord> clazz = AbstractMonitoringRecord.classForName(recordClassName);
  return AbstractMonitoringRecord.createFromArray(clazz, values);
}
origin: net.kieker-monitoring/kieker

/**
 * 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);
}
origin: net.kieker-monitoring/kieker

public static final IMonitoringRecord createFromDeserializer(final String recordClassName, final IValueDeserializer deserializer)
    throws BufferUnderflowException, MonitoringRecordException {
  return AbstractMonitoringRecord.createFromDeserializerChw(recordClassName, deserializer);
}
origin: net.kieker-monitoring/kieker

/**
 * <p>
 * Performs a null-check, a this-check, and a class-check. Moreover, it checks each attribute for equality.
 * </p>
 *
 * {@inheritDoc}
 */
@Override
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (this == obj) {
    return true;
  }
  if (obj.getClass() != this.getClass()) {
    return false;
  }
  final AbstractMonitoringRecord castedRecord = (AbstractMonitoringRecord) obj;
  if (this.getLoggingTimestamp() != castedRecord.getLoggingTimestamp()) {
    return false;
  }
  return Arrays.equals(this.toArray(), castedRecord.toArray());
}
origin: net.kieker-monitoring/kieker

    clazz = AbstractMonitoringRecord.classForName(classname);
  } catch (final MonitoringRecordException ex) { // NOPMD (ExceptionAsFlowControl); need this to distinguish error by
    skipValues = 2;
  record = AbstractMonitoringRecord.createFromStringArray(clazz, Arrays.copyOfRange(recordFields, skipValues, recordFields.length));
  record.setLoggingTimestamp(loggingTimestamp);
} else { // legacy record
  final String[] recordFieldsReduced = new String[recordFields.length - 1];
  System.arraycopy(recordFields, 1, recordFieldsReduced, 0, recordFields.length - 1);
  record = AbstractMonitoringRecord.createFromStringArray(OperationExecutionRecord.class, recordFieldsReduced);
origin: kieker-monitoring/kieker

final Class<? extends IMonitoringRecord> clazz = AbstractMonitoringRecord.classForName(classname);
origin: net.kieker-monitoring/kieker

final Class<? extends IMonitoringRecord> clazz = AbstractMonitoringRecord.classForName(classname);
final Class<?>[] typeArray = AbstractMonitoringRecord.typesForClass(clazz);
final IMonitoringRecord record = AbstractMonitoringRecord.createFromArray(clazz, objectArray);
record.setLoggingTimestamp(loggingTimestamp);
if (!this.recordReceiver.newMonitoringRecord(record)) {
origin: kieker-monitoring/kieker

@Override
public int hashCode() {
  return Long.hashCode(this.getLoggingTimestamp());
}
origin: kieker-monitoring/kieker

/**
 * Provides an ordering of IMonitoringRecords by the loggingTimestamp.
 * Classes overriding the implementation should respect this ordering. (see #326)
 *
 * @param otherRecord
 *            The record to be compared.
 *
 * @return -1 if this object is less than, +1 if it is greater than or 0 if it is equal to the specified record.
 */
@Override
public int compareTo(final IMonitoringRecord otherRecord) {
  final long timedifference = this.loggingTimestamp - otherRecord.getLoggingTimestamp();
  if (timedifference < 0L) {
    return -1;
  } else if (timedifference > 0L) {
    return 1;
  } else { // same timing
    // this should work except for rare hash collisions
    return this.hashCode() - otherRecord.hashCode();
  }
}
origin: net.kieker-monitoring/kieker

@SuppressWarnings("deprecation")
@Override
public IMonitoringRecord create(final Object[] values) {
  try {
    return AbstractMonitoringRecord.createFromArray(this.recordClassName, values);
  } catch (final MonitoringRecordException e) {
    throw new RecordInstantiationException(e);
  }
}
origin: net.kieker-monitoring/kieker

@Override
public IMonitoringRecord create(final IValueDeserializer deserializer) {
  try {
    return AbstractMonitoringRecord.createFromDeserializer(this.recordClassName, deserializer);
  } catch (final MonitoringRecordException e) {
    throw new RecordInstantiationException(e);
  }
}
origin: net.kieker-monitoring/kieker

final Class<? extends IMonitoringRecord> clazz = AbstractMonitoringRecord.classForName(classname);
final IMonitoringRecord record = AbstractMonitoringRecord.createFromStringArray(clazz, values);
record.setLoggingTimestamp(timestamp);
this.recordQueue.add(record);
origin: kieker-monitoring/kieker

final String classname = indexTable.getString(2);
try { // NOCS (nested try)
  this.table2record(connection, tablename, AbstractMonitoringRecord.classForName(classname));
} catch (final MonitoringRecordException ex) {
origin: net.kieker-monitoring/kieker

final Class<? extends IMonitoringRecord> clazz = AbstractMonitoringRecord.classForName(classname);
final Class<?>[] typeArray = AbstractMonitoringRecord.typesForClass(clazz);
final IMonitoringRecord record = AbstractMonitoringRecord.createFromArray(clazz, objectArray);
record.setLoggingTimestamp(loggingTimestamp);
if (!this.recordReceiver.newMonitoringRecord(record)) {
origin: kieker-monitoring/kieker

/**
 * <p>
 * Performs a null-check, a this-check, and a class-check. Moreover, it checks each attribute for equality.
 * </p>
 *
 * {@inheritDoc}
 */
@Override
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (this == obj) {
    return true;
  }
  if (obj.getClass() != this.getClass()) {
    return false;
  }
  final AbstractMonitoringRecord castedRecord = (AbstractMonitoringRecord) obj;
  return this.getLoggingTimestamp() == castedRecord.getLoggingTimestamp();
}
origin: net.kieker-monitoring/kieker

/**
 * Provides an ordering of IMonitoringRecords by the loggingTimestamp.
 * Classes overriding the implementation should respect this ordering. (see #326)
 *
 * @param otherRecord
 *            The record to be compared.
 *
 * @return -1 if this object is less than, +1 if it is greater than or 0 if it is equal to the specified record.
 */
@Override
public int compareTo(final IMonitoringRecord otherRecord) {
  final long timedifference = this.loggingTimestamp - otherRecord.getLoggingTimestamp();
  if (timedifference < 0L) {
    return -1;
  } else if (timedifference > 0L) {
    return 1;
  } else { // same timing
    // this should work except for rare hash collisions
    return this.hashCode() - otherRecord.hashCode();
  }
}
origin: net.kieker-monitoring/kieker

  recordValues[i] = records.getObject(i + 3);
final IMonitoringRecord record = AbstractMonitoringRecord.createFromArray(clazz, recordValues);
record.setLoggingTimestamp(records.getLong(2));
super.deliver(OUTPUT_PORT_NAME_RECORDS, record);
origin: net.kieker-monitoring/kieker

/**
 * 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];
}
origin: net.kieker-monitoring/kieker

    clazz = AbstractMonitoringRecord.classForName(classname);
  } catch (final MonitoringRecordException ex) { // NOPMD (ExceptionAsFlowControl); need this to distinguish error by
  record = AbstractMonitoringRecord.createFromStringArray(clazz, Arrays.copyOfRange(recordFields, skipValues, recordFields.length));
  record.setLoggingTimestamp(loggingTimestamp);
} else { // legacy record
  final String[] recordFieldsReduced = new String[recordFields.length - 1];
  System.arraycopy(recordFields, 1, recordFieldsReduced, 0, recordFields.length - 1);
  record = AbstractMonitoringRecord.createFromStringArray(OperationExecutionRecord.class, recordFieldsReduced);
origin: net.kieker-monitoring/kieker

final String classname = indexTable.getString(2);
try { // NOCS (nested try)
  this.table2record(connection, tablename, AbstractMonitoringRecord.classForName(classname));
} catch (final MonitoringRecordException ex) {
kieker.common.recordAbstractMonitoringRecord

Most used methods

  • classForName
    This method tries to find a monitoring record class with the given name.
  • checkArray
    This method checks the given arrays, making sure that they have the same length and that the value e
  • createFromDeserializerChw
    Copy of #createFromByteBuffer. However, the constructor cache's key is a string, not an integer
  • getLoggingTimestamp
  • hashCode
  • createFromArray
  • createFromDeserializer
  • createFromStringArray
    This method creates a new monitoring record from the given data encoded in strings.
  • fromStringArrayToTypedArray
    This helper method converts the given array with string objects into an array containing objects fro
  • toArray
  • typesForClass
    This method delivers the types array of the given class, either by finding the declared field (in ca
  • typesForClass

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now