Package | Description |
---|---|
brown.tracingplane.baggageprotocol |
Defines an encoding scheme for nested data structures using atoms.
|
brown.tracingplane.impl |
Implementations of
BaggageContext at several different points in the Tracing Plane. |
Modifier and Type | Class and Description |
---|---|
static class |
BagKey.Indexed
An Indexed BagKey is one that uses an integer as identifier (versus arbitrary bytes for a
BagKey.Keyed key) |
static class |
BagKey.Keyed
A Keyed BagKey is one that uses arbitrary bytes as identifier (versus an integer for
BagKey.Indexed key) |
Modifier and Type | Method and Description |
---|---|
BagKey |
BaggageReader.enter()
If there are no more children in the current bag, returns null.
|
static BagKey |
BagKey.indexed(int index) |
static BagKey |
BagKey.indexed(int index,
BagOptions options) |
static BagKey |
BagKey.keyed(java.nio.ByteBuffer key) |
static BagKey |
BagKey.keyed(java.nio.ByteBuffer key,
BagOptions options) |
static BagKey |
BagKey.keyed(java.lang.String name,
BagOptions options) |
static BagKey |
BagKey.named(java.lang.String name) |
static BagKey |
HeaderSerialization.parse(AtomPrefixes.HeaderPrefix prefix,
java.nio.ByteBuffer buf)
Parses a bag key
|
static BagKey |
HeaderSerialization.parse(java.nio.ByteBuffer atom)
Parses a bag key from the provided atom
|
static BagKey |
HeaderSerialization.parseIndexedHeaderPayload(AtomPrefixes.HeaderPrefix prefix,
java.nio.ByteBuffer buf)
Parse the payload of an indexed header
|
static BagKey |
HeaderSerialization.parseKeyedHeaderPayload(AtomPrefixes.HeaderPrefix prefix,
java.nio.ByteBuffer buf)
Parse the payload of a keyed header
|
Modifier and Type | Method and Description |
---|---|
int |
BagKey.Indexed.compareTo(BagKey o) |
int |
BagKey.Keyed.compareTo(BagKey o) |
boolean |
BaggageReader.enter(BagKey expect)
Advances through the atoms until either the specified bag is encountered, or we encounter a bag that is
lexicographically greater than the specified bag.
|
BaggageWriter |
BaggageWriter.enter(BagKey field) |
static java.nio.ByteBuffer |
HeaderSerialization.serialize(BagKey bagKey,
int level)
Serialize the header atom, including prefix byte, for the provided bagKey and level
|
Modifier and Type | Field and Description |
---|---|
java.util.Map<BagKey,NestedBaggageContext> |
NestedBaggageContext.children |
Modifier and Type | Method and Description |
---|---|
static BagKey |
BaggageHandlerRegistry.get(BaggageHandler<?> handler)
Look up the
BagKey that the specified BaggageHandler is registered to |
Modifier and Type | Method and Description |
---|---|
static void |
BaggageHandlerRegistry.add(BagKey key,
BaggageHandler<?> handler)
Registers the provided key with the provided handler.
|
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. |
Bag |
BDLContext.get(BagKey key)
Get the value mapped to a key, or null if no mapping
|
void |
BDLContextUtils.BaggageAccessListener.get(BagKey bagKey) |
void |
BDLContextUtils.NullBaggageListener.get(BagKey bagKey) |
BDLContext |
BDLContext.put(BagKey key,
Bag value)
Set the value for a key.
|
BDLContext |
BDLContext.remove(BagKey key)
Remove the mapping for the specified key.
|
static void |
BaggageHandlerRegistry.remove(BagKey key)
Unregisters the handler for the specified bag key.
|
static int |
BDLContextUtils.serializedSize(BagKey key,
Bag bag)
Ideally, this is an instance method, but for now we're doing it here
|
static BaggageContext |
BDLContextProvider.set(BaggageContext baggage,
BagKey key,
Bag value)
Maps the specified key to the provided bag value.
|
void |
BDLContextUtils.BaggageAccessListener.set(BagKey bagKey) |
void |
BDLContextUtils.NullBaggageListener.set(BagKey bagKey) |