Tabnine Logo
ConstructionEvent.getTraceId
Code IndexAdd Tabnine to your IDE (free)

How to use
getTraceId
method
in
kieker.common.record.flow.trace.ConstructionEvent

Best Java code snippets using kieker.common.record.flow.trace.ConstructionEvent.getTraceId (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.getClassSignature().hashCode();
  code += ((int)this.getObjectId());
  
  return code;
}

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.getClassSignature(),
    this.getObjectId()
  };
}
/**
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 ConstructionEvent castedRecord = (ConstructionEvent) 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.getClassSignature().equals(castedRecord.getClassSignature())) return false;
  if (this.getObjectId() != castedRecord.getObjectId()) return false;
  return true;
}

origin: kieker-monitoring/kieker

  return false;
if (this.getTraceId() != castedRecord.getTraceId()) {
  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.getClassSignature());
  serializer.putInt(this.getObjectId());
}

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.getClassSignature());
  serializer.putInt(this.getObjectId());
}
/**
origin: kieker-monitoring/kieker

/**
 * Tests the constructor and toArray(..) methods of {@link ConstructionEvent}.
 *
 * 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 ConstructionEvent event1 = new ConstructionEvent(TSTAMP, TRACE_ID, ORDER_INDEX, FQ_CLASSNAME, OBJECT_ID);
  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 object ID", OBJECT_ID, event1.getObjectId());
}
origin: kieker-monitoring/kieker

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

    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 object ID", OBJECT_ID, event1.getObjectId());

    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 ConstructionEvent event2 = new ConstructionEvent(BinaryValueDeserializer.create(buffer, receiver.getReaderRegistry()));

    Assert.assertEquals(event1, event2);
    Assert.assertEquals(0, event1.compareTo(event2));
  }
}
kieker.common.record.flow.traceConstructionEventgetTraceId

Popular methods of ConstructionEvent

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • Menu (java.awt)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Vim plugins
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