wt.workflow.engine
Class StandardWfEngineService.SynchRobotCache

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended bywt.util.RMIServer
              extended bywt.cache.CacheManager
                  extended bywt.workflow.engine.StandardWfEngineService.SynchRobotCache
All Implemented Interfaces:
CacheServer, Remote, Serializable, Unreferenced
Enclosing class:
StandardWfEngineService

public static class StandardWfEngineService.SynchRobotCache
extends CacheManager

Internal class for creation of distributed cache that maps event keys to oids of synchronization robots. That map indicates which robots are waiting for a specific event to occur.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class wt.cache.CacheManager
MASTER
 
Fields inherited from class wt.util.RMIServer
csf, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface wt.cache.CacheServer
versionID
 
Constructor Summary
StandardWfEngineService.SynchRobotCache()
          Construct a new SynchRobotCache.
 
Method Summary
 void addSynchRobot(String event_key, ObjectIdentifier robot_id)
          Adds a robot to the list of robots mapped by event key.
 int getDefaultSize()
          Control size of this cache.
 Vector getSynchRobots(String event_key)
          Returns a list of robot oids for the event passed as argument
private  Vector populateSynchRobotCache(String event_key)
          Gets from the database all active synchronization robots for event key passed as argument.
 void removeSynchRobot(String event_key, ObjectIdentifier robot_id)
          Removes a robot from the list of robots mapped by event key.
 Object updateEntry(Object current_value, Object update_key, Object update_value)
          Overrides CacheManager.update.
 
Methods inherited from class wt.cache.CacheManager
checkAccess, get, getDefaultName, getEntry, isCacheHost, overflow, ping, put, putEntry, putEntry, reference, registerSlave, remove, remove, removeEntry, removeEntry, reset, unreferenced, update, updateEntry
 
Methods inherited from class wt.util.RMIServer
clone, exportObject, exportObject, exportObject, getClientSocketFactory, getPort, getServerSocketFactory, getStub, isHostInList, isLocalHost, setPort, writeReplace
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardWfEngineService.SynchRobotCache

public StandardWfEngineService.SynchRobotCache()
                                        throws RemoteException
Construct a new SynchRobotCache. CacheManager defaults are used for name, size, and location of master cache.

Method Detail

getSynchRobots

public Vector getSynchRobots(String event_key)
                      throws WTException
Returns a list of robot oids for the event passed as argument

Throws:
WTException

addSynchRobot

public void addSynchRobot(String event_key,
                          ObjectIdentifier robot_id)
                   throws WTException
Adds a robot to the list of robots mapped by event key.

Throws:
WTException

removeSynchRobot

public void removeSynchRobot(String event_key,
                             ObjectIdentifier robot_id)
                      throws WTException
Removes a robot from the list of robots mapped by event key.

Throws:
WTException

populateSynchRobotCache

private Vector populateSynchRobotCache(String event_key)
                                throws WTException
Gets from the database all active synchronization robots for event key passed as argument.

Throws:
WTException

updateEntry

public Object updateEntry(Object current_value,
                          Object update_key,
                          Object update_value)
Overrides CacheManager.update. Update a single entry in one of the hashtables.

Overrides:
updateEntry in class CacheManager
Parameters:
update_key - the key for what is being updated in the entry
update_value - the updated value
See Also:
CacheManager

getDefaultSize

public int getDefaultSize()
Control size of this cache. For this example, just return normal default.

Overrides:
getDefaultSize in class CacheManager