wt.workflow.engine
Class StandardWfEngineService.SynchRobotCache
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
wt.util.RMIServer
wt.cache.CacheManager
wt.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
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 |
StandardWfEngineService.SynchRobotCache
public StandardWfEngineService.SynchRobotCache()
throws RemoteException
- Construct a new SynchRobotCache.
CacheManager defaults are used for name, size, and location of master cache.
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 entryupdate_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