org.yawlfoundation.yawl.resourcing.datastore.orgdata.util
Class OrgDataRefresher

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.datastore.orgdata.util.OrgDataRefresher

public class OrgDataRefresher
extends Object

1. When called directly (by the ResourceManager) will refresh the externally sourced org data. 2. When enabled via context configuration, repeatedly refreshes the externally sourced org data after each specified period.

Author:
Michael Adams
Created/Last Date:
20/06/11

Constructor Summary
OrgDataRefresher(ResourceManager rm)
          Constructs an instance to be used for 'manual' refreshing (via a call to refresh())
OrgDataRefresher(ResourceManager rm, long period)
          Constructs an instance that starts a timer to refresh org data every 'period'
 
Method Summary
 List<Runnable> cancel()
          Stop the refresher timer (if it was started)
 void refresh()
          Refreshes the org data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrgDataRefresher

public OrgDataRefresher(ResourceManager rm)
Constructs an instance to be used for 'manual' refreshing (via a call to refresh())

Parameters:
rm - the ResourceManager instance

OrgDataRefresher

public OrgDataRefresher(ResourceManager rm,
                        long period)
Constructs an instance that starts a timer to refresh org data every 'period'

Parameters:
rm - the ResourceManager instance
period - the number of minutes to wait between refreshes
Method Detail

refresh

public void refresh()
Refreshes the org data


cancel

public List<Runnable> cancel()
Stop the refresher timer (if it was started)

Returns:
a list of the cancelled, scheduled refresh commands (if any)


Copyright © 2004-2012 The YAWL Foundation.