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

java.lang.Object
  extended by de.topicmapslab.majortom.queued.queue.task.QueueTaskImpl
      extended by de.topicmapslab.majortom.queued.queue.task.CreateTask
All Implemented Interfaces:
IQueueTask

public class CreateTask
extends QueueTaskImpl

A task definition for the creation tasks

Author:
Sven Krosse

Field Summary
private  java.lang.Object inMemoryClone
           
private  java.lang.Object[] parameters
          array of all parameters
private  java.lang.Object result
          the result of execution
 
Constructor Summary
CreateTask(java.lang.Object inMemoryClone, de.topicmapslab.majortom.model.core.IConstruct context, de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType, java.lang.Object... parameters)
          constructor
 
Method Summary
 void doTask(de.topicmapslab.majortom.model.store.ITopicMapStore topicMapStore)
          Method invoke by the writer queue to execute this task
 java.lang.Object getInMemoryClone()
          Returns the corresponding construct created in the in memory topic map store as virtual clone
 java.lang.Object[] getParameters()
           
 java.lang.Object getResult()
          Returns the result of the task execution
 
Methods inherited from class de.topicmapslab.majortom.queued.queue.task.QueueTaskImpl
getContext, getParameterType, getTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

private java.lang.Object[] parameters
array of all parameters


result

private java.lang.Object result
the result of execution


inMemoryClone

private final java.lang.Object inMemoryClone
Constructor Detail

CreateTask

public CreateTask(java.lang.Object inMemoryClone,
                  de.topicmapslab.majortom.model.core.IConstruct context,
                  de.topicmapslab.majortom.model.store.TopicMapStoreParameterType parameterType,
                  java.lang.Object... parameters)
constructor

Parameters:
inMemoryClone - the corresponding construct created in memory
context - the context
parameterType - the parameter type
parameters - the parameters
Method Detail

doTask

public void doTask(de.topicmapslab.majortom.model.store.ITopicMapStore topicMapStore)
            throws de.topicmapslab.majortom.model.exception.TopicMapStoreException
Method invoke by the writer queue to execute this task

Parameters:
topicMapStore - the topic map store, used to execute the task
Throws:
de.topicmapslab.majortom.model.exception.TopicMapStoreException

getResult

public java.lang.Object getResult()
Returns the result of the task execution


getInMemoryClone

public java.lang.Object getInMemoryClone()
Returns the corresponding construct created in the in memory topic map store as virtual clone

Returns:
the inMemoryClone

getParameters

public java.lang.Object[] getParameters()
Returns:
the parameters