protected void __remove(K key) { ManagerUtil.logicalInvoke(AbstractSearchableMapImpl.this, SerializationUtil.REMOVE_ENTRY_FOR_KEY_SIGNATURE, new Object[] { l1CachedMapData.get(key).key }); tsInfo.remove(key); localRemove(key); }
private void doLogicalPut(final K key, final V value, final Object old) { try { ManagerUtil.logicalInvoke(this, SerializationUtil.PUT_SIGNATURE, new Object[] { key, value }); } catch (final TCNonPortableObjectError npoe) { if (old != null) { this.store.put(key, old); } else { this.store.remove(key); } throw npoe; } }
private void doLogicalPut(final K key, final V value, final Object old) { try { ManagerUtil.logicalInvoke(this, SerializationUtil.PUT_SIGNATURE, new Object[] { key, value }); } catch (final TCNonPortableObjectError npoe) { if (old != null) { this.store.put(key, old); } else { this.store.remove(key); } throw npoe; } }
private void doLogicalPut(final K key, final V value, final Object old) { try { ManagerUtil.logicalInvoke(this, SerializationUtil.PUT_SIGNATURE, new Object[] { key, value }); } catch (final TCNonPortableObjectError npoe) { if (old != null) { this.store.put(key, old); } else { this.store.remove(key); } throw npoe; } }
public void clear() { fullyLock(); try { head.next = null; last = head; if (ManagerUtil.isManaged(this)) { ManagerUtil.logicalInvoke(this, SerializationUtil.CLEAR_SIGNATURE, new Object[] {}); } if (count.getAndSet(0) == capacity) notFull.signalAll(); } finally { fullyUnlock(); } }
public void clear() { fullyLock(); try { head.next = null; last = head; if (ManagerUtil.isManaged(this)) { ManagerUtil.logicalInvoke(this, SerializationUtil.CLEAR_SIGNATURE, new Object[] {}); } if (count.getAndSet(0) == capacity) notFull.signalAll(); } finally { fullyUnlock(); } }
synchronized boolean addElement(Element e) { Object key = e.getKey(); if (present.containsKey(key)) { return false; } e.serialize(); ManagerUtil.logicalInvoke(this, SerializationUtil.ADD_SIGNATURE, new Object[] { e }); insertLocal(e); return true; }
synchronized boolean removeElement(Element e) { Object key = e.getKey(); e = present.get(key); if (e == null) { return false; } ManagerUtil.logicalInvoke(this, SerializationUtil.REMOVE_SIGNATURE, new Object[] { e }); removeLocal(e); e.clearLocal(); return true; }
synchronized boolean removeElement(Element e) { Object key = e.getKey(); e = present.get(key); if (e == null) { return false; } ManagerUtil.logicalInvoke(this, SerializationUtil.REMOVE_SIGNATURE, new Object[] { e }); removeLocal(e); e.clearLocal(); return true; }
synchronized boolean addElement(Element e) { Object key = e.getKey(); if (present.containsKey(key)) { return false; } e.serialize(); ManagerUtil.logicalInvoke(this, SerializationUtil.ADD_SIGNATURE, new Object[] { e }); insertLocal(e); return true; }
synchronized boolean remove(Element tw) { applyPending(); Object key = tw.getKey(); if (!present.containsKey(key)) { return false; } ManagerUtil.logicalInvoke(this, "remove(Ljava/lang/Object;)Ljava/lang/Object;", new Object[] { key }); removeLocal(tw); tw.clearLocal(); return true; }
public synchronized void clear() throws SearchException{ checkshutdown(); ManagerUtil.logicalInvoke(this, SerializationUtil.CLEAR_SIGNATURE, new Object[0]); localClear(); tsInfo.clear(); }
synchronized boolean add(Element tw) { applyPending(); Object key = tw.getKey(); if (present.containsKey(key)) { return false; } tw.serialize(); ManagerUtil.logicalInvoke(this, "put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", new Object[] { key, tw }); insertLocal(tw); return true; }
protected void unlockedPut(SerializationAdaptor<K, V> adaptor, boolean wait) { K key = adaptor.getKey(); Object args[] = new Object[]{key, adaptor.adaptAppToStore()}; tsInfo.put(key); ManagerUtil.logicalInvoke(AbstractSearchableMapImpl.this, SerializationUtil.PUT_SIGNATURE, args); /** bit tricky - references inside args are replaced by their objectID once after call to logicalInvoke. **/ localPut(key, adaptor, (ObjectID)args[1], wait); LoggingUtil.debug("__put putting key " + key + " at timeStamp " + System.currentTimeMillis()/1000); }
public void setTargetMaxTotalCount(int targetMaxTotalCount) { this.targetMaxTotalCount = targetMaxTotalCount; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_TARGET_MAX_TOTAL_COUNT_SIGNATURE, new Object[] { this.targetMaxTotalCount }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } }
public void setMaxTTI(int maxTTI) { this.maxTTISeconds = maxTTI; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_MAX_TTI_SIGNATURE, new Object[] { this.maxTTISeconds }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } }
public void setMaxTTL(int maxTTL) { this.maxTTLSeconds = maxTTL; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_MAX_TTL_SIGNATURE, new Object[] { this.maxTTLSeconds }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } }
public void setMaxTTL(int maxTTL) { this.maxTTLSeconds = maxTTL; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_MAX_TTL_SIGNATURE, new Object[] { this.maxTTLSeconds }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } } }
public void setTargetMaxTotalCount(int targetMaxTotalCount) { this.targetMaxTotalCount = targetMaxTotalCount; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_TARGET_MAX_TOTAL_COUNT_SIGNATURE, new Object[] { this.targetMaxTotalCount }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } }
public void setMaxTTI(int maxTTI) { this.maxTTISeconds = maxTTI; beginLock(getInstanceDsoLockName(), this.dsoLockType); try { ManagerUtil.logicalInvoke(this, SerializationUtil.SET_MAX_TTI_SIGNATURE, new Object[] { this.maxTTISeconds }); } finally { commitLock(getInstanceDsoLockName(), this.dsoLockType); internalClearLocalCache(); } }