com.foxsmart.csu.config.global
Class ServiceComponent

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.CiscoRouterConfigComponent
          extended by com.foxsmart.csu.config.global.ServiceComponent
All Implemented Interfaces:
MultiLineComponent, java.io.Serializable

public class ServiceComponent
extends CiscoRouterConfigComponent
implements MultiLineComponent

The Service class represents the various network based service options on the router.

See Also:
Serialized Form

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 com.foxsmart.csu.config.CiscoRouterConfigComponent
addComponent, addComponent, checkComponentType, deleteOldConfigWhenUpdating, dumpComponents, generateChildrenUpdateConfiglet, generateCompositeIos, generateCompositeIos, generateIos, generateIos, generateIos, generateMultiLineUpdateConfiglet, generateUpdateCompositeIos, generateUpdateIos, generateUpdateIos, getAllComponents, getCiscoRouterConfig, getComment, getComponentClassName, getComponentClassName, getComponentKeys, getComponents, getComponents, getDeferredDelete, getFirstComponent, getFirstComponent, getParentComponent, getTotalComponents, getTotalComponents, getUpdateConfiglet, instantiateComponent, instantiateComponent, isValid, removeAllComponents, removeAllComponents, removeAllComponents, removeComponent, removeComponent, removeComponent, requiresCommentSeparator, setComment, setParentComponent, validateChildren
 
Methods inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
checkExists, checkLineComplete, checkNotEmpty, checkRange, checkTokenCount, checkTokenCount, checkTokenMatch, checkTokenMatch, decrementTokenIndex, generateCommands, getBigDecimalNumberFromString, getDoubleNumberFromString, getEnum, getHexadecimalNumberFromString, getIntegerNumberFromString, getIpAddressFromString, getLine, getLongNumberFromString, getMacAddressFromString, getNextOptionalToken, getNextToken, getToken, getTokenIndex, getTokens, getTotalIndentedLines, getTotalLines, incrementTokenIndex, invalidConfiguration, invalidTokenFound, isEmpty, moreIndentedLines, moreLines, moreTokens, removeLines, resetTokenIndex, setTokenIndex, tokensLeft
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values

COUNTERS

public static final java.lang.String COUNTERS
See Also:
Constant Field Values

MAX

public static final java.lang.String MAX
See Also:
Constant Field Values

AGE

public static final java.lang.String AGE
See Also:
Constant Field Values

ALIGNMENT

public static final java.lang.String ALIGNMENT
See Also:
Constant Field Values

CMNS

public static final java.lang.String CMNS
See Also:
Constant Field Values

COMPRESS_CONFIG

public static final java.lang.String COMPRESS_CONFIG
See Also:
Constant Field Values

CONFIG

public static final java.lang.String CONFIG
See Also:
Constant Field Values

DEBUG

public static final java.lang.String DEBUG
See Also:
Constant Field Values

DETECTION

public static final java.lang.String DETECTION
See Also:
Constant Field Values

DHCP

public static final java.lang.String DHCP
See Also:
Constant Field Values

DISABLE_IP_FAST_FRAG

public static final java.lang.String DISABLE_IP_FAST_FRAG
See Also:
Constant Field Values

EXEC_CALLBACK

public static final java.lang.String EXEC_CALLBACK
See Also:
Constant Field Values

EXEC_WAIT

public static final java.lang.String EXEC_WAIT
See Also:
Constant Field Values

FINGER

public static final java.lang.String FINGER
See Also:
Constant Field Values

FROM_XOT

public static final java.lang.String FROM_XOT
See Also:
Constant Field Values

HIDE_TELNET_ADDRESSES

public static final java.lang.String HIDE_TELNET_ADDRESSES
See Also:
Constant Field Values

LINENUMBER

public static final java.lang.String LINENUMBER
See Also:
Constant Field Values

LOG

public static final java.lang.String LOG
See Also:
Constant Field Values

LOGGING

public static final java.lang.String LOGGING
See Also:
Constant Field Values

NAGLE

