public class P6LogOptions extends javax.management.StandardMBean implements P6LogLoadableOptions
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
defaults |
static java.lang.String |
EXCLUDE |
static java.lang.String |
EXCLUDE_LIST |
static java.lang.String |
EXCLUDEBINARY |
static java.lang.String |
EXCLUDECATEGORIES |
static java.lang.String |
EXCLUDECATEGORIES_SET |
static java.lang.String |
EXECUTION_THRESHOLD |
static java.lang.String |
FILTER |
static java.lang.String |
INCLUDE |
static java.lang.String |
INCLUDE_EXCLUDE_PATTERN |
static java.lang.String |
INCLUDE_LIST |
static java.lang.String |
SQLEXPRESSION |
static java.lang.String |
SQLEXPRESSION_PATTERN |
Constructor and Description |
---|
P6LogOptions(P6OptionsRepository optionsRepository) |
Modifier and Type | Method and Description |
---|---|
static P6LogLoadableOptions |
getActiveInstance()
Utility method, to make accessing options from app less verbose.
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaults() |
java.lang.String |
getExclude() |
boolean |
getExcludebinary() |
java.lang.String |
getExcludecategories() |
java.util.Set<Category> |
getExcludeCategoriesSet() |
java.util.Set<java.lang.String> |
getExcludeList() |
long |
getExecutionThreshold() |
boolean |
getFilter() |
java.lang.String |
getInclude() |
java.util.regex.Pattern |
getIncludeExcludePattern() |
java.util.Set<java.lang.String> |
getIncludeList() |
java.lang.String |
getSQLExpression() |
java.util.regex.Pattern |
getSQLExpressionPattern() |
void |
load(java.util.Map<java.lang.String,java.lang.String> options)
Loads only those options, that are relevant for the current implementation.
|
void |
setExclude(java.lang.String exclude) |
void |
setExcludebinary(boolean excludebinary) |
void |
setExcludebinary(java.lang.String excludebinary) |
void |
setExcludecategories(java.lang.String excludecategories) |
void |
setExecutionThreshold(long executionThreshold) |
void |
setExecutionThreshold(java.lang.String executionThreshold) |
void |
setFilter(boolean filter) |
void |
setFilter(java.lang.String filter) |
void |
setInclude(java.lang.String include) |
void |
setSQLExpression(java.lang.String sqlexpression) |
void |
unSetSQLExpression() |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public static final java.lang.String EXCLUDE
public static final java.lang.String INCLUDE
public static final java.lang.String FILTER
public static final java.lang.String EXCLUDECATEGORIES
public static final java.lang.String EXCLUDEBINARY
public static final java.lang.String EXECUTION_THRESHOLD
public static final java.lang.String SQLEXPRESSION
public static final java.lang.String INCLUDE_LIST
public static final java.lang.String EXCLUDE_LIST
public static final java.lang.String INCLUDE_EXCLUDE_PATTERN
public static final java.lang.String EXCLUDECATEGORIES_SET
public static final java.lang.String SQLEXPRESSION_PATTERN
protected static final java.util.Map<java.lang.String,java.lang.String> defaults
public P6LogOptions(P6OptionsRepository optionsRepository)
public void load(java.util.Map<java.lang.String,java.lang.String> options)
P6LoadableOptions
load
in interface P6LoadableOptions
options
- options to be loaded.public static P6LogLoadableOptions getActiveInstance()
P6LogLoadableOptions
public java.util.Map<java.lang.String,java.lang.String> getDefaults()
getDefaults
in interface P6LoadableOptions
public void setExclude(java.lang.String exclude)
setExclude
in interface P6LogOptionsMBean
public java.lang.String getExclude()
getExclude
in interface P6LogOptionsMBean
public void setExcludebinary(boolean excludebinary)
setExcludebinary
in interface P6LogOptionsMBean
public void setExcludebinary(java.lang.String excludebinary)
setExcludebinary
in interface P6LogLoadableOptions
public boolean getExcludebinary()
getExcludebinary
in interface P6LogOptionsMBean
public void setExcludecategories(java.lang.String excludecategories)
setExcludecategories
in interface P6LogOptionsMBean
public java.lang.String getExcludecategories()
getExcludecategories
in interface P6LogOptionsMBean
public void setFilter(java.lang.String filter)
setFilter
in interface P6LogLoadableOptions
public void setFilter(boolean filter)
setFilter
in interface P6LogOptionsMBean
public boolean getFilter()
getFilter
in interface P6LogOptionsMBean
public void setInclude(java.lang.String include)
setInclude
in interface P6LogOptionsMBean
public java.lang.String getInclude()
getInclude
in interface P6LogOptionsMBean
public java.lang.String getSQLExpression()
getSQLExpression
in interface P6LogOptionsMBean
public java.util.regex.Pattern getSQLExpressionPattern()
getSQLExpressionPattern
in interface P6LogLoadableOptions
public void setSQLExpression(java.lang.String sqlexpression)
setSQLExpression
in interface P6LogOptionsMBean
public void unSetSQLExpression()
unSetSQLExpression
in interface P6LogOptionsMBean
public void setExecutionThreshold(java.lang.String executionThreshold)
setExecutionThreshold
in interface P6LogLoadableOptions
public void setExecutionThreshold(long executionThreshold)
setExecutionThreshold
in interface P6LogOptionsMBean
public long getExecutionThreshold()
getExecutionThreshold
in interface P6LogOptionsMBean
public java.util.Set<java.lang.String> getIncludeList()
getIncludeList
in interface P6LogOptionsMBean
public java.util.Set<java.lang.String> getExcludeList()
getExcludeList
in interface P6LogOptionsMBean
public java.util.regex.Pattern getIncludeExcludePattern()
getIncludeExcludePattern
in interface P6LogLoadableOptions
public java.util.Set<Category> getExcludeCategoriesSet()
getExcludeCategoriesSet
in interface P6LogOptionsMBean