| java.lang.Object com.tc.object.ClientObjectManagerImpl
Constructor Summary | |
public | ClientObjectManagerImpl(RemoteObjectManager remoteObjectManager, DSOClientConfigHelper clientConfiguration, ObjectIDProvider idProvider, EvictionPolicy cache, RuntimeLogger runtimeLogger, ChannelIDProvider provider, ClassProvider classProvider, TCClassFactory classFactory, TCObjectFactory objectFactory, Portability portability, DSOClientMessageChannel channel) |
Method Summary | |
public synchronized void | addPendingCreateObjectsToTransaction() | public void | checkPortabilityOfField(Object fieldValue, String fieldName, Object pojo) | public void | checkPortabilityOfLogicalAction(Object[] params, int index, String methodName, Object pojo) | public Object | cloneAndInvokeLogicalOperation(Object pojo, String methodName, Object[] params) This is used by the senders of ApplicationEvents to provide a version of a logically-managed pojo in the state it
would have been in had the ApplicationEvent not occurred. | public Object | createNewCopyInstance(Object source, Object parent) | public WeakReference | createNewPeer(TCClass clazz, DNA dna) | public WeakReference | createNewPeer(TCClass clazz, int size, ObjectID id, ObjectID parentID) | public Object | createOrReplaceRoot(String rootName, Object root) This method must be called within a DSO synchronized context. | public Object | createParentCopyInstanceIfNecessary(Map visited, Map cloned, Object v) | public Object | deepCopy(Object source, OptimisticTransactionManager optimisticTxManager) Deep connected copy used to create stable views on collections of objects. | public void | evictCache(CacheStats stat) | public synchronized Collection | getAllObjectIDsAndClear(Collection c) | public Class | getClassFor(String className, String loaderDesc) | public TCClass | getOrCreateClass(Class clazz) | public TraversedReferences | getPortableObjects(Class clazz, Object start, TraversedReferences addTo) | public ReferenceQueue | getReferenceQueue() | public ClientTransactionManager | getTransactionManager() | public synchronized boolean | hasPendingCreateObjects() | public boolean | isCreationInProgress() | public boolean | isManaged(Object pojo) | public boolean | isPortableClass(Class clazz) | public boolean | isPortableInstance(Object obj) | public TCObject | lookup(ObjectID id) | public synchronized ObjectID | lookupExistingObjectID(Object pojo) | public TCObject | lookupExistingOrNull(Object pojo) | public synchronized TCObject | lookupIfLocal(ObjectID id) | public Object | lookupObject(ObjectID objectID) | public Object | lookupObject(ObjectID id, ObjectID parentContext) | public Object | lookupObjectNoDepth(ObjectID id) | public TCObject | lookupOrCreate(Object pojo) | public Object | lookupOrCreateRoot(String rootName, Object root) Check to see if the root is already in existence on the server. | public Object | lookupOrCreateRoot(String rootName, Object root, boolean dsoFinal) | public Object | lookupOrCreateRootNoDepth(String rootName, Object root) | public TCObject | lookupOrShare(Object pojo) | public Object | lookupRoot(String rootName) | public void | markReferenced(TCObject tcobj) | public synchronized void | pause() | public synchronized void | replaceRootIDIfNecessary(String rootName, ObjectID newRootID) | public void | sendApplicationEvent(Object pojo, ApplicationEvent event) | public void | setTransactionManager(ClientTransactionManager txManager) | public void | shutdown() | public synchronized void | starting() | public void | storeObjectHierarchy(Object root, ApplicationEventContext context) | public synchronized void | unpause() |
ClientObjectManagerImpl | public ClientObjectManagerImpl(RemoteObjectManager remoteObjectManager, DSOClientConfigHelper clientConfiguration, ObjectIDProvider idProvider, EvictionPolicy cache, RuntimeLogger runtimeLogger, ChannelIDProvider provider, ClassProvider classProvider, TCClassFactory classFactory, TCObjectFactory objectFactory, Portability portability, DSOClientMessageChannel channel)(Code) | | |
addPendingCreateObjectsToTransaction | public synchronized void addPendingCreateObjectsToTransaction()(Code) | | |
cloneAndInvokeLogicalOperation | public Object cloneAndInvokeLogicalOperation(Object pojo, String methodName, Object[] params)(Code) | | This is used by the senders of ApplicationEvents to provide a version of a logically-managed pojo in the state it
would have been in had the ApplicationEvent not occurred.
|
createOrReplaceRoot | public Object createOrReplaceRoot(String rootName, Object root)(Code) | | This method must be called within a DSO synchronized context. Currently, this is called in a setter method of a
replaceable root.
|
createParentCopyInstanceIfNecessary | public Object createParentCopyInstanceIfNecessary(Map visited, Map cloned, Object v)(Code) | | |
deepCopy | public Object deepCopy(Object source, OptimisticTransactionManager optimisticTxManager)(Code) | | Deep connected copy used to create stable views on collections of objects. While inefficient this should do that
job. It is important that this method be called holding a distributed lock in order to prevent an unstable view. It
also must be called in an optimistic transaction I'll probably move this out of the client object manager at some
point but we'll see.
|
hasPendingCreateObjects | public synchronized boolean hasPendingCreateObjects()(Code) | | |
isCreationInProgress | public boolean isCreationInProgress()(Code) | | |
isPortableClass | public boolean isPortableClass(Class clazz)(Code) | | |
isPortableInstance | public boolean isPortableInstance(Object obj)(Code) | | |
lookupOrCreateRoot | public Object lookupOrCreateRoot(String rootName, Object root)(Code) | | Check to see if the root is already in existence on the server. If it is then get it if not then create it.
|
pause | public synchronized void pause()(Code) | | |
replaceRootIDIfNecessary | public synchronized void replaceRootIDIfNecessary(String rootName, ObjectID newRootID)(Code) | | |
shutdown | public void shutdown()(Code) | | |
starting | public synchronized void starting()(Code) | | |
unpause | public synchronized void unpause()(Code) | | |
|
|