org.sape.carbon.services.scheduler
Interface SchedulerServiceConfiguration

All Superinterfaces:
ComponentConfiguration, Configuration

public interface SchedulerServiceConfiguration
extends ComponentConfiguration

Configuration interface for the SchedulerService. The configuration consists of 2 attributes: an array of fixed rate tasks and an array of fixed delay tasks. Fixed rate tasks are defined by the configuration interface FixedRateTaskConfiguration. Fixed delay tasks are defined by the configuration interface FixedDelayTaskConfiguration.

Since:
carbon 1.0
Version:
$Revision: 1.9 $($Author: dvoet $ / $Date: 2003/11/20 21:46:15 $)
Author:
Douglas Voet, June 2002
See Also:
FixedRateTaskConfiguration, Copyright 2002 Sapient

Field Summary
 
Fields inherited from interface org.sape.carbon.core.component.ComponentConfiguration
ComponentTemplateName
 
Method Summary
 void addFixedDelayTask(FixedDelayTaskConfiguration task)
          Adds a FixedDelayTaskConfiguration to this scheduler.
 void addFixedRateTask(FixedRateTaskConfiguration task)
          Adds a FixedRateTask to this scheduler.
 FixedDelayTaskConfiguration[] getFixedDelayTask()
          Gets the FixedDelayTaskConfiguration associated with this scheduler.
 FixedRateTaskConfiguration[] getFixedRateTask()
          Gets the FixedRateTasks associated with this scheduler.
 ThreadPool getThreadPool()
           
 void setFixedDelayTask(FixedDelayTaskConfiguration[] tasks)
          Sets the FixedDelayTaskConfiguration associated with this scheduler.
 void setFixedRateTask(FixedRateTaskConfiguration[] tasks)
          Sets the FixedRateTasks associated with this scheduler.
 void setThreadPool(ThreadPool threadPool)
           
 
Methods inherited from interface org.sape.carbon.core.component.ComponentConfiguration
getComponentDescription, getComponentTemplateName, getFunctionalImplementationClass, getFunctionalInterface, setComponentDescription, setComponentTemplateName, setFunctionalImplementationClass, setFunctionalInterface
 
Methods inherited from interface org.sape.carbon.core.config.Configuration
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly
 

Method Detail

getFixedRateTask

public FixedRateTaskConfiguration[] getFixedRateTask()
Gets the FixedRateTasks associated with this scheduler.

Returns:
FixedRateTasks associated with this scheduler

setFixedRateTask

public void setFixedRateTask(FixedRateTaskConfiguration[] tasks)
Sets the FixedRateTasks associated with this scheduler.

Parameters:
tasks - FixedRateTasks associated with this scheduler

addFixedRateTask

public void addFixedRateTask(FixedRateTaskConfiguration task)
Adds a FixedRateTask to this scheduler.

Parameters:
task - FixedRateTasks to associate with this scheduler

getFixedDelayTask

public FixedDelayTaskConfiguration[] getFixedDelayTask()
Gets the FixedDelayTaskConfiguration associated with this scheduler.

Returns:
FixedDelayTaskConfiguration associated with this scheduler

setFixedDelayTask

public void setFixedDelayTask(FixedDelayTaskConfiguration[] tasks)
Sets the FixedDelayTaskConfiguration associated with this scheduler.

Parameters:
tasks - FixedDelayTaskConfiguration associated with this scheduler

addFixedDelayTask

public void addFixedDelayTask(FixedDelayTaskConfiguration task)
Adds a FixedDelayTaskConfiguration to this scheduler.

Parameters:
task - FixedDelayTaskConfiguration to associate with this scheduler

getThreadPool

public ThreadPool getThreadPool()

setThreadPool

public void setThreadPool(ThreadPool threadPool)


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.