|
||||||||||
| 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.RotaryComponent
public class RotaryComponent
The rotary command adds a line to a rotary group.
| Field Summary | |
|---|---|
static java.lang.Integer |
MAX_GROUP
The maximum group. |
static java.lang.Integer |
MIN_GROUP
The minimum group. |
static java.lang.String |
QUEUED
|
static java.lang.String |
ROTARY
|
static java.lang.String |
ROUND_ROBIN
|
| 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 | |
|---|---|
RotaryComponent()
Constructs a rotary 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 |
getGroup()
Gets the rotary group. |
boolean |
getQueued()
Gets the queued flag. |
boolean |
getRoundRobin()
Gets the round robin flag. |
void |
setGroup(java.lang.Integer group)
Sets the rotary group. |
void |
setQueued(boolean queued)
Sets the queued flag. |
void |
setRoundRobin(boolean roundRobin)
Sets the round robin flag. |
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 ROTARY
public static final java.lang.String QUEUED
public static final java.lang.String ROUND_ROBIN
public static final java.lang.Integer MIN_GROUP
public static final java.lang.Integer MAX_GROUP
| Constructor Detail |
|---|
public RotaryComponent()
| Method Detail |
|---|
public void setGroup(java.lang.Integer group)
group - The rotary group.public java.lang.Integer getGroup()
public void setQueued(boolean queued)
queued - The queued flag.public boolean getQueued()
public boolean getRoundRobin()
public void setRoundRobin(boolean roundRobin)
roundRobin - the round robin flag.
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 | |||||||||