org.apache.avro.ipc.trace
Class Span.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<Span>
          extended by org.apache.avro.ipc.trace.Span.Builder
All Implemented Interfaces:
RecordBuilder<Span>
Enclosing class:
Span

public static class Span.Builder
extends SpecificRecordBuilderBase<Span>
implements RecordBuilder<Span>

RecordBuilder for Span instances.


Method Summary
 Span build()
          Constructs a new instance using the values set in the RecordBuilder.
 Span.Builder clearComplete()
          Clears the value of the 'complete' field
 Span.Builder clearEvents()
          Clears the value of the 'events' field
 Span.Builder clearMessageName()
          Clears the value of the 'messageName' field
 Span.Builder clearParentSpanID()
          Clears the value of the 'parentSpanID' field
 Span.Builder clearRequestorHostname()
          Clears the value of the 'requestorHostname' field
 Span.Builder clearRequestPayloadSize()
          Clears the value of the 'requestPayloadSize' field
 Span.Builder clearResponderHostname()
          Clears the value of the 'responderHostname' field
 Span.Builder clearResponsePayloadSize()
          Clears the value of the 'responsePayloadSize' field
 Span.Builder clearSpanID()
          Clears the value of the 'spanID' field
 Span.Builder clearTraceID()
          Clears the value of the 'traceID' field
 Boolean getComplete()
          Gets the value of the 'complete' field
 List<TimestampedEvent> getEvents()
          Gets the value of the 'events' field
 CharSequence getMessageName()
          Gets the value of the 'messageName' field
 ID getParentSpanID()
          Gets the value of the 'parentSpanID' field
 CharSequence getRequestorHostname()
          Gets the value of the 'requestorHostname' field
 Long getRequestPayloadSize()
          Gets the value of the 'requestPayloadSize' field
 CharSequence getResponderHostname()
          Gets the value of the 'responderHostname' field
 Long getResponsePayloadSize()
          Gets the value of the 'responsePayloadSize' field
 ID getSpanID()
          Gets the value of the 'spanID' field
 ID getTraceID()
          Gets the value of the 'traceID' field
 boolean hasComplete()
          Checks whether the 'complete' field has been set
 boolean hasEvents()
          Checks whether the 'events' field has been set
 boolean hasMessageName()
          Checks whether the 'messageName' field has been set
 boolean hasParentSpanID()
          Checks whether the 'parentSpanID' field has been set
 boolean hasRequestorHostname()
          Checks whether the 'requestorHostname' field has been set
 boolean hasRequestPayloadSize()
          Checks whether the 'requestPayloadSize' field has been set
 boolean hasResponderHostname()
          Checks whether the 'responderHostname' field has been set
 boolean hasResponsePayloadSize()
          Checks whether the 'responsePayloadSize' field has been set
 boolean hasSpanID()
          Checks whether the 'spanID' field has been set
 boolean hasTraceID()
          Checks whether the 'traceID' field has been set
 Span.Builder setComplete(boolean value)
          Sets the value of the 'complete' field
 Span.Builder setEvents(List<TimestampedEvent> value)
          Sets the value of the 'events' field
 Span.Builder setMessageName(CharSequence value)
          Sets the value of the 'messageName' field
 Span.Builder setParentSpanID(ID value)
          Sets the value of the 'parentSpanID' field
 Span.Builder setRequestorHostname(CharSequence value)
          Sets the value of the 'requestorHostname' field
 Span.Builder setRequestPayloadSize(long value)
          Sets the value of the 'requestPayloadSize' field
 Span.Builder setResponderHostname(CharSequence value)
          Sets the value of the 'responderHostname' field
 Span.Builder setResponsePayloadSize(long value)
          Sets the value of the 'responsePayloadSize' field
 Span.Builder setSpanID(ID value)
          Sets the value of the 'spanID' field
 Span.Builder setTraceID(ID value)
          Sets the value of the 'traceID' field
 
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTraceID

public ID getTraceID()
Gets the value of the 'traceID' field


setTraceID

public Span.Builder setTraceID(ID value)
Sets the value of the 'traceID' field


hasTraceID

public boolean hasTraceID()
Checks whether the 'traceID' field has been set


clearTraceID

public Span.Builder clearTraceID()
Clears the value of the 'traceID' field


getSpanID

public ID getSpanID()
Gets the value of the 'spanID' field


setSpanID

public Span.Builder setSpanID(ID value)
Sets the value of the 'spanID' field


hasSpanID

public boolean hasSpanID()
Checks whether the 'spanID' field has been set


clearSpanID

public Span.Builder clearSpanID()
Clears the value of the 'spanID' field


getParentSpanID

public ID getParentSpanID()
Gets the value of the 'parentSpanID' field


setParentSpanID

public Span.Builder setParentSpanID(ID value)
Sets the value of the 'parentSpanID' field


hasParentSpanID

public boolean hasParentSpanID()
Checks whether the 'parentSpanID' field has been set


clearParentSpanID

public Span.Builder clearParentSpanID()
Clears the value of the 'parentSpanID' field


getMessageName

public CharSequence getMessageName()
Gets the value of the 'messageName' field


setMessageName

public Span.Builder setMessageName(CharSequence value)
Sets the value of the 'messageName' field


hasMessageName

public boolean hasMessageName()
Checks whether the 'messageName' field has been set


clearMessageName

public Span.Builder clearMessageName()
Clears the value of the 'messageName' field


getRequestPayloadSize

public Long getRequestPayloadSize()
Gets the value of the 'requestPayloadSize' field


setRequestPayloadSize

public Span.Builder setRequestPayloadSize(long value)
Sets the value of the 'requestPayloadSize' field


hasRequestPayloadSize

public boolean hasRequestPayloadSize()
Checks whether the 'requestPayloadSize' field has been set


clearRequestPayloadSize

public Span.Builder clearRequestPayloadSize()
Clears the value of the 'requestPayloadSize' field


getResponsePayloadSize

public Long getResponsePayloadSize()
Gets the value of the 'responsePayloadSize' field


setResponsePayloadSize

public Span.Builder setResponsePayloadSize(long value)
Sets the value of the 'responsePayloadSize' field


hasResponsePayloadSize

public boolean hasResponsePayloadSize()
Checks whether the 'responsePayloadSize' field has been set


clearResponsePayloadSize

public Span.Builder clearResponsePayloadSize()
Clears the value of the 'responsePayloadSize' field


getRequestorHostname

public CharSequence getRequestorHostname()
Gets the value of the 'requestorHostname' field


setRequestorHostname

public Span.Builder setRequestorHostname(CharSequence value)
Sets the value of the 'requestorHostname' field


hasRequestorHostname

public boolean hasRequestorHostname()
Checks whether the 'requestorHostname' field has been set


clearRequestorHostname

public Span.Builder clearRequestorHostname()
Clears the value of the 'requestorHostname' field


getResponderHostname

public CharSequence getResponderHostname()
Gets the value of the 'responderHostname' field


setResponderHostname

public Span.Builder setResponderHostname(CharSequence value)
Sets the value of the 'responderHostname' field


hasResponderHostname

public boolean hasResponderHostname()
Checks whether the 'responderHostname' field has been set


clearResponderHostname

public Span.Builder clearResponderHostname()
Clears the value of the 'responderHostname' field


getEvents

public List<TimestampedEvent> getEvents()
Gets the value of the 'events' field


setEvents

public Span.Builder setEvents(List<TimestampedEvent> value)
Sets the value of the 'events' field


hasEvents

public boolean hasEvents()
Checks whether the 'events' field has been set


clearEvents

public Span.Builder clearEvents()
Clears the value of the 'events' field


getComplete

public Boolean getComplete()
Gets the value of the 'complete' field


setComplete

public Span.Builder setComplete(boolean value)
Sets the value of the 'complete' field


hasComplete

public boolean hasComplete()
Checks whether the 'complete' field has been set


clearComplete

public Span.Builder clearComplete()
Clears the value of the 'complete' field


build

public Span build()
Description copied from interface: RecordBuilder
Constructs a new instance using the values set in the RecordBuilder. If a particular value was not set and the schema defines a default value, the default value will be used.

Specified by:
build in interface RecordBuilder<Span>
Returns:
a new instance using values set in the RecordBuilder.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.