public static final java.lang.String NAGLE
See Also:
Constant Field Values

OLD_SLIP_PROMPTS

public static final java.lang.String OLD_SLIP_PROMPTS
See Also:
Constant Field Values

PAD

public static final java.lang.String PAD
See Also:
Constant Field Values

PASSWORD_ENCRYPTION

public static final java.lang.String PASSWORD_ENCRYPTION
See Also:
Constant Field Values

SINGLE_SLOT_RELOAD_ENABLE

public static final java.lang.String SINGLE_SLOT_RELOAD_ENABLE
See Also:
Constant Field Values

PROMPT

public static final java.lang.String PROMPT
See Also:
Constant Field Values

PT_VTY_LOGGING

public static final java.lang.String PT_VTY_LOGGING
See Also:
Constant Field Values

SEQUENCE_NUMBERS

public static final java.lang.String SEQUENCE_NUMBERS
See Also:
Constant Field Values

SLAVE_LOG

public static final java.lang.String SLAVE_LOG
See Also:
Constant Field Values

TCP_KEEPALIVES_IN

public static final java.lang.String TCP_KEEPALIVES_IN
See Also:
Constant Field Values

TCP_KEEPALIVES_OUT

public static final java.lang.String TCP_KEEPALIVES_OUT
See Also:
Constant Field Values

TCP_SMALL_SERVERS

public static final java.lang.String TCP_SMALL_SERVERS
See Also:
Constant Field Values

TELNET_ZEROIDLE

public static final java.lang.String TELNET_ZEROIDLE
See Also:
Constant Field Values

TIMESTAMPS

public static final java.lang.String TIMESTAMPS
See Also:
Constant Field Values

TO_XOT

public static final java.lang.String TO_XOT
See Also:
Constant Field Values

UDP_SMALL_SERVERS

public static final java.lang.String UDP_SMALL_SERVERS
See Also:
Constant Field Values
Constructor Detail

ServiceComponent

public ServiceComponent()
Constructs a service object.

Method Detail

setAlignmentDetection

public void setAlignmentDetection(boolean alignmentDetection)
Sets the alignment detection flag which is used to control alignment. When alignment detection is off, alignment logging is automatically off as well eventhough an IOS configuration statement may not be present. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
alignmentDetection - The alignment detection.

getAlignmentDetection

public boolean getAlignmentDetection()
Gets the alignment detection flag.

Returns:
The alignment detection flag.

setAlignmentLogging

public void setAlignmentLogging(boolean alignmentLogging)
Sets the alignment logging flag which is used to control alignment logging. Alignment logging can only be disabled when alignment detection is enabled. If alignment detection is disabled, alignment logging is assumed to be disabled. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
alignmentLogging - The Alignment Logging flag.

getAlignmentLogging

public boolean getAlignmentLogging()
Gets the alignment logging flag.

Returns:
The alignment logging flag.

setCompressConfig

public void setCompressConfig(boolean compressConfig)
Sets the compress config flag. When on, the configuration file is compressed. This feature is off by default.

Parameters:
compressConfig - The compress config flag.

getCompressConfig

public boolean getCompressConfig()
Gets the compress config flag.

Returns:
The compress config flag.

setConfig

public void setConfig(boolean config)
Sets the config flag. When on, config files are loaded using TFTP. This feature is off by default.

Parameters:
config - The config flag.

getConfig

public boolean getConfig()
Gets the config flag.

Returns:
The config flag.

setDhcp

public void setDhcp(boolean dhcp)
Sets the DHCP flag. When on, the DHCP server and relay agent are enabled. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
dhcp - The DHCP flag.

getDhcp

public boolean getDhcp()
Gets the DHCP flag.

Returns:
The DHCP flag.

setDisableIpFastFrag

public void setDisableIpFastFrag(boolean disableIpFastFrag)
Sets the disable IP fast frag flag. When on, IP particle-based fast fragmentation is disabled. This feature is off by default.

Parameters:
disableIpFastFrag - The disable IP fast frag flag.

