Package COM.activesw.api.client
Class BrokerLogConfig
java.lang.Object
COM.activesw.api.client.BrokerLogConfig
A log configuration object.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new log configuration object.BrokerLogConfig
(BrokerLogConfig log_config) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearLogOutput
(String code) Clear the state of a single log output.void
Clear the state of all log outputs.void
clearLogTopic
(String code) Clear the state of a single log topic.void
Clear the state of all log topics.getLogOutput
(String code) Get the value of a single log output.Get the state of all log outputs.getLogTopic
(String code) Get the value of a single log topic's state.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
(String code, boolean enabled, 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
(String code, boolean enabled, String value) Set the value of a single log topic's state.toString()
Get a string with the log config information in a form suitable for human viewing.toString
(int indent_level) Get a string with the log config information in a form suitable for human viewing.
-
Field Details
-
LOG_OUTPUT_UNIX_SYSLOG
- See Also:
-
LOG_OUTPUT_NT_EVENT_LOG
- See Also:
-
LOG_OUTPUT_SNMP_TRAP
- See Also:
-
LOG_TOPIC_ALERT
- See Also:
-
LOG_TOPIC_WARNING
- See Also:
-
LOG_TOPIC_INFO
- See Also:
-
-
Constructor Details
-
BrokerLogConfig
public BrokerLogConfig()Create a new log configuration object. The default log config has no entries. -
BrokerLogConfig
Copy constructor.- Throws:
BrokerNullParameterException
- If log_config is null.BrokerException
-
-
Method Details
-
getLogOutput
Get the value of a single log output. The code can be any of the LOG_OUTPUT_* values.- Throws:
BrokerNullParameterException
- If code is null.BrokerOutOfRangeException
- If the code value is not in this log config.BrokerException
-
getLogOutputs
Get the state of all log outputs. -
setLogOutput
Set the value of a single log output's state. The code can be any of the LOG_OUTPUT_* values. The value can be any additional string needed by the log output. Usually the value is null.- Throws:
BrokerNullParameterException
- If code is null.BrokerException
-
setLogOutput
Set the value of a simple log output's state. The code can be any of the LOG_OUTPUT_* values. The value can be any additional string needed by the log output. Usually the value is null.- Throws:
BrokerNullParameterException
- If log_outputs is null, or if log_output.code is null.BrokerException
-
clearLogOutput
Clear the state of a single log output. The code can be any of the LOG_OUTPUT_* constants.- Throws:
BrokerNullPointerException
- If code is null.BrokerException
-
clearLogOutputs
public void clearLogOutputs()Clear the state of all log outputs. -
getLogTopic
Get the value of a single log topic's state. The code can be any of the LOG_TOPIC_* constants.- Throws:
BrokerNullParameterException
- If code is null.BrokerOutOfRangeException
- If the code value is not set in this log config.BrokerException
-
getLogTopics
Get the states of all the log topics. -
setLogTopic
Set the value of a single log topic's state. The code values can be any of the LOG_TOPIC_* values. The value can be any additional string needed by the log topic. Usually the value is null.- Throws:
BrokerNullParameterException
- If code is null.BrokerException
-
setLogTopic
Set the value of a single log topic's state. The code values can be any of the LOG_TOPIC_* values. The value can be any additional string needed by the log topic. Usually the value is null.- Throws:
BrokerNullParameterException
- If log_topic is null, or if log_topic.code is null.BrokerException
-
clearLogTopic
Clear the state of a single log topic. The code can be any of the LOG_TOPIC_* constants.- Throws:
BrokerNullParameterException
- If code is null.BrokerException
-
clearLogTopics
public void clearLogTopics()Clear the state of all log topics. -
toString
Get a string with the log config information in a form suitable for human viewing. -
toString
Get a string with the log config information in a form suitable for human viewing. The "indent_level" is the number of 4-space indents that the output should be generated for.
-