com.foxsmart.csu.config.global
Class SchedulerAllocate

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

public class SchedulerAllocate
extends CiscoRouterConfigParser

The Scheduler Allocate class represents the scheduler allocation configuration parameters.

See Also:
Serialized Form

Field Summary
static int MAX_NETWORK_INTERRUPT_MICROSECS
          Maximum network interrupt microseconds.
static int MAX_RUNNING_PROCESS_MICROSECS
          Maximum running process microseconds
static int MIN_NETWORK_INTERRUPT_MICROSECS
          Minimum network interrupt microseconds.
static int MIN_RUNNING_PROCESS_MICROSECS
          Minimum running process microseconds.
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
SchedulerAllocate()
          Constructs a Scheduler Allocate object.
 
Method Summary
 java.lang.String generateIos()
           
 java.lang.Integer getNetworkInterrupts()
          Gets the network interrupt in microseconds.
 java.lang.Integer getRunningProcess()
          Gets the running process in microseconds.
 void setNetworkInterrupts(java.lang.Integer networkInterrupts)
          Sets the network interrupt in microseconds.
 void setRunningProcess(java.lang.Integer runningProcess)
          Sets the running process in microseconds.
 void validate()
           
 
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

MIN_NETWORK_INTERRUPT_MICROSECS

public static final int MIN_NETWORK_INTERRUPT_MICROSECS
Minimum network interrupt microseconds.

See Also:
Constant Field Values

MAX_NETWORK_INTERRUPT_MICROSECS

public static final int MAX_NETWORK_INTERRUPT_MICROSECS
Maximum network interrupt microseconds.

See Also:
Constant Field Values

MIN_RUNNING_PROCESS_MICROSECS

public static final int MIN_RUNNING_PROCESS_MICROSECS
Minimum running process microseconds.

See Also:
Constant Field Values

MAX_RUNNING_PROCESS_MICROSECS

public static final int MAX_RUNNING_PROCESS_MICROSECS
Maximum running process microseconds

See Also:
Constant Field Values
Constructor Detail

SchedulerAllocate

public SchedulerAllocate()
Constructs a Scheduler Allocate object.

Method Detail

getNetworkInterrupts

public java.lang.Integer getNetworkInterrupts()
Gets the network interrupt in microseconds.

Returns:
the network interrupt in microseconds.

setNetworkInterrupts

public void setNetworkInterrupts(java.lang.Integer networkInterrupts)
Sets the network interrupt in microseconds. Valid values are from 3000-60000.

Parameters:
networkInterrupts - The network interrupt in microseconds.

getRunningProcess

public java.lang.Integer getRunningProcess()
Gets the running process in microseconds.

Returns:
the running process in microseconds.

setRunningProcess

public void setRunningProcess(java.lang.Integer runningProcess)
Sets the running process in microseconds. Valid values are from 1000-8000.

Parameters:
runningProcess - The running process in microseconds.

validate

public void validate()
              throws InvalidConfigurationException
Throws:
InvalidConfigurationException - if the configuration is invalid.
See Also:
CiscoRouterConfigComponent

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Returns:
The IOS string for this component.
Throws:
InvalidConfigurationException - if any of the parameters aren't set or contain invalid values.
See Also:
CiscoRouterConfigComponent


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