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 btxn,
BusinessTxnConfig btc)
This method initialises the processors associated with the supplied
business transaction configuration.
|
boolean |
isContentProcessed(BusinessTransaction btxn,
Node node,
Direction direction)
This method determines whether the business transaction, for the supplied node
and in/out direction, will process content information.
|
boolean |
isProcessed(BusinessTransaction btxn,
Node node,
Direction direction)
This method determines whether the business transaction, for the supplied node
and in/out direction, will process available information.
|
void |
process(BusinessTransaction btxn,
Node node,
Direction direction,
Map<String,?> headers,
Object... values)
This method processes the supplied information against the configured processor
details for the business transaction.
|
void |
remove(String btxn)
This method removes the business 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 btxn, BusinessTxnConfig btc)
btxn - The business transaction namebtc - The configurationpublic void remove(String btxn)
btxn - The business transaction namepublic boolean isProcessed(BusinessTransaction btxn, Node node, Direction direction)
btxn - The business transactionnode - The current nodedirection - The directionpublic boolean isContentProcessed(BusinessTransaction btxn, Node node, Direction direction)
btxn - The business transactionnode - The current nodedirection - The directionpublic void process(BusinessTransaction btxn, Node node, Direction direction, Map<String,?> headers, Object... values)
btxn - The business transactionnode - 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 Red Hat, Inc.. All rights reserved.