org.duraspace.fcrepo.cloudsync.service.backend
Class ListTaskRunner

java.lang.Object
  extended by java.lang.Thread
      extended by org.duraspace.fcrepo.cloudsync.service.backend.TaskRunner
          extended by org.duraspace.fcrepo.cloudsync.service.backend.ListTaskRunner
All Implemented Interfaces:
Runnable, ObjectListHandler

public class ListTaskRunner
extends TaskRunner
implements ObjectListHandler


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.duraspace.fcrepo.cloudsync.service.backend.TaskRunner
cancelRequested, completionListener, logWriter, objectSetDao, objectStoreDao, pauseRequested, resumeRequested, task, taskDao
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ListTaskRunner(Task task, TaskDao taskDao, ObjectSetDao objectSetDao, ObjectStoreDao objectStoreDao, PrintWriter logWriter, TaskCompletionListener completionListener, HttpClientConfig httpClientConfig)
           
 
Method Summary
 Set<String> getRelatedSetIds()
           
 Set<String> getRelatedStoreIds()
           
 boolean handleObject(ObjectInfo info)
           
 void runTask()
           
 
Methods inherited from class org.duraspace.fcrepo.cloudsync.service.backend.TaskRunner
getInstance, getTask, pauseOrCancelIfRequested, requestCancel, requestPause, requestResume, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListTaskRunner

public ListTaskRunner(Task task,
                      TaskDao taskDao,
                      ObjectSetDao objectSetDao,
                      ObjectStoreDao objectStoreDao,
                      PrintWriter logWriter,
                      TaskCompletionListener completionListener,
                      HttpClientConfig httpClientConfig)
Method Detail

runTask

public void runTask()
             throws Exception
Specified by:
runTask in class TaskRunner
Throws:
Exception

getRelatedSetIds

public Set<String> getRelatedSetIds()
Specified by:
getRelatedSetIds in class TaskRunner

getRelatedStoreIds

public Set<String> getRelatedStoreIds()
Specified by:
getRelatedStoreIds in class TaskRunner

handleObject

public boolean handleObject(ObjectInfo info)
Specified by:
handleObject in interface ObjectListHandler


Copyright © 2012 DuraSpace. All Rights Reserved.