de.topicmapslab.majortom.queued.queue.task
Class QueueTaskImpl

java.lang.Object
  extended by de.topicmapslab.majortom.queued.queue.task.QueueTaskImpl
All Implemented Interfaces:
IQueueTask
Direct Known Subclasses:
CreateTask, MergeTask, ModifyTask, RemoveConstructTask, RemoveTask, SystemTask

public abstract class QueueTaskImpl
extends java.lang.Object
implements IQueueTask

Author:
Sven

Field Summary
private  de.topicmapslab.majortom.model.core.IConstruct context
          the context calling the task
private  de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType
          the parameter type
private  java.util.Calendar timestamp
          the creation time
 
Constructor Summary
QueueTaskImpl(de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType)
          constructor
 
Method Summary
 de.topicmapslab.majortom.model.core.IConstruct getContext()
          Returns the context of calling
 de.topicmapslab.majortom.model.store.TopicMapStoreParameterType getParameterType()
          Returns the parameter type for the task
 java.util.Calendar getTimeStamp()
          Returns a calendar instance representing the definition time of this task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.queued.queue.task.IQueueTask
doTask, getResult
 

Field Detail

timestamp

private final java.util.Calendar timestamp
the creation time


context

private final de.topicmapslab.majortom.model.core.IConstruct context
the context calling the task


parameterType

private final de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType
the parameter type

Constructor Detail

QueueTaskImpl

public QueueTaskImpl(de.topicmapslab.majortom.model.core.IConstruct context,
                     de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType)
constructor

Parameters:
context - the calling context or null
parameterType - the parameter type
Method Detail

getTimeStamp

public java.util.Calendar getTimeStamp()
Returns a calendar instance representing the definition time of this task

Specified by:
getTimeStamp in interface IQueueTask
Returns:
the timestamp

getContext

public de.topicmapslab.majortom.model.core.IConstruct getContext()
Returns the context of calling

Returns:
the context

getParameterType

public de.topicmapslab.majortom.model.store.TopicMapStoreParameterType getParameterType()
Returns the parameter type for the task

Returns:
the parameter type