public class ContextAwareGremlinCoordinatesProvider extends GremlinCoordinatesProvider
TrafficCoordinates
in that request. Call setContext(Map)
at the beginning of the request and clearContext()
at the end.
This class is intended to be used as a singletonConstructor and Description |
---|
ContextAwareGremlinCoordinatesProvider() |
Modifier and Type | Method and Description |
---|---|
void |
clearContext() |
TrafficCoordinates |
extendEachTrafficCoordinates(TrafficCoordinates incomingCoordinates)
For every set of
TrafficCoordinates , extend the set of attributes. |
void |
setContext(java.util.Map<java.lang.String,java.lang.String> perThreadContext) |
initializeApplicationCoordinates
public ContextAwareGremlinCoordinatesProvider()
public TrafficCoordinates extendEachTrafficCoordinates(TrafficCoordinates incomingCoordinates)
GremlinCoordinatesProvider
TrafficCoordinates
, extend the set of attributes. Each added attribute is then
available to match on when creating blast radius.
Since this happens for each TrafficCoordinates
, this is a convenient way to tell Gremlin about
pieces of data that are in every request (Ex: customer, country, device, etc)
For example, if you add "CUSTOMER_ID" as a traffic attribute (via `coordinates.put("CUSTOMER_ID", myCustomerId)`),
then you can use "CUSTOMER_ID" in the Gremlin UI to target attacksextendEachTrafficCoordinates
in class GremlinCoordinatesProvider
incomingCoordinates
- key-value map describing the trafficpublic void setContext(java.util.Map<java.lang.String,java.lang.String> perThreadContext)
public void clearContext()