getDisableIpFastFrag

public boolean getDisableIpFastFrag()
Gets the disable IP fast frag flag.

Returns:
The disable IP fast frag flag.

setExecCallback

public void setExecCallback(boolean execCallback)
Sets the exec callback flag. When on, exec callback is enabled. This feature is off by default.

Parameters:
execCallback - The exec callback flag.

getExecCallback

public boolean getExecCallback()
Gets the exec callback flag.

Returns:
The exec callback flag.

setExecWait

public void setExecWait(boolean execWait)
Sets the exec wait flag. When on, EXEC startup will be delayed on noisy lines This feature is off by default.

Parameters:
execWait - The exec wait flag.

getExecWait

public boolean getExecWait()
Gets the exec wait flag.

Returns:
The exec wait flag.

setFinger

public void setFinger(boolean finger)
Sets the finger flag. When on, responses to finger requests are allowed. When the finger service is turned off, it is accomplished by turning IP fingering off (i.e. "no ip finger"). This feature is on by default. An IOS statement is only generated when this feature is turned off.

This feature has not yet been implemented so setting this flag currently has no effect.

Parameters:
finger - The finger flag.

getFinger

public boolean getFinger()
Gets the finger flag.

Returns:
The finger flag.

setHideTelnetAddresses

public void setHideTelnetAddresses(boolean hideTelnetAddresses)
Sets the hide telnet addresses flag. When on, the telnet command will hide destination addresses. This feature is off by default.

Parameters:
hideTelnetAddresses - The hide telnet addresses flag.

getHideTelnetAddresses

public boolean getHideTelnetAddresses()
Gets the hide telnet addresses flag.

Returns:
The hide telnet addresses flag.

setLineNumber

public void setLineNumber(boolean lineNumber)
Sets the line number flag. When on, there will be a line number banner for each exec. This feature is off by default.

Parameters:
lineNumber - The line number flag.

getLineNumber

public boolean getLineNumber()
Gets the line number flag.

Returns:
The line number flag.

setNagle

public void setNagle(boolean nagle)
Sets the nagle flag. When on, Nagle's congestion control algorithm will be enabled. This feature is off by default.

Parameters:
nagle - The nagle flag.

getNagle

public boolean getNagle()
Gets the nagle flag.

Returns:
The nagle flag.

setOldSlipPrompts

public void setOldSlipPrompts(boolean oldSlipPrompts)
Sets the old slip prompts flag. When on, old scripts will be allowed to operate with slip/ppp. This feature is off by default.

Parameters:
oldSlipPrompts - The old slip prompts flag.

getOldSlipPrompts

public boolean getOldSlipPrompts()
Gets the old slip prompts flag.

Returns:
The old slip prompts flag.

setPad

public void setPad(boolean pad)
Sets the main pad flag. When enabled, PAD commands are allowed. This feature is on by default.

Parameters:
pad - The pad flag.

getPad

public boolean getPad()
Gets the main pad flag.

Returns:
The pad flag.

setPadCmns

public void setPadCmns(boolean padCmns)
Sets the pad CMNS flag. When on, PAD over CMNS connections are enabled. This feature is off by default.

Parameters:
padCmns - The pad CMNS flag.

getPadCmns

public boolean getPadCmns()
Gets the pad CMNS flag.

Returns:
The pad CMNS flag.

setPadFromXot

public void setPadFromXot(boolean padFromXot)
Sets the pad From XOT flag. When on, XOT to PAD connections are accepted. This feature is off by default.

Parameters:
padFromXot - The pad From XOT flag.

getPadFromXot

public boolean getPadFromXot()
Gets the pad From XOT flag.

Returns:
The pad From XOT flag.

setPadToXot

public void setPadToXot(boolean padToXot)
Sets the pad To XOT flag. When on, outgoing PAD over XOT connections are allowed. This feature is off by default.

Parameters:
padToXot - The pad To XOT flag.

getPadToXot

public boolean getPadToXot()
Gets the pad To XOT flag.

