|
||||||||||
| 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.IpComponent
public class IpComponent
The ip class configures various IP line parameters. Specifically, the netmask display and the input coalesce threshold can both be set.
| Field Summary | |
|---|---|
static java.lang.String |
BIT_COUNT
|
static java.lang.String |
DECIMAL
|
static int |
DEFAULT_NUM_PACKETS
The default number of packets. |
static java.lang.String |
HEXADECIMAL
|
static java.lang.String |
INPUT_COALESCE_THRESHOLD
|
static java.lang.String |
IP
|
static int |
MAX_NUM_PACKETS
The maximum number of packets. |
static int |
MIN_NUM_PACKETS
The minimum number of packets. |
static java.lang.String |
NETMASK_FORMAT
|
static java.lang.String |
NETMASK_FORMAT_BIT_COUNT
Display netmask as number of significant bits. |
static java.lang.String |
NETMASK_FORMAT_DECIMAL
Display netmask in dotted decimal. |
static java.lang.String |
NETMASK_FORMAT_HEXADECIMAL
Display netmask in hexadecimal. |
static java.lang.String |
TCP
|
| 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 | |
|---|---|
IpComponent()
Constructs an IP Component 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 |
getInputCoalesceThreshold()
Gets the input coalesce threshold. |
java.lang.String |
getNetmaskFormat()
Gets the netmask format. |
void |
setInputCoalesceThreshold(java.lang.Integer inputCoalesceThreshold)
Set the threshold that triggers packet coalescing. |
void |
setNetmaskFormat(java.lang.String netmaskFormat)
Sets the netmask format. |
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 int MIN_NUM_PACKETS
public static final int MAX_NUM_PACKETS
public static final int DEFAULT_NUM_PACKETS
public static final java.lang.String IP
public static final java.lang.String TCP
public static final java.lang.String NETMASK_FORMAT
public static final java.lang.String BIT_COUNT
public static final java.lang.String DECIMAL
public static final java.lang.String HEXADECIMAL
public static final java.lang.String INPUT_COALESCE_THRESHOLD
public static final java.lang.String NETMASK_FORMAT_BIT_COUNT
public static final java.lang.String NETMASK_FORMAT_DECIMAL
public static final java.lang.String NETMASK_FORMAT_HEXADECIMAL
| Constructor Detail |
|---|
public IpComponent()
| Method Detail |
|---|
public void setNetmaskFormat(java.lang.String netmaskFormat)
netmaskFormat - The netmask format.public java.lang.String getNetmaskFormat()
public void setInputCoalesceThreshold(java.lang.Integer inputCoalesceThreshold)
inputCoalesceThreshold - The input coalesce threshold.public java.lang.Integer getInputCoalesceThreshold()
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 interface MultiLineComponentgenerateDeleteIos 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 | |||||||||