|
||||||||||
| 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.MemorySizeComponent
public class MemorySizeComponent
The MemorySize class represents the percentage of DRAM to use for I/O memory.
| Field Summary | |
|---|---|
static java.lang.String |
IOMEM
|
static java.lang.String |
MEMORY_SIZE
|
static java.lang.Integer[] |
staticValidIoMemorySizes
The list of valid I/O memory size percentages. |
| 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 | |
|---|---|
MemorySizeComponent()
Constructs a memory size 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 |
generateIos()
Returns the IOS configuration commands for this component. |
java.lang.Integer |
getIoMemorySize()
Gets the I/O memory size percentage. |
void |
setIoMemorySize(java.lang.Integer ioMemorySize)
Sets the I/O memory size percentage. |
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 MEMORY_SIZE
public static final java.lang.String IOMEM
public static final java.lang.Integer[] staticValidIoMemorySizes
| Constructor Detail |
|---|
public MemorySizeComponent()
| Method Detail |
|---|
public void setIoMemorySize(java.lang.Integer ioMemorySize)
throws InvalidConfigurationException
ioMemorySize - The memory size percentage.
InvalidConfigurationException - if the memory size is invalid.public java.lang.Integer getIoMemorySize()
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||