Esri Geoportal Server
1.0

com.esri.gpt.framework.scheduler
Class ThreadDefinition

java.lang.Object
  extended by com.esri.gpt.framework.scheduler.ThreadDefinition
All Implemented Interfaces:
Serializable

public class ThreadDefinition
extends Object
implements Serializable

Thread definition.

See Also:
Serialized Form

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

ThreadDefinition

public ThreadDefinition()
Method Detail

hasDelay

public boolean hasDelay()
Checks if thread definition has delay.

Returns:
true if has delay

hasPeriod

public boolean hasPeriod()
Checks if thread definition has period.

Returns:
true if has period

hasAt

public boolean hasAt()
Checks if thread definition has date.

Returns:
true if has date

getClassName

public String getClassName()
Gets thread class name.

Returns:
thread class name

setClassName

public void setClassName(String className)
Sets thread class name.

Parameters:
className - thread class name

getDelay

public TimePeriod getDelay()
Gets delay.

Returns:
return delay

setDelay

public void setDelay(TimePeriod delay)
Sets delay. hasDelay flag wil be set to true. hasAt flag will be set to false.

Parameters:
delay - delay (null to clear delay)

getPeriod

public TimePeriod getPeriod()
Gets period.

Returns:
period

setPeriod

public void setPeriod(TimePeriod period)
Sets period. hasPeriod flag wil be set to true. hasAt flag will be set to false.

Parameters:
period - period

getAt

public Date getAt()
Gets time.

Returns:
time of the daily execution

setAt

public void setAt(Date time)
Sets time.

Parameters:
time - time of the daily execution

setParameters

public void setParameters(StringAttributeMap parameters)
Sets additional parameters.

Parameters:
parameters - parameters

schedule

public ScheduledFuture schedule(ScheduledExecutorService service)
Schedules thread.

Parameters:
service - service used to schedule
Returns:
scheduled future

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.