public class BrokerLogConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_OUTPUT_NT_EVENT_LOG |
static java.lang.String |
LOG_OUTPUT_SNMP_TRAP |
static java.lang.String |
LOG_OUTPUT_UNIX_SYSLOG |
static java.lang.String |
LOG_TOPIC_ALERT |
static java.lang.String |
LOG_TOPIC_INFO |
static java.lang.String |
LOG_TOPIC_WARNING |
Constructor and Description |
---|
BrokerLogConfig()
Create a new log configuration object.
|
BrokerLogConfig(BrokerLogConfig log_config)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearLogOutput(java.lang.String code)
Clear the state of a single log output.
|
void |
clearLogOutputs()
Clear the state of all log outputs.
|
void |
clearLogTopic(java.lang.String code)
Clear the state of a single log topic.
|
void |
clearLogTopics()
Clear the state of all log topics.
|
BrokerLogConfigEntry |
getLogOutput(java.lang.String code)
Get the value of a single log output.
|
BrokerLogConfigEntry[] |
getLogOutputs()
Get the state of all log outputs.
|
BrokerLogConfigEntry |
getLogTopic(java.lang.String code)
Get the value of a single log topic's state.
|
BrokerLogConfigEntry[] |
getLogTopics()
Get the states of all the log topics.
|
void |
setLogOutput(BrokerLogConfigEntry log_output)
Set the value of a simple log output's state.
|
void |
setLogOutput(java.lang.String code,
boolean enabled,
java.lang.String value)
Set the value of a single log output's state.
|
void |
setLogTopic(BrokerLogConfigEntry log_topic)
Set the value of a single log topic's state.
|
void |
setLogTopic(java.lang.String code,
boolean enabled,
java.lang.String value)
Set the value of a single log topic's state.
|
java.lang.String |
toString()
Get a string with the log config information in a form suitable for human viewing.
|
java.lang.String |
toString(int indent_level)
Get a string with the log config information in a form suitable for human viewing.
|
public static final java.lang.String LOG_OUTPUT_UNIX_SYSLOG
public static final java.lang.String LOG_OUTPUT_NT_EVENT_LOG
public static final java.lang.String LOG_OUTPUT_SNMP_TRAP
public static final java.lang.String LOG_TOPIC_ALERT
public static final java.lang.String LOG_TOPIC_WARNING
public static final java.lang.String LOG_TOPIC_INFO
public BrokerLogConfig()
public BrokerLogConfig(BrokerLogConfig log_config) throws BrokerException
BrokerNullParameterException
- If log_config is null.BrokerException
public BrokerLogConfigEntry getLogOutput(java.lang.String code) throws BrokerException
BrokerNullParameterException
- If code is null.BrokerOutOfRangeException
- If the code value is not in this log config.BrokerException
public BrokerLogConfigEntry[] getLogOutputs()
public void setLogOutput(java.lang.String code, boolean enabled, java.lang.String value) throws BrokerException
BrokerNullParameterException
- If code is null.BrokerException
public void setLogOutput(BrokerLogConfigEntry log_output) throws BrokerException
BrokerNullParameterException
- If log_outputs is null, or if log_output.code is null.BrokerException
public void clearLogOutput(java.lang.String code) throws BrokerException
BrokerNullPointerException
- If code is null.BrokerException
public void clearLogOutputs()
public BrokerLogConfigEntry getLogTopic(java.lang.String code) throws BrokerException
BrokerNullParameterException
- If code is null.BrokerOutOfRangeException
- If the code value is not set in this log config.BrokerException
public BrokerLogConfigEntry[] getLogTopics()
public void setLogTopic(java.lang.String code, boolean enabled, java.lang.String value) throws BrokerException
BrokerNullParameterException
- If code is null.BrokerException
public void setLogTopic(BrokerLogConfigEntry log_topic) throws BrokerException
BrokerNullParameterException
- If log_topic is null, or if log_topic.code is null.BrokerException
public void clearLogTopic(java.lang.String code) throws BrokerException
BrokerNullParameterException
- If code is null.BrokerException
public void clearLogTopics()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indent_level)
Copyright © 2002-2006 webMethods, Inc. Copyright © 2007-2021 Software AG Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.