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

How to use
getTimestamp
method
in
kieker.common.record.flow.trace.operation.constructor.AfterConstructorFailedEvent

Best Java code snippets using kieker.common.record.flow.trace.operation.constructor.AfterConstructorFailedEvent.getTimestamp (Showing top 8 results out of 315)

origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  int code = 0;
  code += ((int)this.getTimestamp());
  code += ((int)this.getTraceId());
  code += ((int)this.getOrderIndex());
  code += this.getOperationSignature().hashCode();
  code += this.getClassSignature().hashCode();
  code += this.getCause().hashCode();
  
  return code;
}

origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public boolean equals(final Object obj) {
  if (obj == null) return false;
  if (obj == this) return true;
  if (obj.getClass() != this.getClass()) return false;
  
  final AfterConstructorFailedEvent castedRecord = (AfterConstructorFailedEvent) obj;
  if (this.getLoggingTimestamp() != castedRecord.getLoggingTimestamp()) return false;
  if (this.getTimestamp() != castedRecord.getTimestamp()) return false;
  if (this.getTraceId() != castedRecord.getTraceId()) return false;
  if (this.getOrderIndex() != castedRecord.getOrderIndex()) return false;
  if (!this.getOperationSignature().equals(castedRecord.getOperationSignature())) return false;
  if (!this.getClassSignature().equals(castedRecord.getClassSignature())) return false;
  if (!this.getCause().equals(castedRecord.getCause())) return false;
  return true;
}

origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 *
 * @deprecated since 1.13. Use {@link #serialize(IValueSerializer)} with an array serializer instead.
 */
@Override
@Deprecated
public Object[] toArray() {
  return new Object[] {
    this.getTimestamp(),
    this.getTraceId(),
    this.getOrderIndex(),
    this.getOperationSignature(),
    this.getClassSignature(),
    this.getCause()
  };
}
/**
origin: kieker-monitoring/kieker

  return false;
if (this.getTimestamp() != castedRecord.getTimestamp()) {
  return false;
origin: kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void serialize(final IValueSerializer serializer) throws BufferOverflowException {
  serializer.putLong(this.getTimestamp());
  serializer.putLong(this.getTraceId());
  serializer.putInt(this.getOrderIndex());
  serializer.putString(this.getOperationSignature());
  serializer.putString(this.getClassSignature());
  serializer.putString(this.getCause());
}

origin: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void serialize(final IValueSerializer serializer) throws BufferOverflowException {
  //super.serialize(serializer);
  serializer.putLong(this.getTimestamp());
  serializer.putLong(this.getTraceId());
  serializer.putInt(this.getOrderIndex());
  serializer.putString(this.getOperationSignature());
  serializer.putString(this.getClassSignature());
  serializer.putString(this.getCause());
}
/**
origin: kieker-monitoring/kieker

/**
 * Tests the constructor and toArray(..) methods of {@link AfterConstructorFailedEvent}.
 *
 * Assert that a record instance event1 equals an instance event2 created by serializing event1 to an array event1Array
 * and using event1Array to construct event2. This ignores a set loggingTimestamp!
 */
@Test
public void testSerializeDeserializeEquals() {
  final AfterConstructorFailedEvent event1 = new AfterConstructorFailedEvent(TSTAMP, TRACE_ID, ORDER_INDEX, FQ_OPERATION_SIGNATURE, FQ_CLASSNAME, CAUSE);
  Assert.assertEquals("Unexpected timestamp", TSTAMP, event1.getTimestamp());
  Assert.assertEquals("Unexpected trace ID", TRACE_ID, event1.getTraceId());
  Assert.assertEquals("Unexpected order index", ORDER_INDEX, event1.getOrderIndex());
  Assert.assertEquals("Unexpected class name", FQ_CLASSNAME, event1.getClassSignature());
  Assert.assertEquals("Unexpected operation signature", FQ_OPERATION_SIGNATURE, event1.getOperationSignature());
  Assert.assertEquals("Unexpected cause", CAUSE, event1.getCause());
}
origin: kieker-monitoring/kieker

  /**
   * Tests the constructor and writeBytes(..) methods of {@link AfterConstructorFailedEvent}.
   */
  @Test
  public void testSerializeDeserializeBinaryEquals() {
    final AfterConstructorFailedEvent event1 = new AfterConstructorFailedEvent(TSTAMP, TRACE_ID, ORDER_INDEX, FQ_OPERATION_SIGNATURE, FQ_CLASSNAME, CAUSE);

    Assert.assertEquals("Unexpected timestamp", TSTAMP, event1.getTimestamp());
    Assert.assertEquals("Unexpected trace ID", TRACE_ID, event1.getTraceId());
    Assert.assertEquals("Unexpected order index", ORDER_INDEX, event1.getOrderIndex());
    Assert.assertEquals("Unexpected class name", FQ_CLASSNAME, event1.getClassSignature());
    Assert.assertEquals("Unexpected operation signature", FQ_OPERATION_SIGNATURE, event1.getOperationSignature());
    Assert.assertEquals("Unexpected cause", CAUSE, event1.getCause());

    final WriterListener receiver = new WriterListener();
    final IWriterRegistry<String> stringRegistry = new WriterRegistry(receiver);
    final ByteBuffer buffer = ByteBuffer.allocate(event1.getSize());
    event1.serialize(BinaryValueSerializer.create(buffer, stringRegistry));
    buffer.flip();

    final AfterConstructorFailedEvent event2 = new AfterConstructorFailedEvent(BinaryValueDeserializer.create(buffer, receiver.getReaderRegistry()));

    Assert.assertEquals(event1, event2);
    Assert.assertEquals(0, event1.compareTo(event2));
    Assert.assertTrue(UtilityClass.refersToSameOperationAs(event1, event2));
  }
}
kieker.common.record.flow.trace.operation.constructorAfterConstructorFailedEventgetTimestamp

Popular methods of AfterConstructorFailedEvent

  • <init>
    This constructor uses the given array to initialize the fields of this record.
  • getCause
  • getClassSignature
  • getOperationSignature
  • getOrderIndex
  • getTraceId
  • getLoggingTimestamp
  • compareTo
  • getSize
  • serialize

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 Plugins for Android Studio
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