|
||||||||||
| 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.ServiceComponent
public class ServiceComponent
The Service class represents the various network based service options on the router.
| Field Summary | |
|---|---|
static java.lang.String |
AGE
|
static java.lang.String |
ALIGNMENT
|
static java.lang.String |
CMNS
|
static java.lang.String |
COMPRESS_CONFIG
|
static java.lang.String |
CONFIG
|
static java.lang.String |
COUNTERS
|
static java.lang.String |
DEBUG
|
static java.lang.String |
DETECTION
|
static java.lang.String |
DHCP
|
static java.lang.String |
DISABLE_IP_FAST_FRAG
|
static java.lang.String |
EXEC_CALLBACK
|
static java.lang.String |
EXEC_WAIT
|
static java.lang.String |
FINGER
|
static java.lang.String |
FROM_XOT
|
static java.lang.String |
HIDE_TELNET_ADDRESSES
|
static java.lang.String |
LINENUMBER
|
static java.lang.String |
LOG
|
static java.lang.String |
LOGGING
|
static java.lang.String |
MAX
|
static java.lang.String |
NAGLE
|
static java.lang.String |
OLD_SLIP_PROMPTS
|
static java.lang.String |
PAD
|
static java.lang.String |
PASSWORD_ENCRYPTION
|
static java.lang.String |
PROMPT
|
static java.lang.String |
PT_VTY_LOGGING
|
static java.lang.String |
SEQUENCE_NUMBERS
|
static java.lang.String |
SERVICE
|
static java.lang.String |
SINGLE_SLOT_RELOAD_ENABLE
|
static java.lang.String |
SLAVE_LOG
|
static java.lang.String |
TCP_KEEPALIVES_IN
|
static java.lang.String |
TCP_KEEPALIVES_OUT
|
static java.lang.String |
TCP_SMALL_SERVERS
|
static java.lang.String |
TELNET_ZEROIDLE
|
static java.lang.String |
TIMESTAMPS
|
static java.lang.String |
TO_XOT
|
static java.lang.String |
UDP_SMALL_SERVERS
|
| 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 | |
|---|---|
ServiceComponent()
Constructs a service 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. |
boolean |
getAlignmentDetection()
Gets the alignment detection flag. |
boolean |
getAlignmentLogging()
Gets the alignment logging flag. |
boolean |
getCompressConfig()
Gets the compress config flag. |
boolean |
getConfig()
Gets the config flag. |
Timestamps |
getDebugTimestamps()
Gets the debug timestamps. |
boolean |
getDhcp()
Gets the DHCP flag. |
boolean |
getDisableIpFastFrag()
Gets the disable IP fast frag flag. |
boolean |
getExecCallback()
Gets the exec callback flag. |
boolean |
getExecWait()
Gets the exec wait flag. |
boolean |
getFinger()
Gets the finger flag. |
boolean |
getHideTelnetAddresses()
Gets the hide telnet addresses flag. |
boolean |
getLineNumber()
Gets the line number flag. |
Timestamps |
getLogTimestamps()
Gets the log timestamps. |
boolean |
getNagle()
Gets the nagle flag. |
boolean |
getOldSlipPrompts()
Gets the old slip prompts flag. |
boolean |
getPad()
Gets the main pad flag. |
boolean |
getPadCmns()
Gets the pad CMNS flag. |
boolean |
getPadFromXot()
Gets the pad From XOT flag. |
boolean |
getPadToXot()
Gets the pad To XOT flag. |
boolean |
getPasswordEncryption()
Gets the password encryption flag. |
boolean |
getPromptConfig()
Gets the prompt config flag. |
boolean |
getPtVtyLogging()
Gets the pt vty logging flag. |
boolean |
getSequenceNumbers()
Gets the sequence numbers flag. |
java.lang.Integer |
getServiceCountersMaxAge()
Gets the service counters max age in seconds. |
boolean |
getSingleSlotReloadEnable()
Gets the single slot reload enable flag. |
boolean |
getSlaveLog()
Gets the slave log flag. |
boolean |
getTcpKeepalivesIn()
Gets the TCP keepalives in flag. |
boolean |
getTcpKeepalivesOut()
Gets the TCP keepalives out flag. |
SmallServers |
getTcpSmallServers()
Gets the TCP small servers. |
boolean |
getTelnetZeroIdle()
Gets the telnet zero idle flag. |
SmallServers |
getUdpSmallServers()
Gets the UDP small servers. |
void |
setAlignmentDetection(boolean alignmentDetection)
Sets the alignment detection flag which is used to control alignment. |
void |
setAlignmentLogging(boolean alignmentLogging)
Sets the alignment logging flag which is used to control alignment logging. |
void |
setCompressConfig(boolean compressConfig)
Sets the compress config flag. |
void |
setConfig(boolean config)
Sets the config flag. |
void |
setDebugTimestamps(Timestamps debugTimestamps)
Sets the debug timestamps information. |
void |
setDhcp(boolean dhcp)
Sets the DHCP flag. |
void |
setDisableIpFastFrag(boolean disableIpFastFrag)
Sets the disable IP fast frag flag. |
void |
setExecCallback(boolean execCallback)
Sets the exec callback flag. |
void |
setExecWait(boolean execWait)
Sets the exec wait flag. |
void |
setFinger(boolean finger)
Sets the finger flag. |
void |
setHideTelnetAddresses(boolean hideTelnetAddresses)
Sets the hide telnet addresses flag. |
void |
setLineNumber(boolean lineNumber)
Sets the line number flag. |
void |
setLogTimestamps(Timestamps logTimestamps)
Sets the log timestamps information. |
void |
setNagle(boolean nagle)
Sets the nagle flag. |
void |
setOldSlipPrompts(boolean oldSlipPrompts)
Sets the old slip prompts flag. |
void |
setPad(boolean pad)
Sets the main pad flag. |
void |
setPadCmns(boolean padCmns)
Sets the pad CMNS flag. |
void |
setPadFromXot(boolean padFromXot)
Sets the pad From XOT flag. |
void |
setPadToXot(boolean padToXot)
Sets the pad To XOT flag. |
void |
setPasswordEncryption(boolean passwordEncryption)
Sets the password encryption flag. |
void |
setPromptConfig(boolean promptConfig)
Sets the prompt config flag. |
void |
setPtVtyLogging(boolean ptVtyLogging)
Sets the pt vty logging flag. |
void |
setSequenceNumbers(boolean sequenceNumbers)
Sets the sequence numbers flag. |
void |
setServiceCountersMaxAge(java.lang.Integer serviceCountersMaxAge)
Sets the service counters max age in seconds. |
void |
setSingleSlotReloadEnable(boolean singleSlotReloadEnable)
Sets the single slot reload enable flag (i.e. |
void |
setSlaveLog(boolean slaveLog)
Sets the slave log flag. |
void |
setTcpKeepalivesIn(boolean tcpKeepalivesIn)
Sets the TCP keepalives in flag. |
void |
setTcpKeepalivesOut(boolean tcpKeepalivesOut)
Sets the TCP keepalives out flag. |
void |
setTcpSmallServers(SmallServers tcpSmallServers)
Sets the TCP small servers information. |
void |
setTelnetZeroIdle(boolean telnetZeroIdle)
Sets the telnet zero idle flag. |
void |
setUdpSmallServers(SmallServers udpSmallServers)
Sets the UDP small servers information. |
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 SERVICE
public static final java.lang.String COUNTERS
public static final java.lang.String MAX
public static final java.lang.String AGE
public static final java.lang.String ALIGNMENT
public static final java.lang.String CMNS
public static final java.lang.String COMPRESS_CONFIG
public static final java.lang.String CONFIG
public static final java.lang.String DEBUG
public static final java.lang.String DETECTION
public static final java.lang.String DHCP
public static final java.lang.String DISABLE_IP_FAST_FRAG
public static final java.lang.String EXEC_CALLBACK
public static final java.lang.String EXEC_WAIT
public static final java.lang.String FINGER
public static final java.lang.String FROM_XOT
public static final java.lang.String HIDE_TELNET_ADDRESSES
public static final java.lang.String LINENUMBER
public static final java.lang.String LOG
public static final java.lang.String LOGGING
public static final java.lang.String NAGLE
public static final java.lang.String OLD_SLIP_PROMPTS
public static final java.lang.String PAD
public static final java.lang.String PASSWORD_ENCRYPTION
public static final java.lang.String SINGLE_SLOT_RELOAD_ENABLE
public static final java.lang.String PROMPT
public static final java.lang.String PT_VTY_LOGGING
public static final java.lang.String SEQUENCE_NUMBERS
public static final java.lang.String SLAVE_LOG
public static final java.lang.String TCP_KEEPALIVES_IN
public static final java.lang.String TCP_KEEPALIVES_OUT
public static final java.lang.String TCP_SMALL_SERVERS
public static final java.lang.String TELNET_ZEROIDLE
public static final java.lang.String TIMESTAMPS
public static final java.lang.String TO_XOT
public static final java.lang.String UDP_SMALL_SERVERS
| Constructor Detail |
|---|
public ServiceComponent()
| Method Detail |
|---|
public void setAlignmentDetection(boolean alignmentDetection)
alignmentDetection - The alignment detection.public boolean getAlignmentDetection()
public void setAlignmentLogging(boolean alignmentLogging)
alignmentLogging - The Alignment Logging flag.public boolean getAlignmentLogging()
public void setCompressConfig(boolean compressConfig)
compressConfig - The compress config flag.public boolean getCompressConfig()
public void setConfig(boolean config)
config - The config flag.public boolean getConfig()
public void setDhcp(boolean dhcp)
dhcp - The DHCP flag.public boolean getDhcp()
public void setDisableIpFastFrag(boolean disableIpFastFrag)
disableIpFastFrag - The disable IP fast frag flag.public boolean getDisableIpFastFrag()
public void setExecCallback(boolean execCallback)
execCallback - The exec callback flag.public boolean getExecCallback()
public void setExecWait(boolean execWait)
execWait - The exec wait flag.public boolean getExecWait()
public void setFinger(boolean finger)
finger - The finger flag.public boolean getFinger()
public void setHideTelnetAddresses(boolean hideTelnetAddresses)
hideTelnetAddresses - The hide telnet addresses flag.public boolean getHideTelnetAddresses()
public void setLineNumber(boolean lineNumber)
lineNumber - The line number flag.public boolean getLineNumber()
public void setNagle(boolean nagle)
nagle - The nagle flag.public boolean getNagle()
public void setOldSlipPrompts(boolean oldSlipPrompts)
oldSlipPrompts - The old slip prompts flag.public boolean getOldSlipPrompts()
public void setPad(boolean pad)
pad - The pad flag.public boolean getPad()
public void setPadCmns(boolean padCmns)
padCmns - The pad CMNS flag.public boolean getPadCmns()
public void setPadFromXot(boolean padFromXot)
padFromXot - The pad From XOT flag.public boolean getPadFromXot()
public void setPadToXot(boolean padToXot)
padToXot - The pad To XOT flag.public boolean getPadToXot()
public void setPasswordEncryption(boolean passwordEncryption)
passwordEncryption - The password encryption flag.public boolean getPasswordEncryption()
public void setSingleSlotReloadEnable(boolean singleSlotReloadEnable)
singleSlotReloadEnable - The single slot reload enable flag.public boolean getSingleSlotReloadEnable()
public void setPromptConfig(boolean promptConfig)
promptConfig - The prompt config flag.public boolean getPromptConfig()
public void setPtVtyLogging(boolean ptVtyLogging)
ptVtyLogging - The pt vty logging flag.public boolean getPtVtyLogging()
public void setSequenceNumbers(boolean sequenceNumbers)
sequenceNumbers - The sequence numbers flag.public boolean getSequenceNumbers()
public void setSlaveLog(boolean slaveLog)
slaveLog - The slave log flag.public boolean getSlaveLog()
public void setTcpKeepalivesIn(boolean tcpKeepalivesIn)
tcpKeepalivesIn - The TCP keepalives in flag.public boolean getTcpKeepalivesIn()
public void setTcpKeepalivesOut(boolean tcpKeepalivesOut)
tcpKeepalivesOut - The TCP keepalives out flag.public boolean getTcpKeepalivesOut()
public void setTcpSmallServers(SmallServers tcpSmallServers)
tcpSmallServers - The TCP small servers.public SmallServers getTcpSmallServers()
public void setUdpSmallServers(SmallServers udpSmallServers)
udpSmallServers - The UDP small servers.public SmallServers getUdpSmallServers()
public void setTelnetZeroIdle(boolean telnetZeroIdle)
telnetZeroIdle - The telnet zero idle flag.public boolean getTelnetZeroIdle()
public void setDebugTimestamps(Timestamps debugTimestamps)
debugTimestamps - The debug timestamps.public Timestamps getDebugTimestamps()
public void setLogTimestamps(Timestamps logTimestamps)
logTimestamps - The log timestamps.public Timestamps getLogTimestamps()
public java.lang.Integer getServiceCountersMaxAge()
public void setServiceCountersMaxAge(java.lang.Integer serviceCountersMaxAge)
serviceCountersMaxAge - the service counters max age in seconds.
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 interface MultiLineComponentgenerateDeleteIos 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 | |||||||||