A C D E F G H I J K M N O P R S T U 

A

add(E) - Method in class cern.entwined.TransactionalQueue
 
addAll(Collection<? extends E>) - Method in class cern.entwined.TransactionalQueue
 
assoc(T) - Method in interface cern.entwined.Ref
Associates this reference with another value.
assoc(T) - Method in class cern.entwined.TransactionalRef
 

C

cern.entwined - package cern.entwined
 
cern.entwined.exception - package cern.entwined.exception
 
checkEmpty(String, Collection<T>) - Static method in class cern.entwined.Utils
A facility method that checks collection on null and emptiness and throws IllegalArgumentException if it is.
checkNull(String, T) - Static method in class cern.entwined.Utils
A facility method that checks object to be null and throws the IllegalArgumentException if it is.
checkNull(String, String) - Static method in class cern.entwined.Utils
A facility method that checks object to be null and throws the IllegalArgumentException if it is.
checkNullState(String, T) - Static method in class cern.entwined.Utils
A facility method that checks object to be null and throws the IllegalStateException if it is.
cleanCopy() - Method in class cern.entwined.CompositeCollection
Creates a new transactional entity from the current one discarding all the local changes.
cleanCopy() - Method in class cern.entwined.SemiPersistent
Creates a new transactional entity from the current one discarding all the local changes.
cleanCopy() - Method in class cern.entwined.TransactionalMap
 
cleanCopy() - Method in class cern.entwined.TransactionalMultimap
 
cleanCopy() - Method in class cern.entwined.TransactionalQueue
 
cleanCopy() - Method in class cern.entwined.TransactionalRef
 
clear() - Method in interface cern.entwined.OpaqueMap
Removes all of the mappings from this map (optional operation).
clear() - Method in interface cern.entwined.OpaqueMultimap
Removes all of the mappings from this map (optional operation).
clear() - Method in class cern.entwined.TransactionalMap
 
clear() - Method in class cern.entwined.TransactionalMultimap
 
clear() - Method in class cern.entwined.TransactionalQueue
 
commit(CompositeCollection) - Method in class cern.entwined.CompositeCollection
 
commit(TransactionalMap<K, V>) - Method in class cern.entwined.TransactionalMap
 
commit(TransactionalMultimap<K, V>) - Method in class cern.entwined.TransactionalMultimap
 
commit(TransactionalQueue<E>) - Method in class cern.entwined.TransactionalQueue
For performance purposes returned global state is initialized with empty iterator, therefore polling data from the collection is not possible.
commit(TransactionalRef<T>) - Method in class cern.entwined.TransactionalRef
 
committed(T) - Method in interface cern.entwined.Transaction
Implementation of this method must contain all the I/O and post transactional processing.
committed(T) - Method in class cern.entwined.TransactionAdapter
 
compareTo(T) - Method in class cern.entwined.Snapshot

Compares snapshot timestamps only.
CompositeCollection - Class in cern.entwined
This class is aimed at simplification of client collection and snapshot implementations.
CompositeCollection(SemiPersistent...) - Constructor for class cern.entwined.CompositeCollection
Creates a new CompositeCollection with given references.
ConflictException - Exception in cern.entwined.exception
Exception is thrown by transactional data types at commit time when a conflict is detected.
ConflictException() - Constructor for exception cern.entwined.exception.ConflictException
 
ConflictException(String) - Constructor for exception cern.entwined.exception.ConflictException
 
ConflictException(String, Throwable) - Constructor for exception cern.entwined.exception.ConflictException
 
ConflictException(Throwable) - Constructor for exception cern.entwined.exception.ConflictException
 
contains(Object) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
containsAll(Collection<?>) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
containsKey(K) - Method in interface cern.entwined.OpaqueMap
Returns true if this map contains a mapping for the specified key.
containsKey(K) - Method in interface cern.entwined.OpaqueMultimap
Returns true if this map contains a mapping for the specified key.
containsKey(K) - Method in class cern.entwined.TransactionalMap
 
containsKey(K) - Method in class cern.entwined.TransactionalMultimap
 

D

deref() - Method in interface cern.entwined.Ref
Returns kept value.
deref() - Method in class cern.entwined.TransactionalRef
 
dereference(GlobalReference<T>) - Static method in class cern.entwined.STMUtils
Returns referenced value or null if the reference is null.
dirtyCopy() - Method in class cern.entwined.CompositeCollection
Copies references to the source data along with local changes and read/write logs.
dirtyCopy() - Method in class cern.entwined.SemiPersistent
Copies references to the source data along with local changes and read/write logs.
dirtyCopy() - Method in class cern.entwined.TransactionalMap
 
dirtyCopy() - Method in class cern.entwined.TransactionalMultimap
 
