org.yawlfoundation.yawl.engine
Class YEngineRestorer

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.YEngineRestorer

public class YEngineRestorer
extends Object

Handles the restoration of persisted objects and data pertaining to the Engine.

Author:
Michael Adams Creation Date: 25/06/2008

Constructor Summary
protected YEngineRestorer()
           
protected YEngineRestorer(YEngine engine, YPersistenceManager pmgr)
           
 
Method Summary
protected  void persistDefaultClients()
           
protected  void restartRestoredProcessInstances()
           
protected  Set<YTimedObject> restoreDelayedLaunches()
           
protected  void restoreExternalClients()
          Restores registered external client credentials (eg the editor logon)
protected  YIdentifier restoreLocations(Hashtable<String,YNetRunner> runnermap, YIdentifier id, YIdentifier parent, YNet net)
           
protected  YCaseNbrStore restoreNextAvailableCaseNumber()
          Restores the next available case number from persistence
protected  void restoreProcessInstances()
           
protected  void restoreSpecifications()
          Restores Specifications from persistence
protected  Set<YTimedObject> restoreTimedObjects()
           
protected  void restoreWorkItems()
           
protected  Set<YTimedObject> restoreWorkItemTimers()
           
protected  void restoreYAWLServices()
          Restores YAWL Services from persistence
protected  YIdentifier restoreYIdentifiers(Hashtable<String,YNetRunner> runnermap, YIdentifier id, YIdentifier parent, YNet net)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YEngineRestorer

protected YEngineRestorer()

YEngineRestorer

protected YEngineRestorer(YEngine engine,
                          YPersistenceManager pmgr)
Method Detail

restoreYAWLServices

protected void restoreYAWLServices()
                            throws YPersistenceException
Restores YAWL Services from persistence

Throws:
YPersistenceException - if there's a problem reading from the tables

restoreExternalClients

protected void restoreExternalClients()
                               throws YPersistenceException
Restores registered external client credentials (eg the editor logon)

Throws:
YPersistenceException - if there's a problem reading from the tables

restoreSpecifications

protected void restoreSpecifications()
                              throws YPersistenceException
Restores Specifications from persistence

Throws:
YPersistenceException - if there's a problem reading from the tables

restoreNextAvailableCaseNumber

protected YCaseNbrStore restoreNextAvailableCaseNumber()
                                                throws YPersistenceException
Restores the next available case number from persistence

Returns:
a YCaseNbrStore object initialised to the next available case number
Throws:
YPersistenceException - if there's a problem reading from the tables

restoreProcessInstances

protected void restoreProcessInstances()
                                throws YPersistenceException
Throws:
YPersistenceException

restoreWorkItems

protected void restoreWorkItems()
                         throws YPersistenceException
Throws:
YPersistenceException

restoreTimedObjects

protected Set<YTimedObject> restoreTimedObjects()
                                         throws YPersistenceException
Throws:
YPersistenceException

restoreWorkItemTimers

protected Set<YTimedObject> restoreWorkItemTimers()
                                           throws YPersistenceException
Throws:
YPersistenceException

restoreDelayedLaunches

protected Set<YTimedObject> restoreDelayedLaunches()
                                            throws YPersistenceException
Throws:
YPersistenceException

restartRestoredProcessInstances

protected void restartRestoredProcessInstances()
                                        throws YPersistenceException
Throws:
YPersistenceException

persistDefaultClients

protected void persistDefaultClients()

restoreYIdentifiers

protected YIdentifier restoreYIdentifiers(Hashtable<String,YNetRunner> runnermap,
                                          YIdentifier id,
                                          YIdentifier parent,
                                          YNet net)
                                   throws YPersistenceException
Throws:
YPersistenceException

restoreLocations

protected YIdentifier restoreLocations(Hashtable<String,YNetRunner> runnermap,
                                       YIdentifier id,
                                       YIdentifier parent,
                                       YNet net)
                                throws YPersistenceException
Throws:
YPersistenceException


Copyright © 2004-2012 The YAWL Foundation.