net.ontopia.topicmaps.db2tm
Class SynchronizationTask

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

public class SynchronizationTask
extends java.util.TimerTask

INTERNAL: TimerTask that runs DB2TM synchronization.


Field Summary
protected  LocatorIF baseloc
           
protected static java.util.Map lastExecutions
           
protected  java.lang.String name
           
protected  TopicMapReferenceIF ref
           
protected  java.util.Collection relnames
           
protected  java.lang.String rmappingfile
           
protected  java.util.Timer timer
           
 
Constructor Summary
SynchronizationTask(java.lang.String name, java.util.Date startTime, long interval)
           
SynchronizationTask(java.lang.String name, long delay, long interval)
           
 
Method Summary
static java.util.Date getLastExecution(java.lang.String taskname)
           
 void run()
           
 void setBaseLocator(LocatorIF baseloc)
           
 void setRelationMappingFile(java.lang.String rmappingfile)
           
 void setRelationNames(java.util.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 java.util.Map lastExecutions

name

protected java.lang.String name

rmappingfile

protected java.lang.String rmappingfile

relnames

protected java.util.Collection relnames

ref

protected TopicMapReferenceIF ref

baseloc

protected LocatorIF baseloc

timer

protected java.util.Timer timer
Constructor Detail

SynchronizationTask

public SynchronizationTask(java.lang.String name,
                           long delay,
                           long interval)

SynchronizationTask

public SynchronizationTask(java.lang.String name,
                           java.util.Date startTime,
                           long interval)
Method Detail

setRelationMappingFile

public void setRelationMappingFile(java.lang.String rmappingfile)

setRelationNames

public void setRelationNames(java.util.Collection relnames)

setTopicMapReference

public void setTopicMapReference(TopicMapReferenceIF ref)

setBaseLocator

public void setBaseLocator(LocatorIF baseloc)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

stop

public void stop()

getLastExecution

public static java.util.Date getLastExecution(java.lang.String taskname)


Copyright © 2000-2012 Ontopia.