Returns:
The pad To XOT flag.

setPasswordEncryption

public void setPasswordEncryption(boolean passwordEncryption)
Sets the password encryption flag. When on, system passwords are encrypted. This feature is off by default.

Parameters:
passwordEncryption - The password encryption flag.

getPasswordEncryption

public boolean getPasswordEncryption()
Gets the password encryption flag.

Returns:
The password encryption flag.

setSingleSlotReloadEnable

public void setSingleSlotReloadEnable(boolean singleSlotReloadEnable)
Sets the single slot reload enable flag (i.e. Single Line Card Reload Option). This feature is off by default.

Parameters:
singleSlotReloadEnable - The single slot reload enable flag.

getSingleSlotReloadEnable

public boolean getSingleSlotReloadEnable()
Gets the single slot reload enable flag.

Returns:
The single slot reload enable flag.

setPromptConfig

public void setPromptConfig(boolean promptConfig)
Sets the prompt config flag. When on, configuration mode prompts are enabled. Otherwise, no prompts will be provided when in configuration mode. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
promptConfig - The prompt config flag.

getPromptConfig

public boolean getPromptConfig()
Gets the prompt config flag.

Returns:
The prompt config flag.

setPtVtyLogging

public void setPtVtyLogging(boolean ptVtyLogging)
Sets the pt vty logging flag. When on, significant VTY-Async events will be logged. This feature is off by default.

Parameters:
ptVtyLogging - The pt vty logging flag.

getPtVtyLogging

public boolean getPtVtyLogging()
Gets the pt vty logging flag.

Returns:
The pt vty logging flag.

setSequenceNumbers

public void setSequenceNumbers(boolean sequenceNumbers)
Sets the sequence numbers flag. When on, logger messages will be stamped with a sequence number. This feature is off by default.

Parameters:
sequenceNumbers - The sequence numbers flag.

getSequenceNumbers

public boolean getSequenceNumbers()
Gets the sequence numbers flag.

Returns:
The sequence numbers flag.

setSlaveLog

public void setSlaveLog(boolean slaveLog)
Sets the slave log flag. When on, the log capability of slave IPs will be enabled. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
slaveLog - The slave log flag.

getSlaveLog

public boolean getSlaveLog()
Gets the slave log flag.

Returns:
The slave log flag.

setTcpKeepalivesIn

public void setTcpKeepalivesIn(boolean tcpKeepalivesIn)
Sets the TCP keepalives in flag. When on, keepalives on idle incoming network connections are generated. This feature is off by default.

Parameters:
tcpKeepalivesIn - The TCP keepalives in flag.

getTcpKeepalivesIn

public boolean getTcpKeepalivesIn()
Gets the TCP keepalives in flag.

Returns:
The TCP keepalives in flag.

setTcpKeepalivesOut

public void setTcpKeepalivesOut(boolean tcpKeepalivesOut)
Sets the TCP keepalives out flag. When on, keepalives on idle outgoing network connections are generated. This feature is off by default.

Parameters:
tcpKeepalivesOut - The TCP keepalives out flag.

getTcpKeepalivesOut

public boolean getTcpKeepalivesOut()
Gets the TCP keepalives out flag.

Returns:
The TCP keepalives out flag.

setTcpSmallServers

public void setTcpSmallServers(SmallServers tcpSmallServers)
Sets the TCP small servers information. If set to null, no TCP small server information is present. When not set to null, small TCP servers (e.g., ECHO) will be enabled. This feature is off by default.

Parameters:
tcpSmallServers - The TCP small servers.

getTcpSmallServers

public SmallServers getTcpSmallServers()
Gets the TCP small servers.

Returns:
The TCP small servers.

setUdpSmallServers

public void setUdpSmallServers(SmallServers udpSmallServers)
Sets the UDP small servers information. If set to null, no UDP small server information is present. When not set to null, small TCP servers (e.g., ECHO) will be enabled. This feature is off by default.

Parameters:
udpSmallServers - The UDP small servers.

getUdpSmallServers