dirtyCopy() - Method in class cern.entwined.TransactionalQueue
 
dirtyCopy() - Method in class cern.entwined.TransactionalRef
 
drainQueue(Queue<T>) - Static method in class cern.entwined.Utils
Drains the queue to a new List.
drainTo(Collection<E>) - Method in class cern.entwined.TransactionalQueue
Polls all the elements from the queue and adds them to the collection.

E

element() - Method in class cern.entwined.TransactionalQueue
 

F

finalize() - Method in class cern.entwined.GlobalReference
Runs a small transaction that removes the referenced object from the global map.

G

get(int) - Method in class cern.entwined.CompositeCollection
Returns a transactional reference or collection with the give index.
get() - Method in class cern.entwined.GlobalReference
Retrieves the globally referenced object.
get(K) - Method in interface cern.entwined.OpaqueMap
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
get(K) - Method in interface cern.entwined.OpaqueMultimap
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
get(K) - Method in class cern.entwined.TransactionalMap
 
get(K) - Method in class cern.entwined.TransactionalMultimap
Delegates to TransactionalMap.get(Object) replacing the returned null value with an empty set.
getBaseSnapshot() - Method in class cern.entwined.Memory
Checks if there is a running transaction and if there is returns its snapshot.
getNextId() - Method in class cern.entwined.Memory
Returns the next unique ID that can be used in BaseSnapshot.
getResult() - Method in class cern.entwined.TransactionClosure
Gets the result of the transaction execution.
getRightException(Throwable) - Static method in exception cern.entwined.exception.UnwrappableException
Used in constructors to correctly unwrap any throwable that has to be unwrapped.
getRightMessage(String, Throwable) - Static method in exception cern.entwined.exception.UnwrappableException
Used in constructors to correctly unwrap any message from cause.
getStackTrace(Throwable) - Static method in class cern.entwined.Utils
Prints exception stack into a string and returns it.
getUnique(Collection<T>) - Static method in class cern.entwined.Utils
Returns the only element in the given collection.
getUnwrap() - Method in interface cern.entwined.exception.Unwrappable
Returns the unwrap flag value.
getUnwrap() - Method in exception cern.entwined.exception.UnwrappableException
 
GlobalReference<T> - Class in cern.entwined
This class enables aggregation of transactional references within non transactional entities.
GlobalReference(Memory<?>, T) - Constructor for class cern.entwined.GlobalReference
Creates an instance of GlobalReference using given memory and object.

H

hasCause(Throwable, Class<? extends Throwable>) - Static method in class cern.entwined.Utils
Walks the exception cause list and checks if any of them are of the give type.

I

inTransaction(Memory<T>) - Static method in class cern.entwined.STMUtils
Returns true if the current code is being executed within a transaction.
InvocationException - Exception in cern.entwined.exception
Generic exception that is used to wrap checked exceptions in user code.
InvocationException() - Constructor for exception cern.entwined.exception.InvocationException
 
InvocationException(String) - Constructor for exception cern.entwined.exception.InvocationException
 
InvocationException(String, Throwable) - Constructor for exception cern.entwined.exception.InvocationException
 
InvocationException(Throwable) - Constructor for exception cern.entwined.exception.InvocationException
 
isEmpty() - Method in interface cern.entwined.OpaqueMap
Returns true if this map contains no key-value mappings.
isEmpty() - Method in interface cern.entwined.OpaqueMultimap
Returns true if this map contains no key-value mappings.
isEmpty() - Method in class cern.entwined.TransactionalMap
 
isEmpty() - Method in class cern.entwined.TransactionalMultimap
isEmpty() - Method in class cern.entwined.TransactionalQueue
 
iterator() - Method in class cern.entwined.TransactionalQueue
This operation is not supported.

J

join(Iterable<T>, String) - Static method in class cern.entwined.Utils
Join string representation of the elements of the given collection separated with the given delimiter.

K

keySet() - Method in interface cern.entwined.OpaqueMap
Returns a Set view of the keys contained in this map.
keySet() - Method in interface cern.entwined.OpaqueMultimap
Returns a Set view of the keys contained in this map.
keySet() - Method in class cern.entwined.TransactionalMap
 
keySet() - Method in class cern.entwined.TransactionalMultimap

M

Memory<T extends SemiPersistent<T>> - Class in cern.entwined
Software transactional memory root class.
Memory(T) - Constructor for class cern.entwined.Memory
Creates transactional memory with given initial state.
MemoryException - Exception in cern.entwined.exception
Generic exception that may be thrown by the transactional memory management code.
MemoryException() - Constructor for exception cern.entwined.exception.MemoryException
 
MemoryException(String) - Constructor for exception cern.entwined.exception.MemoryException
 
