Package | Description |
---|---|
brown.tracingplane |
Provides the main
BaggageContext and BaggageProvider interfaces of the Tracing Plane |
brown.tracingplane.impl |
Implementations of
BaggageContext at several different points in the Tracing Plane. |
Modifier and Type | Interface and Description |
---|---|
static interface |
BaggageListener.BranchListener<B extends BaggageContext>
Wraps calls to
BaggageProvider.branch(BaggageContext) so that the baggage instance(s) can be modified. |
static interface |
BaggageListener.JoinListener<B extends BaggageContext>
Wraps calls to
BaggageProvider.join(BaggageContext, BaggageContext) so that baggage instance(s) can be
modified. |
interface |
BaggageProvider<B extends BaggageContext>
A
BaggageProvider provides an implementation of BaggageContext objects. |
Modifier and Type | Method and Description |
---|---|
BaggageContext |
TransitLayer.branch()
Create and return a branched copy of the currently active baggage context.
|
static BaggageContext |
ActiveBaggage.branch()
Create and return a branched copy of the currently active baggage context.
|
static BaggageContext |
Baggage.branch(BaggageContext from)
Create and return a branched copy
from . |
static BaggageContext |
Baggage.deserialize(byte[] serialized)
Deserialize the provided serialized baggage representation.
|
static BaggageContext |
Baggage.deserialize(byte[] serialized,
int offset,
int length)
Deserialize the provided serialized baggage representation.
|
static BaggageContext |
Baggage.deserialize(java.nio.ByteBuffer buf)
Deserialize the provided serialized baggage representation.
|
static BaggageContext |
Baggage.join(BaggageContext left,
BaggageContext right)
Merge the contents of
left and right and return as baggage. |
static BaggageContext |
Baggage.newInstance() |
BaggageContext |
TransitLayer.peek()
Gets the currently active
BaggageContext . |
static BaggageContext |
ActiveBaggage.peek()
Gets the currently active
BaggageContext . |
BaggageContext |
TransitLayer.take()
Gets and removes the currently active
BaggageContext . |
static BaggageContext |
ActiveBaggage.take()
Gets and removes the currently active
BaggageContext . |
Modifier and Type | Method and Description |
---|---|
static BaggageProvider<? extends BaggageContext> |
DefaultBaggageProvider.get() |
static BaggageProvider<BaggageContext> |
DefaultBaggageProvider.getWrapped() |
BaggageProvider<? extends BaggageContext> |
BaggageProviderFactory.provider()
Instantiate the
BaggageProvider that this factory provides. |
Modifier and Type | Method and Description |
---|---|
static BaggageContext |
Baggage.branch(BaggageContext from)
Create and return a branched copy
from . |
static void |
Baggage.discard(BaggageContext baggage)
Discards
baggage , indicating that the instance will not be used again. |
boolean |
BaggageProvider.isValid(BaggageContext baggage) |
void |
TransitLayer.join(BaggageContext otherContext)
Merges the contents of
otherContext into the currently active context. |
static void |
ActiveBaggage.join(BaggageContext otherContext)
Merges the contents of
otherContext into the currently active context. |
static BaggageContext |
Baggage.join(BaggageContext left,
BaggageContext right)
Merge the contents of
left and right and return as baggage. |
static byte[] |
Baggage.serialize(BaggageContext baggage)
Serialize the provided baggage instance to its byte representation.
|
static byte[] |
Baggage.serialize(BaggageContext baggage,
int maximumSerializedSize)
Serialize the provided baggage instance to its byte representation and trim the baggage so that its serialized
size is
<= maximumSerializedSize . |
void |
TransitLayer.set(BaggageContext baggage)
Discards the currently active
BaggageContext , then activates the provided baggage . |
static void |
ActiveBaggage.set(BaggageContext baggage)
Discards the currently active
BaggageContext , then activates the provided baggage . |
void |
TransitLayer.update(BaggageContext baggage)
Sets the currently active
BaggageContext . |
static void |
ActiveBaggage.update(BaggageContext baggage)
Sets the currently active
BaggageContext . |
Modifier and Type | Class and Description |
---|---|
class |
AtomContext
A minimal implementation of
BaggageContext based on atoms and lexicographic merge, but providing no read or
write methods to the atoms themselves. |
class |
BDLContext
The full-featured
BaggageContext implementation used by the tracing plane using atoms and the baggage
protocol, intended for use in conjunction with BDL-compiled accessor classes. |
class |
NestedBaggageContext
An implementation of
BaggageContext that interprets atoms using the baggage protocol, which specifies a data
layout for nested bags. |
Modifier and Type | Method and Description |
---|---|
BaggageContext |
ThreadLocalTransitLayer.branch() |
BaggageContext |
NoOpTransitLayer.branch() |
BaggageContext |
NoOpBaggageContextProvider.branch(BaggageContext from) |
BaggageContext |
NoOpBaggageContextProvider.deserialize(byte[] serialized,
int offset,
int length) |
BaggageContext |
NoOpBaggageContextProvider.deserialize(java.nio.ByteBuffer buf) |
BaggageContext |
NoOpBaggageContextProvider.join(BaggageContext left,
BaggageContext right) |
BaggageContext |
NoOpBaggageContextProvider.newInstance() |
BaggageContext |
ThreadLocalTransitLayer.peek() |
BaggageContext |
NoOpTransitLayer.peek() |
static BaggageContext |
BDLContextProvider.set(BaggageContext baggage,
BagKey key,
Bag value)
Maps the specified key to the provided bag value.
|
BaggageContext |
ThreadLocalTransitLayer.take() |
BaggageContext |
NoOpTransitLayer.take() |
Modifier and Type | Method and Description |
---|---|
BaggageProvider<? extends BaggageContext> |
AtomContextProviderFactory.provider() |
BaggageProvider<? extends BaggageContext> |
BDLContextProviderFactory.provider() |
BaggageProvider<? extends BaggageContext> |
NestedBaggageContextProviderFactory.provider() |
BaggageProvider<? extends BaggageContext> |
NoOpBaggageContextProviderFactory.provider() |
Modifier and Type | Method and Description |
---|---|
BaggageContext |
NoOpBaggageContextProvider.branch(BaggageContext from) |
void |
NoOpBaggageContextProvider.discard(BaggageContext baggage) |
static Bag |
BDLContextProvider.get(BaggageContext baggage,
BagKey key)
This method fetches the object stored in the provided
BaggageContext under the specified key, or returns
null if there is no object present. |
static java.util.Map<java.lang.String,java.lang.String> |
BDLContextUtils.getSizeSummary(BaggageContext instance) |
boolean |
BDLContextProvider.isValid(BaggageContext baggage) |
boolean |
NoOpBaggageContextProvider.isValid(BaggageContext baggage) |
boolean |
NestedBaggageContextProvider.isValid(BaggageContext baggage) |
boolean |
AtomContextProvider.isValid(BaggageContext baggageContext) |
void |
ThreadLocalTransitLayer.join(BaggageContext otherContext) |
void |
NoOpTransitLayer.join(BaggageContext otherContext) |
BaggageContext |
NoOpBaggageContextProvider.join(BaggageContext left,
BaggageContext right) |
byte[] |
NoOpBaggageContextProvider.serialize(BaggageContext baggage) |
byte[] |
NoOpBaggageContextProvider.serialize(BaggageContext baggage,
int maximumSerializedSize) |
static int |
BDLContextUtils.serializedSize(BaggageContext instance)
Ideally, this is an instance method, but for now we're doing it here
|
void |
ThreadLocalTransitLayer.set(BaggageContext baggage) |
void |
NoOpTransitLayer.set(BaggageContext baggage) |
static BaggageContext |
BDLContextProvider.set(BaggageContext baggage,
BagKey key,
Bag value)
Maps the specified key to the provided bag value.
|
void |
ThreadLocalTransitLayer.update(BaggageContext baggage) |
void |
NoOpTransitLayer.update(BaggageContext baggage) |
Constructor and Description |
---|
ThreadLocalTransitLayer(BaggageProvider<BaggageContext> provider) |