com.ptc.wvs.server.util
Class WVSCache
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
wt.util.RMIServer
wt.cache.CacheManager
com.ptc.wvs.server.util.WVSCache
- All Implemented Interfaces:
- CacheServer, Remote, Serializable, Unreferenced
- public class WVSCache
- extends CacheManager
- See Also:
- Serialized Form
Methods inherited from class wt.cache.CacheManager |
checkAccess, get, getDefaultName, getDefaultSize, 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 |
COLLABORATION_CACHE_KEY
public static final String COLLABORATION_CACHE_KEY
- See Also:
- Constant Field Values
TERM
public static final String TERM
- See Also:
- Constant Field Values
wvsProperties
private static WVSProperties wvsProperties
collabTempDir
private static File collabTempDir
VERBOSE
private static boolean VERBOSE
fileLock
public static Object fileLock
theWVSCache
private static WVSCache theWVSCache
lock
private static Object lock
WVSCache
public WVSCache()
throws RemoteException
getWVSCache
public static WVSCache getWVSCache()
throws WTException
- Throws:
WTException
updateEntry
public Object updateEntry(Object current_value,
Object update_key,
Object update_value)
- Overrides
CacheManager.updateEntry
.
Update a single entry in a cache entry which is a Map
this will get called for updates from a remote server. If it is a map, eg. hastable then
update the value for update_key in the map. If this is not a map then
preform the default implementation of replacing the cache entry with update_value
- Overrides:
updateEntry
in class CacheManager
- Parameters:
update_key
- the key for what is being updated in the entryupdate_value
- the updated value
recoverCollaborationSessions
public static void recoverCollaborationSessions(WVSCache c)
getCollaborationServerStringsFromFile
public static String[] getCollaborationServerStringsFromFile(String id,
int tryCount)
getNumUsers
public static String getNumUsers(String controlString)
throws Exception
- Throws:
Exception