@Override public ApplicationTraceMetadata create(final IValueDeserializer deserializer) throws RecordInstantiationException { return new ApplicationTraceMetadata(deserializer); }
/** * {@inheritDoc} */ @Override public int hashCode() { int code = 0; code += ((int)this.getTraceId()); code += ((int)this.getThreadId()); code += this.getSessionId().hashCode(); code += this.getHostname().hashCode(); code += ((int)this.getParentTraceId()); code += ((int)this.getParentOrderId()); code += ((int)this.getNextOrderId()); code += this.getApplicationName().hashCode(); return code; }
if (this.getLoggingTimestamp() != castedRecord.getLoggingTimestamp()) { return false; if (this.getTraceId() != castedRecord.getTraceId()) { return false; if (this.getThreadId() != castedRecord.getThreadId()) { return false; if (!this.getSessionId().equals(castedRecord.getSessionId())) { return false; if (!this.getHostname().equals(castedRecord.getHostname())) { return false; if (this.getParentTraceId() != castedRecord.getParentTraceId()) { return false; if (this.getParentOrderId() != castedRecord.getParentOrderId()) { return false; if (this.getNextOrderId() != castedRecord.getNextOrderId()) { return false; if (!this.getApplicationName().equals(castedRecord.getApplicationName())) { return false;
final ApplicationTraceMetadata trace = new ApplicationTraceMetadata(traceId, thread.getId(), sessionId, this.hostname, parentTraceId, parentOrderId, applicationName); this.traceStorage.set(trace);
/** * {@inheritDoc} */ @Override public void serialize(final IValueSerializer serializer) throws BufferOverflowException { serializer.putLong(this.getTraceId()); serializer.putLong(this.getThreadId()); serializer.putString(this.getSessionId()); serializer.putString(this.getHostname()); serializer.putLong(this.getParentTraceId()); serializer.putInt(this.getParentOrderId()); serializer.putString(this.getApplicationName()); }