org.jasen.update
Class JasenAutoUpdater

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jasen.thread.StoppableThread
          extended byorg.jasen.update.JasenAutoUpdater
All Implemented Interfaces:
Runnable, Stoppable

public final class JasenAutoUpdater
extends StoppableThread

The auto updater is a thread which continuously runs and at regular intervals checks the update site for engine updates.

If new updates are found, they are downloaded and upon successful download the engine is signalled to block any further scan requests until the updates have been loaded.

Author:
Jason Polites

Field Summary
static String PARCEL_CACHE
           
static String UPDATE_LIB_PATH
           
static String UPDATE_PATH
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JasenAutoUpdater(JasenAutoUpdateManager manager)
           
JasenAutoUpdater(JasenAutoUpdateManager manager, String name)
           
 
Method Summary
 void finish()
          Stops the thread
 boolean isIdle()
           
 boolean isRunning()
           
 boolean isStopped()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE_PATH

public static final String UPDATE_PATH
See Also:
Constant Field Values

UPDATE_LIB_PATH

public static final String UPDATE_LIB_PATH
See Also:
Constant Field Values

PARCEL_CACHE

public static final String PARCEL_CACHE
See Also:
Constant Field Values
Constructor Detail

JasenAutoUpdater

public JasenAutoUpdater(JasenAutoUpdateManager manager)

JasenAutoUpdater

public JasenAutoUpdater(JasenAutoUpdateManager manager,
                        String name)
Parameters:
name -
Method Detail

run

public void run()

finish

public void finish()
Description copied from interface: Stoppable
Stops the thread


isRunning

public boolean isRunning()

isIdle

public boolean isIdle()

isStopped

public boolean isStopped()