com.foxsmart.csu.config.global.line
Class TelnetSpeed

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.line.TelnetSpeed
All Implemented Interfaces:
java.io.Serializable

public class TelnetSpeed
extends CiscoRouterConfigParser

The TelnetSpeed class contains the telnet speed information.

See Also:
Serialized Form

Field Summary
static java.lang.Long DEFAULT_MAX_SPEED
           
static long MAX_SPEED
           
static long MIN_SPEED
           
static java.lang.String SPEED
           
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
TelnetSpeed()
          Constructs a modem speed object.
 
Method Summary
 Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
          Generates the IOS associated with deleting this "component".
 Commands generateIos()
          Generates the IOS associated with this "component".
 java.lang.Long getDefaultSpeed()
          Gets the default speed.
 java.lang.Long getMaximumSpeed()
          Gets the maximum speed.
 void setDefaultSpeed(java.lang.Long defaultSpeed)
          Sets the default speed.
 void setMaximumSpeed(java.lang.Long maximumSpeed)
          Sets the maximum speed.
 void validate()
          Ensure this "component" is valid.
 
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

SPEED

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

MIN_SPEED

public static final long MIN_SPEED
See Also:
Constant Field Values

MAX_SPEED

public static final long MAX_SPEED
See Also:
Constant Field Values

DEFAULT_MAX_SPEED

public static final java.lang.Long DEFAULT_MAX_SPEED
Constructor Detail

TelnetSpeed

public TelnetSpeed()
Constructs a modem speed object.

Method Detail

setDefaultSpeed

public void setDefaultSpeed(java.lang.Long defaultSpeed)
Sets the default speed. Valid values are from 1-4294967295.

Parameters:
defaultSpeed - The default speed.

getDefaultSpeed

public java.lang.Long getDefaultSpeed()
Gets the default speed.

Returns:
the default speed.

setMaximumSpeed

public void setMaximumSpeed(java.lang.Long maximumSpeed)
Sets the maximum speed. If no value is specified, a default value of 38400 will be used on the router.

Parameters:
maximumSpeed - The maximum speed.

getMaximumSpeed

public java.lang.Long getMaximumSpeed()
Gets the maximum speed. The default speed of 38400 will be returned if null is set for the maximum speed.

Returns:
the maximum speed.

validate

public void validate()
              throws InvalidConfigurationException
Ensure this "component" is valid.

Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public Commands generateIos()
                     throws InvalidConfigurationException
Generates the IOS associated with this "component".

Returns:
the generated commands.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateDeleteIos

public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
                           throws InvalidConfigurationException
Generates the IOS associated with deleting this "component".

Parameters:
updatedCiscoRouterConfig - the updated Cisco router configuration.
Returns:
the generated commands.
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
MultiLineComponent


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