Tabnine Logo
AfterConstructorFailedEvent.getOperationSignature
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using kieker.common.record.flow.trace.operation.constructor.AfterConstructorFailedEvent.getOperationSignature (Showing top 9 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: net.kieker-monitoring/kieker

/**
 * {@inheritDoc}
 */
@Override
public void registerStrings(final IRegistry<String> stringRegistry) {	// NOPMD (generated code)
  stringRegistry.get(this.getOperationSignature());
  stringRegistry.get(this.getClassSignature());
  stringRegistry.get(this.getCause());
}
/**
origin: kieker-monitoring/kieker

  return false;
if (!this.getOperationSignature().equals(castedRecord.getOperationSignature())) {
  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.constructorAfterConstructorFailedEventgetOperationSignature

Popular methods of AfterConstructorFailedEvent

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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