|
||||||||||
| 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.FlowcontrolComponent
public class FlowcontrolComponent
Sets the flow control characteristics between the router and an attached device.
| Field Summary | |
|---|---|
static java.lang.String |
FLOWCONTROL
|
static java.lang.String |
FLOWCONTROL_HARDWARE
Sets the flow control to hardware controlled. |
static java.lang.String |
FLOWCONTROL_SOFTWARE
Sets the flow control to software controlled. |
static java.lang.String |
FLOWCONTROL_SOFTWARE_LOCK
Sets the flow control to software controlled while ignoring network host requests to change flow control. |
static java.lang.String |
HARDWARE
|
static java.lang.String |
IN
|
static java.lang.String |
LOCK
|
static java.lang.String |
OUT
|
static java.lang.String |
SOFTWARE
|
| 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 | |
|---|---|
FlowcontrolComponent()
Constructs a flow control 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.String |
getInFlowControlType()
Gets the "in" flow control type. |
java.lang.String |
getOutFlowControlType()
Gets the "out" flow control type. |
void |
setInFlowControlType(java.lang.String inFlowControlType)
Sets the "in" flow control type. |
void |
setOutFlowControlType(java.lang.String outFlowControlType)
Sets the "out" flow control type. |
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 FLOWCONTROL
public static final java.lang.String LOCK
public static final java.lang.String SOFTWARE
public static final java.lang.String HARDWARE
public static final java.lang.String IN
public static final java.lang.String OUT
public static final java.lang.String FLOWCONTROL_SOFTWARE
public static final java.lang.String FLOWCONTROL_SOFTWARE_LOCK
public static final java.lang.String FLOWCONTROL_HARDWARE
| Constructor Detail |
|---|
public FlowcontrolComponent()
| Method Detail |
|---|
public void setInFlowControlType(java.lang.String inFlowControlType)
inFlowControlType - The in flow control type.public java.lang.String getInFlowControlType()
public void setOutFlowControlType(java.lang.String outFlowControlType)
outFlowControlType - The out flow control type.public java.lang.String getOutFlowControlType()
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 | |||||||||