org.jasen.update
Class JasenAutoUpdateManager

java.lang.Object
  extended byorg.jasen.update.JasenAutoUpdateManager
All Implemented Interfaces:
StreamReaderListener

public final class JasenAutoUpdateManager
extends Object
implements StreamReaderListener

The auto update manager is responsible for starting, stoping and scheduling the AutoUpdate thread.

All access to the auto update system should be via this class. DO NOT access any other update class directly

Author:
Jason Polites

Method Summary
 void destroy()
           
 boolean forceUpdate()
           
 JasenAutoUpdateConfiguration getConfiguration()
           
 JasenErrorHandler getErrorHandler()
           
static JasenAutoUpdateManager getInstance()
           
 void init(JasenAutoUpdateConfiguration configuration)
          Initialises the manager with the given configuration object
 boolean isIdle()
           
 boolean isInitialized()
           
 boolean isUpdating()
          Indicates whether the auto update thread has signaled an update task underway
 void notifyBytesRead(long bytes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final JasenAutoUpdateManager getInstance()

init

public void init(JasenAutoUpdateConfiguration configuration)
          throws JasenException
Initialises the manager with the given configuration object

Parameters:
configuration -
Throws:
JasenException

destroy

public void destroy()

getConfiguration

public JasenAutoUpdateConfiguration getConfiguration()

getErrorHandler

public JasenErrorHandler getErrorHandler()

isInitialized

public boolean isInitialized()

isIdle

public boolean isIdle()

forceUpdate

public boolean forceUpdate()
                    throws JasenException
Throws:
JasenException

notifyBytesRead

public void notifyBytesRead(long bytes)
Specified by:
notifyBytesRead in interface StreamReaderListener

isUpdating

public boolean isUpdating()
Indicates whether the auto update thread has signaled an update task underway

Returns:
true if the auto updater is updating, false otherwise