|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.line.LoggingComponent
public class LoggingComponent
The logging class modifies message logging facilities.
You can configure the system to synchronize unsolicited messages and debug command output with solicited device output and prompts for a specific line. You can identify the types of messages to be output asynchronously based on the level of severity. You can also determine the maximum number of buffers for storing asynchronous messages for the terminal after which messages are dropped. When synchronous logging of unsolicited messages and debug command output is turned on, unsolicited device output is displayed on the console or printed after solicited device output is displayed or printed. Unsolicited messages and debug command output is displayed on the console after the prompt for user input is returned. Therefore, unsolicited messages and debug command output are not interspersed with solicited device output and prompts. After the unsolicited messages are displayed, the console displays the user prompt again. Level 2 Limit 20
| Field Summary | |
|---|---|
static java.lang.Integer |
DEFAULT_BUFFER_LIMIT
The default buffer limit. |
static java.lang.String |
DEFAULT_SEVERITY_LEVEL
The default severity level. |
static java.lang.String |
LEVEL
|
static java.lang.String |
LEVEL_ALL
Turn off all severity levels for asynchronous output. |
static java.lang.String |
LIMIT
|
static java.lang.String |
LOGGING
|
static java.lang.Integer |
MAX_LEVEL
The maximum level. |
static java.lang.Integer |
MAX_NUM_BUFFERS
The maximum number of buffers. |
static java.lang.Integer |
MIN_LEVEL
The minimum level. |
static java.lang.Integer |
MIN_NUM_BUFFERS
The minimum number of buffers. |
static java.lang.String |
SYNCHRONOUS
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
LoggingComponent()
Constructs a logging object. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
Generates the IOS configuration commands to delete this component. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
java.lang.Integer |
getBufferLimit()
Gets the buffer limit. |
java.lang.String |
getSeverityLevel()
Gets the severity level. |
void |
setBufferLimit(java.lang.Integer bufferLimit)
Sets the buffer limit. |
void |
setSeverityLevel(java.lang.String severityLevel)
Sets the message severity level. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOGGING
public static final java.lang.String SYNCHRONOUS
public static final java.lang.String LEVEL
public static final java.lang.String LIMIT
public static final java.lang.String LEVEL_ALL
public static final java.lang.Integer MIN_NUM_BUFFERS
public static final java.lang.Integer MAX_NUM_BUFFERS
public static final java.lang.Integer MIN_LEVEL
public static final java.lang.Integer MAX_LEVEL
public static final java.lang.Integer DEFAULT_BUFFER_LIMIT
public static final java.lang.String DEFAULT_SEVERITY_LEVEL
| Constructor Detail |
|---|
public LoggingComponent()
| Method Detail |
|---|
public void setSeverityLevel(java.lang.String severityLevel)
severityLevel - The severity level.public java.lang.String getSeverityLevel()
public void setBufferLimit(java.lang.Integer bufferLimit)
bufferLimit - The buffer limit.public java.lang.Integer getBufferLimit()
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateDeleteIos in class CiscoRouterConfigComponentupdatedCiscoRouterConfig - the updated Cisco router configuration.
InvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.MultiLineComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||