@Override public ObjectID getObjectID() throws DNAException { return dna.getObjectID(); }
@Override public ObjectID getObjectID() throws DNAException { return dna.getObjectID(); }
private void basicAddObject(final DNA dna) { final ObjectID id = dna.getObjectID(); this.dnaCache.put(id, dna); final ObjectLookupState ols = this.objectLookupStates.get(id); if (ols != null && ols.isPrefetch()) { // Prefetched requests are removed from the lookupState map so it can be removed from the cache if it is not used // within a certain time. this.objectLookupStates.remove(id); } }
private void basicAddObject(final DNA dna) { final ObjectID id = dna.getObjectID(); this.dnaCache.put(id, dna); final ObjectLookupState ols = this.objectLookupStates.get(id); if (ols != null && ols.isPrefetch()) { // Prefetched requests are removed from the lookupState map so it can be removed from the cache if it is not used // within a certain time. this.objectLookupStates.remove(id); } }
private void basicAddObject(final DNA dna) { final ObjectID id = dna.getObjectID(); this.dnaCache.put(id, dna); final ObjectLookupState ols = this.objectLookupStates.get(id); if (ols != null && ols.isPrefetch()) { // Prefetched requests are removed from the lookupState map so it can be removed from the cache if it is not used // within a certain time. this.objectLookupStates.remove(id); } }
@Override public synchronized void cleanOutObject(final DNA dna) { removed(dna.getObjectID()); }
@Override public synchronized void addObject(final DNA dna) { if (!this.removeObjects.contains(dna.getObjectID())) { basicAddObject(dna); } notifyAll(); }
@Override public synchronized void addObject(final DNA dna) { if (!this.removeObjects.contains(dna.getObjectID())) { basicAddObject(dna); } notifyAll(); }
@Override public synchronized void addObject(final DNA dna) { if (!this.removeObjects.contains(dna.getObjectID())) { basicAddObject(dna); } notifyAll(); }
@Override public TCObject addLocalPrefetch(DNA dna) throws ClassNotFoundException, AbortedOperationException { remoteObjectManager.addObject(dna); return lookup(dna.getObjectID(),null,true,true); }
@Override public TCObject addLocalPrefetch(DNA dna) throws ClassNotFoundException, AbortedOperationException { remoteObjectManager.addObject(dna); return lookup(dna.getObjectID(), true, true); }
@Override public TCObject addLocalPrefetch(DNA dna) throws ClassNotFoundException, AbortedOperationException { remoteObjectManager.addObject(dna); return lookup(dna.getObjectID(), null, true, true); }
@Override public WeakReference createNewPeer(final TCClass clazz, final DNA dna) { return newWeakObjectReference(dna.getObjectID(), createNewPojoObject(clazz, dna)); }
@Override public WeakReference createNewPeer(final TCClass clazz, final DNA dna) { return newWeakObjectReference(dna.getObjectID(), createNewPojoObject(clazz, dna)); }
void addToPending(ServerTransaction st, DNA dna) { PendingRecord pr = new PendingRecord(st.getServerTransactionID(), dna, st.getGlobalTransactionID()); ObjectID oid = dna.getObjectID(); oid2Changes.put(oid, pr); gid2Changes.put(st.getGlobalTransactionID(), pr); }
@Override public void addObject(DNA dna) { getRemoteObjectManager(getGroupID(dna.getObjectID())).addObject(dna); }
@Override public void addObject(DNA dna) { getRemoteObjectManager(getGroupID(dna.getObjectID())).addObject(dna); }
@Override public void cleanOutObject(final DNA dna) { getRemoteObjectManager(getGroupID(dna.getObjectID())).cleanOutObject(dna); }
@Override public void cleanOutObject(final DNA dna) { getRemoteObjectManager(getGroupID(dna.getObjectID())).cleanOutObject(dna); }
private Object createNewPojoObject(TCClass clazz, DNA dna) { if (clazz.isUseNonDefaultConstructor()) { try { return this.factory.getNewPeerObject(clazz, dna); } catch (final IOException e) { throw new TCRuntimeException(e); } catch (final ClassNotFoundException e) { throw new TCRuntimeException(e); } } else { return createNewPojoObject(clazz, dna.getArraySize(), dna.getObjectID(), dna.getParentObjectID()); } }