public SmallServers getUdpSmallServers()
Gets the UDP small servers.

Returns:
The UDP small servers.

setTelnetZeroIdle

public void setTelnetZeroIdle(boolean telnetZeroIdle)
Sets the telnet zero idle flag. When on, TCP window 0 will be set when connection is idle. This feature is off by default.

Parameters:
telnetZeroIdle - The telnet zero idle flag.

getTelnetZeroIdle

public boolean getTelnetZeroIdle()
Gets the telnet zero idle flag.

Returns:
The telnet zero idle flag.

setDebugTimestamps

public void setDebugTimestamps(Timestamps debugTimestamps)
Sets the debug timestamps information. If set to null, debug messages will contain no timestamps. If not, debug messages will have timestamps. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
debugTimestamps - The debug timestamps.

getDebugTimestamps

public Timestamps getDebugTimestamps()
Gets the debug timestamps.

Returns:
The debug timestamps.

setLogTimestamps

public void setLogTimestamps(Timestamps logTimestamps)
Sets the log timestamps information. If set to null, logging messages will contain no timestamps. If not, logging messages will have timestamps. This feature is on by default. An IOS statement is only generated when this feature is turned off.

Parameters:
logTimestamps - The log timestamps.

getLogTimestamps

public Timestamps getLogTimestamps()
Gets the log timestamps.

Returns:
The log timestamps.

getServiceCountersMaxAge

public java.lang.Integer getServiceCountersMaxAge()
Gets the service counters max age in seconds.

Returns:
the service counters max age in seconds.

setServiceCountersMaxAge

public void setServiceCountersMaxAge(java.lang.Integer serviceCountersMaxAge)
Sets the service counters max age in seconds.

Parameters:
serviceCountersMaxAge - the service counters max age in seconds.

buildFromIos

public java.util.List buildFromIos(java.util.List configLines)
                            throws InvalidConfigurationException
Description copied from class: CiscoRouterConfigComponent
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. The passed in configuration lines should represent the first line in the configuration that applies to the specific component. The component should use all lines needed by its specific part of the configuration and return a List with the remaining lines that are not part of the component's configuration.

Specified by:
buildFromIos in class CiscoRouterConfigComponent
Parameters:
configLines - The list of IOS configuration lines.
Returns:
The rest of the lines that were not parsed by the component.
Throws:
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.
See Also:
CiscoRouterConfigComponent

validate

public void validate()
              throws InvalidConfigurationException
Description copied from class: CiscoRouterConfigComponent
Validates this object to ensure it contains a valid IOS configuration.

Specified by:
validate in class CiscoRouterConfigComponent
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public Commands generateIos()
                     throws InvalidConfigurationException
Description copied from class: CiscoRouterConfigComponent
Returns the IOS configuration commands for this component.

Specified by:
generateIos in class CiscoRouterConfigComponent
Returns:
The IOS configuration string as a list of Command objects. To generate a configlet from the list of Command objects, use Command.getConfiglet().
Throws:
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.
See Also:
CiscoRouterConfigComponent

generateDeleteIos

public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
                           throws InvalidConfigurationException
Description copied from class: CiscoRouterConfigComponent
Generates the IOS configuration commands to delete this component. This is the default implementation that generates a "no" statement followed by the generateIos() string for non CompositeComponents or generateHeaderIos() for CompositeComponents. Specific components may choose to override this method if this implementation is incorrect. The "no" keyword is placed where the first character of the command is located. For example, if the IOS command is " length 255", then the returned command will be " no length 255" (and not "no length 255").

Note that this implementation will call the getDeferredDelete method on the component and set the "deferred flag" on the returned Commands with its returned value.

Specified by:
generateDeleteIos in interface MultiLineComponent
Overrides:
generateDeleteIos in class CiscoRouterConfigComponent
Parameters:
updatedCiscoRouterConfig - the updated Cisco router configuration.
Returns:
The generated IOS string to deleted the component.
Throws:
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.
See Also:
MultiLineComponent


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.