org.apache.solr.cloud
Class RecoveryStrategy

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.solr.cloud.RecoveryStrategy
All Implemented Interfaces:
Runnable, SafeStopThread

public class RecoveryStrategy
extends Thread
implements SafeStopThread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RecoveryStrategy(CoreContainer cc, String name)
           
 
Method Summary
 void close()
           
 void doRecovery(SolrCore core)
           
 boolean isClosed()
           
 void run()
           
 void setRecoveringAfterStartup(boolean recoveringAfterStartup)
           
 
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
 
Methods inherited from interface org.apache.solr.common.cloud.SafeStopThread
stop
 

Constructor Detail

RecoveryStrategy

public RecoveryStrategy(CoreContainer cc,
                        String name)
Method Detail

setRecoveringAfterStartup

public void setRecoveringAfterStartup(boolean recoveringAfterStartup)

close

public void close()

run

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

doRecovery

public void doRecovery(SolrCore core)
                throws org.apache.zookeeper.KeeperException,
                       InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

isClosed

public boolean isClosed()
Specified by:
isClosed in interface SafeStopThread


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.