org.jasen.update
Class JasenAutoUpdateNotifier

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

public class JasenAutoUpdateNotifier
extends ControlledThread

The JasenAutoUpdateNotifier is an asynchronous thread which is responsible for recording event notifications sent from the JasenAutoUpdater.

Because the auto updater executes in a synchronous loop, (that is, while it's looping it has exclusive access to itself), any notifications it sends back to the JasenAutoUpdateManager MUST be guaranteed not to block. There are some specific circumstances in which blocking notifications are required, however any publicly visible event notifications are considered asynchronous.

Author:
Jason Polites
See Also:
JasenAutoUpdateManager, JasenAutoUpdater, JasenEventListener

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JasenAutoUpdateNotifier(JasenAutoUpdateManager manager)
           
JasenAutoUpdateNotifier(JasenAutoUpdateManager manager, String name)
           
 
Method Summary
 void handleException(Exception e)
          Handles unrecoverable errors.
 void notifyUpdateComplete(JasenAutoUpdateReport report)
           
 void process()
          Performs the primary thread processing.
 
Methods inherited from class org.jasen.thread.ControlledThread
finish, getSleepTime, isProcessOnStart, isRunning, run, setProcessOnStart, setSleepTime, wake
 
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
 

Constructor Detail

JasenAutoUpdateNotifier

public JasenAutoUpdateNotifier(JasenAutoUpdateManager manager)

JasenAutoUpdateNotifier

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

handleException

public void handleException(Exception e)
Description copied from class: ControlledThread
Handles unrecoverable errors.

Specified by:
handleException in class ControlledThread
Parameters:
e -

process

public void process()
             throws JasenException
Description copied from class: ControlledThread
Performs the primary thread processing.

Specified by:
process in class ControlledThread
Throws:
JasenException

notifyUpdateComplete

public void notifyUpdateComplete(JasenAutoUpdateReport report)