|
||||||||||
| 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.FrameRelayCirComponent
public class FrameRelayCirComponent
The frame relay CIR class sets the Committed Information Rate (CIR). The default is 56000 bps.
| Field Summary | |
|---|---|
static java.lang.String |
CIR
|
static java.lang.String |
DIRECTION_BOTH
The CIR applies to both input and output. |
static java.lang.String |
DIRECTION_IN
The CIR applies only to input. |
static java.lang.String |
DIRECTION_OUT
The 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 value. |
static java.lang.Integer |
MIN_CIR
The minimum CIR value. |
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 | |
|---|---|
FrameRelayCirComponent()
Constructs a frame relay 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.Integer |
getCir()
Gets the committed information rate (CIR). |
java.lang.String |
getDirection()
Gets the direction. |
void |
setCir(java.lang.Integer cir)
Sets the committed information rate (CIR). |
void |
setDirection(java.lang.String direction)
Sets the direction. |
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 CIR
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 FrameRelayCirComponent()
| Method Detail |
|---|
public void setCir(java.lang.Integer cir)
cir - The committed information rate.public java.lang.Integer getCir()
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 | |||||||||