net.ontopia.topicmaps.db2tm
Class SynchronizationTask

java.lang.Object
  extended by java.util.TimerTask
      extended by net.ontopia.topicmaps.db2tm.SynchronizationTask
All Implemented Interfaces:
Runnable

public class SynchronizationTask
extends TimerTask

INTERNAL: TimerTask that runs DB2TM synchronization.


Field Summary
protected  LocatorIF baseloc
           
protected static Map lastExecutions
           
protected  String name
           
protected  TopicMapReferenceIF ref
           
protected  Collection relnames
           
protected  String rmappingfile
           
protected  Timer timer
           
 
Constructor Summary
SynchronizationTask(String name, Date startTime, long interval)
           
SynchronizationTask(String name, long delay, long interval)
           
 
Method Summary
static Date getLastExecution(String taskname)
           
 void run()
           
 void setBaseLocator(LocatorIF baseloc)
           
 void setRelationMappingFile(String rmappingfile)
           
 void setRelationNames(Collection relnames)
           
 void setTopicMapReference(TopicMapReferenceIF ref)
           
 void stop()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastExecutions

protected static Map lastExecutions

name

protected String name

rmappingfile

protected String rmappingfile

relnames

protected Collection relnames

ref

protected TopicMapReferenceIF ref

baseloc

protected LocatorIF baseloc

timer

protected Timer timer
Constructor Detail

SynchronizationTask

public SynchronizationTask(String name,
                           long delay,
                           long interval)

SynchronizationTask

public SynchronizationTask(String name,
                           Date startTime,
                           long interval)
Method Detail

setRelationMappingFile

public void setRelationMappingFile(String rmappingfile)

setRelationNames

public void setRelationNames(Collection relnames)

setTopicMapReference

public void setTopicMapReference(TopicMapReferenceIF ref)

setBaseLocator

public void setBaseLocator(LocatorIF baseloc)

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

stop

public void stop()

getLastExecution

public static Date getLastExecution(String taskname)


Copyright © 2000-2012 Ontopia.