|
||||||||||
| 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.mapclassframerelay.FrameRelayMincirComponent
public class FrameRelayMincirComponent
The frame relay Minimum CIR class sets the minimum acceptable Committed Information Rate (CIR). The default is 56000 bps.
| Field Summary | |
|---|---|
static java.lang.String |
DIRECTION_BOTH
The Min CIR applies to both input and output. |
static java.lang.String |
DIRECTION_IN
The Min CIR applies only to input. |
static java.lang.String |
DIRECTION_OUT
The Min CIR applies only to output. |
static java.lang.String |
FRAME_RELAY
|
static java.lang.String |
IN
|
static java.lang.Integer |
MAX_CIR
The maximum CIR. |
static java.lang.Integer |
MIN_CIR
The minimum CIR. |
static java.lang.String |
MINCIR
|
static java.lang.String |
OUT
|
| 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 | |
|---|---|
FrameRelayMincirComponent()
Constructs a frame relay minimum CIR 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. |
boolean |
equalsComponentInstance(CiscoRouterConfigComponent component)
Determines if this component and the passed in component are the same instance of component that can be compared from an IOS configuration standpoint. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
protected java.lang.String |
generateUniqueHeaderInfo()
Generates the IOS header that makes each component unique. |
java.lang.String |
getDirection()
Gets the direction. |
java.lang.Integer |
getMinCir()
Gets the minimum acceptable committed information rate (CIR). |
void |
setDirection(java.lang.String direction)
Sets the direction. |
void |
setMinCir(java.lang.Integer minCir)
Sets the minimum accepted committed information rate (CIR). |
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 |
| Methods inherited from interface com.foxsmart.csu.config.MultiInstanceComponent |
|---|
requiresCommentSeparator |
| Field Detail |
|---|
public static final java.lang.String FRAME_RELAY
public static final java.lang.String MINCIR
public static final java.lang.String OUT
public static final java.lang.String IN
public static final java.lang.String DIRECTION_BOTH
public static final java.lang.String DIRECTION_IN
public static final java.lang.String DIRECTION_OUT
public static final java.lang.Integer MIN_CIR
public static final java.lang.Integer MAX_CIR
| Constructor Detail |
|---|
public FrameRelayMincirComponent()
| Method Detail |
|---|
public void setMinCir(java.lang.Integer minCir)
minCir - The minimum committed information rate.public java.lang.Integer getMinCir()
public void setDirection(java.lang.String direction)
direction - The direction.public java.lang.String getDirection()
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.CiscoRouterConfigComponentprotected java.lang.String generateUniqueHeaderInfo()
public boolean equalsComponentInstance(CiscoRouterConfigComponent component)
throws InvalidConfigurationException
equalsComponentInstance in interface MultiInstanceComponentcomponent - The component to compare to this component.
InvalidConfigurationException - if either this or the passed in component aren't valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||