public class CollectorConfiguration extends Object
| Constructor and Description |
|---|
CollectorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,BusinessTxnConfig> |
getBusinessTransactions() |
Map<String,Instrumentation> |
getInstrumentation() |
Map<String,String> |
getProperties() |
String |
getProperty(String name,
String def)
This method returns the property associated with the supplied name.
|
void |
merge(CollectorConfiguration config,
boolean overwrite)
This method merges the supplied configuration into this configuration.
|
void |
setBusinessTransactions(Map<String,BusinessTxnConfig> businessTransactions) |
void |
setInstrumentation(Map<String,Instrumentation> instrumentation) |
void |
setProperties(Map<String,String> properties) |
public void setProperties(Map<String,String> properties)
properties - the properties to setpublic String getProperty(String name, String def)
name - The name of the required propertydef - The optional default valuepublic Map<String,Instrumentation> getInstrumentation()
public void setInstrumentation(Map<String,Instrumentation> instrumentation)
instrumentation - the instrumentation to setpublic Map<String,BusinessTxnConfig> getBusinessTransactions()
public void setBusinessTransactions(Map<String,BusinessTxnConfig> businessTransactions)
businessTransactions - the businessTransactions to setpublic void merge(CollectorConfiguration config, boolean overwrite) throws IllegalArgumentException
config - The configuration to mergeoverwrite - Whether to overwrite when conflict foundIllegalArgumentException - Failed to merge due to a conflictCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.