|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
wt.util.RMIServer
wt.cache.CacheManager
wt.pom.EmptyTableManager
Provides methods to access cached empty tables information.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
EmptyTableManager.AllManagersStartedEventListener
|
(package private) class |
EmptyTableManager.EmptyTablePOMOperationListener
|
Field Summary | |
private Hashtable |
cache
|
private static String |
CLASSNAME
|
private HashMap |
foreignKeyMap
|
private static Object |
IS_STALE
|
(package private) boolean |
isPopulated
|
private static Object |
lock
|
private static EmptyTableManager |
manager
|
(package private) boolean |
opEnabled
|
private static String |
RESOURCE
|
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 | |
EmptyTableManager()
Supported API: false |
Method Summary | |
private void |
clearStaleFlag()
Clears a boolean flag in the MethodContext that indicates that
the cache contains stale data for the current transaction |
static void |
disable()
|
ClassInfo[] |
filterEmptyTables(ClassInfo[] a_classInfos)
|
Vector |
filterEmptyTables(Vector a_classInfos)
|
private void |
findEmptyTables(Vector classNames)
|
private void |
findNotEmptyTables(Vector classNames)
|
private Hashtable |
getCache()
|
int |
getDefaultSize()
override CacheManager.getDefaultSize to return 0 since no objects will be put into the wt.util.Cache object contained in CacheManager. |
static EmptyTableManager |
getEmptyTableManager()
an assessor method to obtain the single instance of the EmptyTableManager. |
private void |
initializeForeignKeyMap()
|
private void |
initializeForeignKeyMapFor(Class a_class)
|
boolean |
isStale()
Indicates if the contents of cache have been changed at some point. |
boolean |
isTableEmpty(ClassInfo a_classInfo)
|
boolean |
isTableEmpty(Object a_className)
method to tell if a class table is empty given class name in the form of String. |
private void |
populateCache()
|
void |
putEntry(Object key,
Object value)
override CacheManager.putEntry to do nothing so that entries are not added to the wt.util.Cache object contained in CacheManager. |
private QueryResult |
queryTables(Vector classNames)
|
private void |
registerAllManagersStartedEventListener()
|
private void |
registerPOMOperationListener()
|
void |
removeClassName(Object a_className)
called by StandardPersistentManager to remove an entry from the cache when the insert operation is done. |
protected void |
removeEntry(Object key)
override CacheManager.removeEntry to receiving the notifying classname and remove this entry from the cache. |
void |
reset()
Reset local cache after master reconnect. |
private void |
setStaleFlag()
Sets a boolean flag in the MethodContext that indicates that
the cache contains stale data for the current transaction |
private static void |
signalRemoteCaches(Object a_className)
method for internal use by the method void removeClassName(Object a_className) to notify other remote caches for removing an entry given the class name. |
Methods inherited from class wt.cache.CacheManager |
checkAccess, get, getDefaultName, getEntry, isCacheHost, overflow, ping, put, putEntry, reference, registerSlave, remove, remove, removeEntry, unreferenced, update, updateEntry, 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 |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable cache
private HashMap foreignKeyMap
boolean isPopulated
boolean opEnabled
private static EmptyTableManager manager
private static Object lock
private static final Object IS_STALE
Constructor Detail |
public EmptyTableManager() throws RemoteException
Method Detail |
private Hashtable getCache()
private void populateCache() throws WTException
WTException
private void initializeForeignKeyMap() throws WTException
WTException
public int getDefaultSize()
getDefaultSize
in class CacheManager
public void putEntry(Object key, Object value)
putEntry
in class CacheManager
key
- value
- protected void removeEntry(Object key)
removeEntry
in class CacheManager
key
- public boolean isStale()
true
if this cache has already been updated
in the current transaction, otherwise false
private void setStaleFlag()
MethodContext
that indicates that
the cache contains stale data for the current transaction
private void clearStaleFlag()
MethodContext
that indicates that
the cache contains stale data for the current transaction
private static void signalRemoteCaches(Object a_className)
a_className
- public boolean isTableEmpty(Object a_className)
a_className
-
public boolean isTableEmpty(ClassInfo a_classInfo)
public ClassInfo[] filterEmptyTables(ClassInfo[] a_classInfos)
public Vector filterEmptyTables(Vector a_classInfos)
public void removeClassName(Object a_className)
a_className
- public static void disable() throws WTException
WTException
public static EmptyTableManager getEmptyTableManager() throws WTException
WTException
public void reset() throws RemoteException
CacheManager
NOTE: This may be called as a result of calling other cache updating operations
since that is when the disconnect and reconnect may take place. When this
happens, this method is called before the other methods return.
Supported API: true
reset
in class CacheManager
RemoteException
private QueryResult queryTables(Vector classNames) throws PersistenceException
PersistenceException
private void findEmptyTables(Vector classNames) throws PersistenceException
PersistenceException
private void findNotEmptyTables(Vector classNames) throws PersistenceException
PersistenceException
private void initializeForeignKeyMapFor(Class a_class) throws WTException
WTException
private void registerAllManagersStartedEventListener()
private void registerPOMOperationListener() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |