public class DefaultBusinessTransactionCollector extends Object implements BusinessTransactionCollector, SessionManager
BATCH_SIZE, BATCH_THREADS, BATCH_TIME| Constructor and Description |
|---|
DefaultBusinessTransactionCollector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(String uri,
String operation) |
boolean |
activate(String uri,
String operation,
String id) |
void |
appendInBuffer(String location,
Object obj,
byte[] data,
int offset,
int len) |
void |
appendOutBuffer(String location,
Object obj,
byte[] data,
int offset,
int len) |
void |
assertComplete() |
protected void |
checkForCompletion(FragmentBuilder builder,
Node node)
This method checks whether the supplied fragment has been completed
and therefore should be processed.
|
void |
completeCorrelation(String id,
boolean allowSpawn) |
void |
componentEnd(String location,
String uri,
String type,
String operation) |
void |
componentStart(String location,
String uri,
String type,
String operation) |
void |
consumerEnd(String location,
String uri,
String type,
String operation) |
void |
consumerStart(String location,
String uri,
String type,
String operation,
String id) |
void |
correlate(String id) |
protected void |
diagnostics()
This method reports diagnostic information to the log.
|
protected BusinessTransactionPublisher |
getBusinessTransactionPublisher() |
protected int |
getCode(Object obj)
This method returns a code associated with the supplied object.
|
protected FragmentManager |
getFragmentManager()
This method provides access to the fragment manager.
|
protected String |
getHeaderValueText(Object value)
This method returns a textual representation of the supplied
header value.
|
String |
getLevel() |
String |
getName() |
String |
getPrincipal() |
Object |
getState(Object context,
String name,
boolean session) |
String |
getTenantId() |
void |
ignoreNode() |
void |
initiateCorrelation(String id) |
void |
initInBuffer(String location,
Object obj) |
protected void |
initNode(Node node)
This method initialises the supplied node.
|
void |
initOutBuffer(String location,
Object obj) |
boolean |
isActive() |
boolean |
isCorrelated(String id) |
boolean |
isInBufferActive(String location,
Object obj) |
boolean |
isInContentProcessed(String location) |
boolean |
isInProcessed(String location) |
boolean |
isOutBufferActive(String location,
Object obj) |
boolean |
isOutContentProcessed(String location) |
boolean |
isOutProcessed(String location) |
protected void |
mergeProducer(Producer inner,
Producer outer)
This method merges an inner Producer node information into its
containing Producer node, before removing the inner node.
|
protected <T extends Node> |
pop(String location,
FragmentBuilder builder,
Class<T> cls,
String uri)
This method pops an existing node from the business transaction fragment.
|
void |
processIn(String location,
Map<String,?> headers,
Object... values) |
protected void |
processInContent(String location,
FragmentBuilder builder,
int hashCode)
This method processes the in content if available.
|
void |
processOut(String location,
Map<String,?> headers,
Object... values) |
protected void |
processOutContent(String location,
FragmentBuilder builder,
int hashCode)
This method processes the out content if available.
|
protected void |
processValues(BusinessTransaction btxn,
Node node,
Direction direction,
Map<String,?> headers,
Object[] values)
This method processes the values associated with the start or end of a scoped
activity.
|
void |
producerEnd(String location,
String uri,
String type,
String operation) |
void |
producerStart(String location,
String uri,
String type,
String operation,
String id) |
protected void |
push(String location,
FragmentBuilder builder,
Node node)
This method pushes a new node into the business transaction fragment.
|
void |
recordInBuffer(String location,
Object obj) |
void |
recordOutBuffer(String location,
Object obj) |
void |
releaseNode(String id) |
void |
retainNode(String id) |
Node |
retrieveNode(String id) |
SessionManager |
session() |
protected void |
setBusinessTransactionPublisher(BusinessTransactionPublisher businessTransactionPublisher) |
void |
setConfigurationService(ConfigurationService cs)
This method sets the configuration service.
|
void |
setDetail(String location,
String name,
String value,
String nodeType,
boolean onStack) |
void |
setFault(String location,
String value,
String description) |
void |
setLevel(String location,
String level) |
void |
setName(String location,
String name) |
void |
setPrincipal(String location,
String principal) |
void |
setProperty(String location,
String name,
String value) |
void |
setState(Object context,
String name,
Object value,
boolean session) |
void |
setTenantId(String tenantId) |
protected void |
spawnFragment(FragmentBuilder parentBuilder,
Node node,
int position,
FragmentBuilder spawnedBuilder)
This method creates a new linked fragment to handle some asynchronous
activities.
|
void |
suppress() |
void |
unlink() |
public void setConfigurationService(ConfigurationService cs)
cs - The configuration serviceprotected BusinessTransactionPublisher getBusinessTransactionPublisher()
protected void setBusinessTransactionPublisher(BusinessTransactionPublisher businessTransactionPublisher)
businessTransactionPublisher - the businessTransactionPublisher to setpublic String getTenantId()
public void setTenantId(String tenantId)
tenantId - the tenantId to setpublic void setName(String location, String name)
setName in interface BusinessTransactionCollectorpublic String getName()
getName in interface BusinessTransactionCollectorpublic void setPrincipal(String location, String principal)
setPrincipal in interface BusinessTransactionCollectorpublic String getPrincipal()
getPrincipal in interface BusinessTransactionCollectorpublic void setLevel(String location, String level)
setLevel in interface BusinessTransactionCollectorpublic String getLevel()
getLevel in interface BusinessTransactionCollectorpublic void consumerStart(String location, String uri, String type, String operation, String id)
consumerStart in interface BusinessTransactionCollectorpublic void consumerEnd(String location, String uri, String type, String operation)
consumerEnd in interface BusinessTransactionCollectorpublic void componentStart(String location, String uri, String type, String operation)
componentStart in interface BusinessTransactionCollectorpublic void componentEnd(String location, String uri, String type, String operation)
componentEnd in interface BusinessTransactionCollectorpublic void producerStart(String location, String uri, String type, String operation, String id)
producerStart in interface BusinessTransactionCollectorpublic void producerEnd(String location, String uri, String type, String operation)
producerEnd in interface BusinessTransactionCollectorprotected void mergeProducer(Producer inner, Producer outer)
inner - outer - public boolean isInProcessed(String location)
isInProcessed in interface BusinessTransactionCollectorpublic boolean isInContentProcessed(String location)
isInContentProcessed in interface BusinessTransactionCollectorpublic boolean isOutProcessed(String location)
isOutProcessed in interface BusinessTransactionCollectorpublic boolean isOutContentProcessed(String location)
isOutContentProcessed in interface BusinessTransactionCollectorpublic void processIn(String location, Map<String,?> headers, Object... values)
processIn in interface BusinessTransactionCollectorpublic void processOut(String location, Map<String,?> headers, Object... values)
processOut in interface BusinessTransactionCollectorpublic void setFault(String location, String value, String description)
setFault in interface BusinessTransactionCollectorpublic void setProperty(String location, String name, String value)
setProperty in interface BusinessTransactionCollectorpublic void setDetail(String location, String name, String value, String nodeType, boolean onStack)
setDetail in interface BusinessTransactionCollectorpublic void initInBuffer(String location, Object obj)
initInBuffer in interface BusinessTransactionCollectorprotected int getCode(Object obj)
obj - The optional objectpublic boolean isInBufferActive(String location, Object obj)
isInBufferActive in interface BusinessTransactionCollectorpublic void appendInBuffer(String location, Object obj, byte[] data, int offset, int len)
appendInBuffer in interface BusinessTransactionCollectorpublic void recordInBuffer(String location, Object obj)
recordInBuffer in interface BusinessTransactionCollectorprotected void processInContent(String location, FragmentBuilder builder, int hashCode)
location - The instrumentation locationbuilder - The builderhashCode - The hash code, or -1 to ignore the hash codepublic void initOutBuffer(String location, Object obj)
initOutBuffer in interface BusinessTransactionCollectorpublic boolean isOutBufferActive(String location, Object obj)
isOutBufferActive in interface BusinessTransactionCollectorpublic void appendOutBuffer(String location, Object obj, byte[] data, int offset, int len)
appendOutBuffer in interface BusinessTransactionCollectorpublic void recordOutBuffer(String location, Object obj)
recordOutBuffer in interface BusinessTransactionCollectorprotected void processOutContent(String location, FragmentBuilder builder, int hashCode)
location - The instrumentation locationbuilder - The builderhashCode - The hash code, or -1 to ignore the hash codeprotected void initNode(Node node)
node - The nodeprotected void push(String location, FragmentBuilder builder, Node node)
location - The instrumentation locationbuilder - The fragment buildernode - The nodeprotected <T extends Node> T pop(String location, FragmentBuilder builder, Class<T> cls, String uri)
location - The instrumentation locationThe - class to popThe - optional URI to matchprotected void processValues(BusinessTransaction btxn, Node node, Direction direction, Map<String,?> headers, Object[] values)
btxn - The business transactionnode - The nodedirection - The directionheaders - The optional headersvalues - The valuesprotected String getHeaderValueText(Object value)
value - The original valueprotected void checkForCompletion(FragmentBuilder builder, Node node)
node - The most recently popped nodebuilder - The fragment builderpublic boolean activate(String uri, String operation)
activate in interface SessionManagerpublic boolean activate(String uri, String operation, String id)
activate in interface SessionManagerpublic boolean isActive()
isActive in interface SessionManagerpublic void retainNode(String id)
retainNode in interface SessionManagerpublic void releaseNode(String id)
releaseNode in interface SessionManagerpublic Node retrieveNode(String id)
retrieveNode in interface SessionManagerpublic void initiateCorrelation(String id)
initiateCorrelation in interface SessionManagerpublic boolean isCorrelated(String id)
isCorrelated in interface SessionManagerpublic void correlate(String id)
correlate in interface SessionManagerpublic void completeCorrelation(String id, boolean allowSpawn)
completeCorrelation in interface SessionManagerprotected void spawnFragment(FragmentBuilder parentBuilder, Node node, int position, FragmentBuilder spawnedBuilder)
public void unlink()
unlink in interface SessionManagerpublic void suppress()
suppress in interface SessionManagerpublic void ignoreNode()
ignoreNode in interface SessionManagerpublic void assertComplete()
assertComplete in interface SessionManagerpublic void setState(Object context, String name, Object value, boolean session)
setState in interface SessionManagerpublic Object getState(Object context, String name, boolean session)
getState in interface SessionManagerpublic SessionManager session()
session in interface BusinessTransactionCollectorprotected FragmentManager getFragmentManager()
protected void diagnostics()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.