public class CollectorConfiguration extends Object
| Constructor and Description |
|---|
CollectorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Instrumentation> |
getInstrumentation() |
Map<String,String> |
getProperties() |
String |
getProperty(String name,
String def)
This method returns the property associated with the supplied name.
|
Map<String,TransactionConfig> |
getTransactions() |
void |
merge(CollectorConfiguration config,
boolean overwrite)
This method merges the supplied configuration into this configuration.
|
void |
setInstrumentation(Map<String,Instrumentation> instrumentation) |
void |
setProperties(Map<String,String> properties) |
void |
setTransactions(Map<String,TransactionConfig> transactions) |
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,TransactionConfig> getTransactions()
public void setTransactions(Map<String,TransactionConfig> transactions)
transactions - the transactions 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.