org.hardtokenmgmt.admin.control
Class HostStatusUpdater

java.lang.Object
  extended by java.util.Observable
      extended by org.hardtokenmgmt.admin.control.HostStatusUpdater
All Implemented Interfaces:
java.lang.Runnable

public class HostStatusUpdater
extends java.util.Observable
implements java.lang.Runnable

Runnable in charge of fetching the host info and notifying all listeners of information

Version:
$Id$
Author:
Philip Vendil 18 feb 2009

Method Summary
 OverallStatus getCurrentOverallStatus()
           
static HostStatusUpdater getInstance()
           
 void pause()
           
 void play()
           
 void run()
           
 void stop()
           
 void updateAllNow()
           
 void updateCAInfoVO(java.lang.String hostname, CAInfoVO cAInfoVO)
          Updates the current overall status with
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HostStatusUpdater getInstance()

run

public void run()
Specified by:
run in interface java.lang.Runnable

pause

public void pause()

play

public void play()

stop

public void stop()

updateAllNow

public void updateAllNow()

updateCAInfoVO

public void updateCAInfoVO(java.lang.String hostname,
                           CAInfoVO cAInfoVO)
Updates the current overall status with

Parameters:
hostname - the host name containing the new CAInfoVO
cAInfoVO - the actual data to update.

getCurrentOverallStatus

public OverallStatus getCurrentOverallStatus()
Returns:
the current overall status.