|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.framework.scheduler.ThreadSchedulerConfiguration
public class ThreadSchedulerConfiguration
Collection of thread definitions.
Constructor Summary | |
---|---|
ThreadSchedulerConfiguration()
|
Method Summary | |
---|---|
void |
addDefinition(String className,
String delay,
String period,
String at,
StringAttributeMap parameters)
Adds a thread definition. |
boolean |
getActive()
Gets active flag value. |
int |
getCorePoolSize()
Gets core pool size. |
int |
getHarvestThreadsNumber()
Deprecated. since 10.0; use HarvesterConfiguration.getPoolSize() instead |
TimePeriod |
getJobInactivityPeriod()
Deprecated. since 10.0 with no intent to replace |
ScheduledExecutorService |
getService()
Creates service. |
List<ThreadDefinition> |
getThreadsDefinitions()
Gets threads definitions. |
void |
setActive(boolean active)
Sets active flag value. |
void |
setCorePoolSize(int corePoolSize)
Sets core pool size. |
void |
setHarvestThreadsNumber(int harvestThreadsNumber)
Deprecated. since 10.0; use HarvesterConfiguration.setPoolSize(int) instead |
void |
setJobInactivityPeriod(TimePeriod jobInactivityPeriod)
Deprecated. since 10.0 with no intent to replace |
void |
setThreadsDefinitions(List<ThreadDefinition> threadsDefinitions)
Sets threads definitions. |
String |
toString()
Creates string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadSchedulerConfiguration()
Method Detail |
---|
public boolean getActive()
public void setActive(boolean active)
active
- active flag valuepublic int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
corePoolSize
- core pool sizepublic List<ThreadDefinition> getThreadsDefinitions()
public void setThreadsDefinitions(List<ThreadDefinition> threadsDefinitions)
threadsDefinitions
- threads definitions@Deprecated public int getHarvestThreadsNumber()
HarvesterConfiguration.getPoolSize()
instead
@Deprecated public void setHarvestThreadsNumber(int harvestThreadsNumber)
HarvesterConfiguration.setPoolSize(int)
instead
harvestThreadsNumber
- number of threads@Deprecated public TimePeriod getJobInactivityPeriod()
@Deprecated public void setJobInactivityPeriod(TimePeriod jobInactivityPeriod)
jobInactivityPeriod
- job inactivity periodpublic void addDefinition(String className, String delay, String period, String at, StringAttributeMap parameters)
className
- the class to be scheduleddelay
- to execution since registering thread in unitsperiod
- frequency of execution in unitsat
- time of execution in the format "HH:MM"parameters
- map of additional optional parameterspublic ScheduledExecutorService getService()
null
if service creation not allowedpublic String toString()
toString
in class Object
|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |