|
||||||||||
| 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.SchedulerComponent
public class SchedulerComponent
The Scheduler class represents the behavior and priorities for the router's system process scheduler.
| Field Summary | |
|---|---|
static java.lang.String |
ALLOCATE
|
static java.lang.String |
HANG
|
static java.lang.String |
INTERVAL
|
static int |
MAX_INTERVAL_MILLISECS
Maximum internal microseconds. |
static int |
MIN_INTERVAL_MILLISECS
Minimum interval microseconds. |
static java.lang.String |
NORMAL
|
static java.lang.String |
PROCESS_WATCHDOG
|
static java.lang.String |
RELOAD
|
static java.lang.String |
SCHEDULER
|
static java.lang.String |
TERMINATE
|
| 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 | |
|---|---|
SchedulerComponent()
Constructs a scheduler 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. |
SchedulerAllocate |
getAllocate()
Gets the scheduler allocation information. |
java.lang.Integer |
getInterval()
Gets the scheduler interval in milliseconds. |
java.lang.String |
getProcessWatchdog()
Gets the process watchdog functionality. |
void |
setAllocate(SchedulerAllocate allocate)
Sets the scheduler allocation information. |
void |
setInterval(java.lang.Integer interval)
Sets the scheduler interval in milliseconds. |
void |
setProcessWatchdog(java.lang.String processWatchdog)
Sets the process watchdog functionality which Configures an action for a looping process. |
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 int MIN_INTERVAL_MILLISECS
public static final int MAX_INTERVAL_MILLISECS
public static final java.lang.String SCHEDULER
public static final java.lang.String ALLOCATE
public static final java.lang.String HANG
public static final java.lang.String INTERVAL
public static final java.lang.String NORMAL
public static final java.lang.String PROCESS_WATCHDOG
public static final java.lang.String RELOAD
public static final java.lang.String TERMINATE
| Constructor Detail |
|---|
public SchedulerComponent()
| Method Detail |
|---|
public void setAllocate(SchedulerAllocate allocate)
allocate - The allocation information.public SchedulerAllocate getAllocate()
public void setInterval(java.lang.Integer interval)
interval - The scheduler interval.public java.lang.Integer getInterval()
public void setProcessWatchdog(java.lang.String processWatchdog)
processWatchdog - The process watchdog functionality.public java.lang.String getProcessWatchdog()
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 | |||||||||