com.foxsmart.csu.config.global.mapclassframerelay
Class FrameRelayIpRtpComponent

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.CiscoRouterConfigComponent
          extended by com.foxsmart.csu.config.global.mapclassframerelay.FrameRelayIpRtpComponent
All Implemented Interfaces:
java.io.Serializable

public class FrameRelayIpRtpComponent
extends CiscoRouterConfigComponent

The frame relay IP RTP class assigns a priority queue for RTP streams.

See Also:
Serialized Form

Field Summary
static java.lang.String FRAME_RELAY
           
static java.lang.String IP
           
static java.lang.Integer MAX_BANDWIDTH
          The maximum Bandwidth.
static java.lang.Integer MAX_LOW_PORT
          The maximum Low Port.
static java.lang.Integer MAX_PORT_RANGE
          The maximum Port Range.
static java.lang.Integer MIN_BANDWIDTH
          The minimum Bandwidth.
static java.lang.Integer MIN_LOW_PORT
          The minimum Low Port.
static java.lang.Integer MIN_PORT_RANGE
          The minimum Port Range.
static java.lang.String PRIORITY
           
static java.lang.String RTP
           
 
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
FrameRelayIpRtpComponent()
          Constructs a frame relay ip rtp 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 getMaxBandwidth()
          Gets the maximum bandwidth.
 java.lang.Integer getMinUdpPort()
          Gets the minimum udp port.
 java.lang.Integer getUdpPortRange()
          Gets the udp port range.
 void setMaxBandwidth(java.lang.Integer maxBandwidth)
          Sets the maximum bandwidth.
 void setMinUdpPort(java.lang.Integer minUdpPort)
          Sets the minimum udp port.
 void setUdpPortRange(java.lang.Integer udpPortRange)
          Sets the udp port range.
 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, generateDeleteIos, 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

FRAME_RELAY

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

IP

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

RTP

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

PRIORITY

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

MIN_LOW_PORT

public static final java.lang.Integer MIN_LOW_PORT
The minimum Low Port.


MAX_LOW_PORT

public static final java.lang.Integer MAX_LOW_PORT
The maximum Low Port.


MIN_PORT_RANGE

public static final java.lang.Integer MIN_PORT_RANGE
The minimum Port Range.


MAX_PORT_RANGE

public static final java.lang.Integer MAX_PORT_RANGE
The maximum Port Range.


MIN_BANDWIDTH

public static final java.lang.Integer MIN_BANDWIDTH
The minimum Bandwidth.


MAX_BANDWIDTH

public static final java.lang.Integer MAX_BANDWIDTH
The maximum Bandwidth.

Constructor Detail

FrameRelayIpRtpComponent

public FrameRelayIpRtpComponent()
Constructs a frame relay ip rtp object.

Method Detail

setMinUdpPort

public void setMinUdpPort(java.lang.Integer minUdpPort)
Sets the minimum udp port. Valid values are from 2000-65535.

Parameters:
minUdpPort - The minimum udp port.

getMinUdpPort

public java.lang.Integer getMinUdpPort()
Gets the minimum udp port.

Returns:
the minimum udp port.

setUdpPortRange

public void setUdpPortRange(java.lang.Integer udpPortRange)
Sets the udp port range. Valid values are from 0-16383.

Parameters:
udpPortRange - The udp port range.

getUdpPortRange

public java.lang.Integer getUdpPortRange()
Gets the udp port range.

Returns:
the udp port range.

setMaxBandwidth

public void setMaxBandwidth(java.lang.Integer maxBandwidth)
Sets the maximum bandwidth. Valid values are from 0-2000.

Parameters:
maxBandwidth - The maximum bandwidth.

getMaxBandwidth

public java.lang.Integer getMaxBandwidth()
Gets the maximum bandwidth.

Returns:
the maximum bandwidth.

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


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