public final class DataStructuresProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static CacheDataStructuresConfigurationKey |
DATA_STRUCTURES_KEY |
ctx, log| Constructor and Description |
|---|
DataStructuresProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
IgniteAtomicLong |
atomicLong(String name,
long initVal,
boolean create)
Gets an atomic long from cache or creates one if it's not cached.
|
<T> IgniteAtomicReference<T> |
atomicReference(String name,
T initVal,
boolean create)
Gets an atomic reference from cache or creates one if it's not cached.
|
<T,S> IgniteAtomicStamped<T,S> |
atomicStamped(String name,
T initVal,
S initStamp,
boolean create)
Gets an atomic stamped from cache or creates one if it's not cached.
|
IgniteCountDownLatch |
countDownLatch(String name,
int cnt,
boolean autoDel,
boolean create)
Gets or creates count down latch.
|
void |
onKernalStart()
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
<K,V> void |
onTxCommitted(IgniteInternalTx tx)
Transaction committed callback for transaction manager.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
<T> IgniteQueue<T> |
queue(String name,
int cap,
CollectionConfiguration cfg)
Gets a queue from cache or creates one if it's not cached.
|
void |
removeAtomicLong(String name)
Removes atomic long from cache.
|
void |
removeAtomicReference(String name)
Removes atomic reference from cache.
|
void |
removeAtomicStamped(String name)
Removes atomic stamped from cache.
|
void |
removeCountDownLatch(String name)
Removes count down latch from cache.
|
void |
removeQueue(String name,
GridCacheContext cctx) |
void |
removeSequence(String name)
Removes sequence from cache.
|
void |
removeSet(String name,
GridCacheContext cctx) |
static <R> R |
retry(IgniteLogger log,
Callable<R> call) |
IgniteAtomicSequence |
sequence(String name,
long initVal,
boolean create)
Gets a sequence from cache or creates one if it's not cached.
|
<T> IgniteSet<T> |
set(String name,
CollectionConfiguration cfg)
Gets a set from cache or creates one if it's not cached.
|
assertParameter, collectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStop, start, stop, toString, validateNodepublic static final CacheDataStructuresConfigurationKey DATA_STRUCTURES_KEY
public DataStructuresProcessor(GridKernalContext ctx)
ctx - Context.public void onKernalStart()
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterpublic final IgniteAtomicSequence sequence(String name, long initVal, boolean create) throws IgniteCheckedException
name - Sequence name.initVal - Initial value for sequence. If sequence already cached, initVal will be ignored.create - If true sequence will be created in case it is not in cache.IgniteCheckedException - If loading failed.public final void removeSequence(String name) throws IgniteCheckedException
name - Sequence name.IgniteCheckedException - If removing failed.public final IgniteAtomicLong atomicLong(String name, long initVal, boolean create) throws IgniteCheckedException
name - Name of atomic long.initVal - Initial value for atomic long. If atomic long already cached, initVal
will be ignored.create - If true atomic long will be created in case it is not in cache.IgniteCheckedException - If loading failed.public final void removeAtomicLong(String name) throws IgniteCheckedException
name - Atomic long name.IgniteCheckedException - If removing failed.public final <T> IgniteAtomicReference<T> atomicReference(String name, T initVal, boolean create) throws IgniteCheckedException
name - Name of atomic reference.initVal - Initial value for atomic reference. If atomic reference already cached, initVal
will be ignored.create - If true atomic reference will be created in case it is not in cache.IgniteCheckedException - If loading failed.public final void removeAtomicReference(String name) throws IgniteCheckedException
name - Atomic reference name.IgniteCheckedException - If removing failed.public final <T,S> IgniteAtomicStamped<T,S> atomicStamped(String name, T initVal, S initStamp, boolean create) throws IgniteCheckedException
name - Name of atomic stamped.initVal - Initial value for atomic stamped. If atomic stamped already cached, initVal
will be ignored.initStamp - Initial stamp for atomic stamped. If atomic stamped already cached, initStamp
will be ignored.create - If true atomic stamped will be created in case it is not in cache.IgniteCheckedException - If loading failed.public final void removeAtomicStamped(String name) throws IgniteCheckedException
name - Atomic stamped name.IgniteCheckedException - If removing failed.public final <T> IgniteQueue<T> queue(String name, int cap, @Nullable CollectionConfiguration cfg) throws IgniteCheckedException
name - Name of queue.cap - Max size of queue.cfg - Non-null queue configuration if new queue should be created.IgniteCheckedException - If failed.public void removeQueue(String name, GridCacheContext cctx) throws IgniteCheckedException
name - Queue name.cctx - Queue cache context.IgniteCheckedException - If failed.public IgniteCountDownLatch countDownLatch(String name, int cnt, boolean autoDel, boolean create) throws IgniteCheckedException
name - Name of the latch.cnt - Initial count.autoDel - True to automatically delete latch from cache when
its count reaches zero.create - If true latch will be created in case it is not in cache,
if it is false all parameters except name are ignored.null if it is not found and
create is false.IgniteCheckedException - If operation failed.public void removeCountDownLatch(String name) throws IgniteCheckedException
name - Name of the latch.IgniteCheckedException - If operation failed.public <K,V> void onTxCommitted(IgniteInternalTx tx)
tx - Committed transaction.@Nullable public <T> IgniteSet<T> set(String name, @Nullable CollectionConfiguration cfg) throws IgniteCheckedException
name - Set name.cfg - Set configuration if new set should be created.IgniteCheckedException - If failed.public void removeSet(String name, GridCacheContext cctx) throws IgniteCheckedException
name - Set name.cctx - Set cache context.IgniteCheckedException - If failed.public static <R> R retry(IgniteLogger log, Callable<R> call) throws IgniteCheckedException
log - Logger.call - Callable.IgniteCheckedException - If all retries failed.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015