MemoryException(String, Throwable) - Constructor for exception cern.entwined.exception.MemoryException
 
MemoryException(Throwable) - Constructor for exception cern.entwined.exception.MemoryException
 

N

NOT_EMPTY - Static variable in class cern.entwined.Utils
Predicate that accepts a string and returns true if given string is not null and is not composed of only 0 or many spaces.
NoTransactionException - Exception in cern.entwined.exception
Exception is thrown when a transactional data is attempted to be accessed outside of a transaction.
NoTransactionException() - Constructor for exception cern.entwined.exception.NoTransactionException
 
NoTransactionException(String) - Constructor for exception cern.entwined.exception.NoTransactionException
 
NoTransactionException(String, Throwable) - Constructor for exception cern.entwined.exception.NoTransactionException
 
NoTransactionException(Throwable) - Constructor for exception cern.entwined.exception.NoTransactionException
 
NUM_RETRIES - Static variable in class cern.entwined.Memory
Number of retries of a transaction in case of conflicts.

O

offer(E) - Method in class cern.entwined.TransactionalQueue
 
OpaqueMap<K,V> - Interface in cern.entwined
A map like interface to facilitate implementation of TransactionalMap.
OpaqueMultimap<K,V> - Interface in cern.entwined
A map like interface to facilitate implementation of TransactionalMap.

P

peek() - Method in class cern.entwined.TransactionalQueue
 
poll() - Method in class cern.entwined.TransactionalQueue
 
put(K, V) - Method in interface cern.entwined.OpaqueMap
Associates the specified value with the specified key in this map (optional operation).
put(K, V) - Method in interface cern.entwined.OpaqueMultimap
Associates the specified value with the specified key in this map (optional operation).
put(K, V) - Method in class cern.entwined.TransactionalMap
 
put(K, V) - Method in class cern.entwined.TransactionalMultimap
Adds the value to the entry with the given key.
putAll(Map<? extends K, ? extends V>) - Method in interface cern.entwined.OpaqueMap
Copies all of the mappings from the specified map to this map (optional operation).
putAll(Map<? extends K, ? extends Set<V>>) - Method in interface cern.entwined.OpaqueMultimap
Copies all of the mappings from the specified map to this map (optional operation).
putAll(Map<? extends K, ? extends V>) - Method in class cern.entwined.TransactionalMap
 
putAll(Map<? extends K, ? extends Set<V>>) - Method in class cern.entwined.TransactionalMultimap
Overrides the default behavior of the method by merging the immutable sets for the same key.
putAll(K, Collection<V>) - Method in class cern.entwined.TransactionalMultimap
Puts all the values in the collection with the given key.

R

Ref<T> - Interface in cern.entwined
A generic reference interface, can hold only one value at time.
reference(Memory<?>, GlobalReference<T>, T) - Static method in class cern.entwined.STMUtils
Either updates the GlobalReference and returns it or, if the source is null, creates a new GlobalReference with the given value and returns it.
remove(K) - Method in interface cern.entwined.OpaqueMap
Removes the mapping for a key from this map if it is present (optional operation).
remove(K) - Method in interface cern.entwined.OpaqueMultimap
Removes the mapping for a key from this map if it is present (optional operation).
remove(K) - Method in class cern.entwined.TransactionalMap
 
remove(K) - Method in class cern.entwined.TransactionalMultimap
Delegates to TransactionalMap.remove(Object) replacing the returned null value with an empty set.
remove(K, V) - Method in class cern.entwined.TransactionalMultimap
Removes the given value from the entry with the given key.
remove() - Method in class cern.entwined.TransactionalQueue
 
remove(Object) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
removeAll(Collection<?>) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
retainAll(Collection<?>) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
round(double, int) - Static method in class cern.entwined.Utils
Relaxes precision up to the given power of 2.
run(T) - Method in interface cern.entwined.Transaction
Implementation of this method must include in-transactional code and manipulations with shared memory.
run(T) - Method in class cern.entwined.TransactionAdapter
Implements the Transaction.run(Object) method by always returning true, to guarantee consequent invocation of Transaction.committed(Object).
runTransaction(Transaction<T>) - Method in class cern.entwined.Memory
Executes a transaction and calls the given transactional user code.

S

SemiPersistent<T> - Class in cern.entwined
The root to all the transactionally manged collections.
SemiPersistent() - Constructor for class cern.entwined.SemiPersistent
 
set(T) - Method in class cern.entwined.GlobalReference
Sets the globally referenced object.
setResult(V) - Method in class cern.entwined.TransactionClosure
Sets the result of the transaction execution.
setUnwrap(boolean) - Method in interface cern.entwined.exception.Unwrappable
Sets unwrap flag to true or false.
setUnwrap(boolean) - Method in exception cern.entwined.exception.UnwrappableException
 
