|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.scheduler.ThreadDefinition
public class ThreadDefinition
Thread definition.
Constructor Summary | |
---|---|
ThreadDefinition()
|
Method Summary | |
---|---|
Date |
getAt()
Gets time. |
String |
getClassName()
Gets thread class name. |
TimePeriod |
getDelay()
Gets delay. |
TimePeriod |
getPeriod()
Gets period. |
boolean |
hasAt()
Checks if thread definition has date. |
boolean |
hasDelay()
Checks if thread definition has delay. |
boolean |
hasPeriod()
Checks if thread definition has period. |
ScheduledFuture |
schedule(ScheduledExecutorService service)
Schedules thread. |
void |
setAt(Date time)
Sets time. |
void |
setClassName(String className)
Sets thread class name. |
void |
setDelay(TimePeriod delay)
Sets delay. |
void |
setParameters(StringAttributeMap parameters)
Sets additional parameters. |
void |
setPeriod(TimePeriod period)
Sets period. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadDefinition()
Method Detail |
---|
public boolean hasDelay()
true
if has delaypublic boolean hasPeriod()
true
if has periodpublic boolean hasAt()
true
if has datepublic String getClassName()
public void setClassName(String className)
className
- thread class namepublic TimePeriod getDelay()
public void setDelay(TimePeriod delay)
true
. hasAt flag will
be set to false
.
delay
- delay (null
to clear delay)public TimePeriod getPeriod()
public void setPeriod(TimePeriod period)
true
. hasAt flag will
be set to false
.
period
- periodpublic Date getAt()
public void setAt(Date time)
time
- time of the daily executionpublic void setParameters(StringAttributeMap parameters)
parameters
- parameterspublic ScheduledFuture schedule(ScheduledExecutorService service)
service
- service used to schedule
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |