|
||||||||||
| 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.global.SmallServers
public class SmallServers
The SmallServers class represents small server configurations. A small server configuration can optionally have a max servers setting.
| Field Summary | |
|---|---|
java.lang.Integer |
MAX_MAX_SERVERS
The high range of max servers. |
static java.lang.String |
MAX_SERVERS
|
java.lang.Integer |
MIN_MAX_SERVERS
The low range of max servers. |
static java.lang.String |
NO_LIMIT
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
log, NO, tokenIndex |
| Constructor Summary | |
|---|---|
SmallServers()
Constructs a SmallServers object. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateIos()
Generates an IOS string for the timestamp portion of a line. |
java.lang.Integer |
getMaxServers()
Gets the max servers. |
void |
setMaxServers(java.lang.Integer maxServers)
Sets the max servers. |
void |
validate()
Validates that the SmallServers object is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Integer MIN_MAX_SERVERS
public java.lang.Integer MAX_MAX_SERVERS
public static final java.lang.String MAX_SERVERS
public static final java.lang.String NO_LIMIT
| Constructor Detail |
|---|
public SmallServers()
| Method Detail |
|---|
public void setMaxServers(java.lang.Integer maxServers)
throws InvalidConfigurationException
maxServers - If null, no max server information is set. If 0, there is no limit for max servers. Otherwise,
the number of max servers between 1 and 2147483647.
InvalidConfigurationException - if the max servers parameter is out of range.public java.lang.Integer getMaxServers()
public void validate()
throws InvalidConfigurationException
InvalidConfigurationException - if the configuration is invalid.
public java.lang.String generateIos()
throws InvalidConfigurationException
InvalidConfigurationException - if any of the configuration elements are not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||