com.ptc.wvs.server.util
Class WVSCache

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended bywt.util.RMIServer
              extended bywt.cache.CacheManager
                  extended bycom.ptc.wvs.server.util.WVSCache
All Implemented Interfaces:
CacheServer, Remote, Serializable, Unreferenced

public class WVSCache
extends CacheManager

See Also:
Serialized Form

Field Summary
static String COLLABORATION_CACHE_KEY
           
private static File collabTempDir
           
static Object fileLock
           
private static Object lock
           
static String TERM
           
private static WVSCache theWVSCache
           
private static boolean VERBOSE
           
private static WVSProperties wvsProperties
           
 
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
WVSCache()
           
 
Method Summary
static String[] getCollaborationServerStringsFromFile(String id, int tryCount)
           
static String getNumUsers(String controlString)
           
static WVSCache getWVSCache()
           
static void recoverCollaborationSessions(WVSCache c)
           
 Object updateEntry(Object current_value, Object update_key, Object update_value)
          Overrides CacheManager.updateEntry.
 
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
 
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
 

Field Detail

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
Constructor Detail

WVSCache

public WVSCache()
         throws RemoteException
Method Detail

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 entry
update_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