size() - Method in interface cern.entwined.OpaqueMap
Returns the number of key-value mappings in this map.
size() - Method in interface cern.entwined.OpaqueMultimap
Returns the number of key-value mappings in this map.
size() - Method in class cern.entwined.TransactionalMap
 
size() - Method in class cern.entwined.TransactionalMultimap
size() - Method in class cern.entwined.TransactionalQueue
 
Snapshot<T extends Snapshot<T>> - Class in cern.entwined
A common abstract class for client specific implementations of transactional shared memory.
Snapshot(long) - Constructor for class cern.entwined.Snapshot
Creates a new Snapshot initializing its timestamp with the give value.
STMUtils - Class in cern.entwined
A set of methods aimed at facilitation of client's interactions with the transactional memory.
STMUtils() - Constructor for class cern.entwined.STMUtils
 

T

timestamp - Variable in class cern.entwined.Snapshot
Timestamp is incrementally generated from it previous value.
toArray() - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
toArray(T[]) - Method in class cern.entwined.TransactionalQueue
This operation is not supported.
Transaction<T> - Interface in cern.entwined
The transaction callback interface.
TransactionAdapter<T> - Class in cern.entwined
Empty implementation of Transaction interface.
TransactionAdapter() - Constructor for class cern.entwined.TransactionAdapter
 
TransactionalMap<K,V> - Class in cern.entwined
Implementation of a transactional map.
TransactionalMap() - Constructor for class cern.entwined.TransactionalMap
Constructs a new empty TransactionalMap.
TransactionalMap(Map<K, V>) - Constructor for class cern.entwined.TransactionalMap
Constructs new TransactionalMap initializing it with the given collection.
TransactionalMultimap<K,V> - Class in cern.entwined
The opaque (impossible to query for all the items or get the size of the collection) transactional multimap implementation.
TransactionalMultimap() - Constructor for class cern.entwined.TransactionalMultimap
Constructs a new empty TransactionalMultimap.
TransactionalQueue<E> - Class in cern.entwined
Transactional queue implementation.
TransactionalQueue() - Constructor for class cern.entwined.TransactionalQueue
Creates an empty TransactionalQueue.
TransactionalQueue(Collection<E>) - Constructor for class cern.entwined.TransactionalQueue
Creates a new TransactionalQueue initializing it with the given collection of elements.
TransactionalRef<T> - Class in cern.entwined
Transactional implementation of reference interface.
TransactionalRef() - Constructor for class cern.entwined.TransactionalRef
Constructs the reference object with null as value.
TransactionalRef(T) - Constructor for class cern.entwined.TransactionalRef
Constructs the reference object with the given value.
TransactionClosure<T,V> - Class in cern.entwined
An extension of TransactionAdapter with ability to return result of type V.
TransactionClosure() - Constructor for class cern.entwined.TransactionClosure
 

U

Unwrappable<T> - Interface in cern.entwined.exception
This interface must be implemented by exceptions that may be unwrapped by the UnwrappableException or OasisUnavailableCheckedException .
UnwrappableException - Exception in cern.entwined.exception
This is a general exception for the Oasis system
UnwrappableException() - Constructor for exception cern.entwined.exception.UnwrappableException
Creates an exception object with "No message" passed as exception message.
UnwrappableException(String) - Constructor for exception cern.entwined.exception.UnwrappableException
Creates an exception object with the given message.
UnwrappableException(String, Throwable) - Constructor for exception cern.entwined.exception.UnwrappableException
Creates an exception object with the given message and cause.
UnwrappableException(Throwable) - Constructor for exception cern.entwined.exception.UnwrappableException
Creates an exception object with the given cause.
update(CompositeCollection, boolean) - Method in class cern.entwined.CompositeCollection
Updates local changes and change logs using change logs of the arguments.
update(T, boolean) - Method in class cern.entwined.SemiPersistent
Updates local changes and change logs using change logs of the arguments.
update(TransactionalMap<K, V>, boolean) - Method in class cern.entwined.TransactionalMap
 
update(TransactionalMultimap<K, V>, boolean) - Method in class cern.entwined.TransactionalMultimap
 
update(TransactionalQueue<E>, boolean) - Method in class cern.entwined.TransactionalQueue
 
update(TransactionalRef<T>, boolean) - Method in class cern.entwined.TransactionalRef
 
Utils - Class in cern.entwined
Oasis wide facility methods.
Utils() - Constructor for class cern.entwined.Utils
 
A C D E F G H I J K M N O P R S T U 

Copyright © 2013 CERN, The European Organization for Nuclear Research. All Rights Reserved.