public class ProcessorManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ProcessorManager.ProcessorActionWrapper
This class provides the execution behaviour associated with the
information defined in the collector configuration processor
definition.
|
class |
ProcessorManager.ProcessorWrapper
This class provides the execution behaviour associated with the
information defined in the collector configuration processor
definition.
|
| Constructor and Description |
|---|
ProcessorManager(CollectorConfiguration config)
This constructor initialises the processor manager with the configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,List<ProcessorManager.ProcessorWrapper>> |
getProcessors() |
protected void |
init(CollectorConfiguration config)
This method initialises the filter manager.
|
void |
init(String txn,
TransactionConfig btc)
This method initialises the processors associated with the supplied
transaction configuration.
|
boolean |
isContentProcessed(Trace trace,
Node node,
Direction direction)
This method determines whether the trace, for the supplied node
and in/out direction, will process content information.
|
boolean |
isProcessed(Trace trace,
Node node,
Direction direction)
This method determines whether the trace, for the supplied node
and in/out direction, will process available information.
|
void |
process(Trace trace,
Node node,
Direction direction,
Map<String,?> headers,
Object... values)
This method processes the supplied information against the configured processor
details for the trace.
|
void |
remove(String txn)
This method removes the transaction configuration.
|
protected void |
setProcessors(Map<String,List<ProcessorManager.ProcessorWrapper>> processors) |
public ProcessorManager(CollectorConfiguration config)
config - The configurationprotected void init(CollectorConfiguration config)
config - The configurationpublic void init(String txn, TransactionConfig btc)
txn - The transaction namebtc - The configurationpublic void remove(String txn)
txn - The transaction namepublic boolean isProcessed(Trace trace, Node node, Direction direction)
trace - The tracenode - The current nodedirection - The directionpublic boolean isContentProcessed(Trace trace, Node node, Direction direction)
trace - The tracenode - The current nodedirection - The directionpublic void process(Trace trace, Node node, Direction direction, Map<String,?> headers, Object... values)
trace - The tracenode - The node being processeddirection - The directionheaders - The headersvalues - The valuesprotected Map<String,List<ProcessorManager.ProcessorWrapper>> getProcessors()
protected void setProcessors(Map<String,List<ProcessorManager.ProcessorWrapper>> processors)
processors - the processors to setCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.