Interface Ignite

Main entry-point for all Ignite APIs.
You can obtain an instance of Ignite through Ignition.ignite(),
or for named grids you can use Ignition.ignite(String). Note that you
can have multiple instances of Ignite running in the same VM by giving
each instance a different name.

log

configuration

NOTE:
SPIs obtains through this method should never be used directly. SPIs provide
internal view on the subsystem and is used internally by Ignite kernal. In rare use cases when
access to a specific implementation of this SPI is required - an instance of this SPI can be obtained
via this method to check its configuration properties or call other non-SPI
methods.

executorService

Creates a new ExecutorService which will execute all submitted
Callable and Runnable jobs on all cluster nodes.
This essentially creates a Distributed Thread Pool that can
be used as a replacement for local thread pools.

Returns:

Grid-enabled ExecutorService.

executorService

Creates a new ExecutorService which will execute all submitted
Callable and Runnable jobs on nodes in the specified cluster group.
This essentially creates a Distributed Thread Pool that can be used as a
replacement for local thread pools.

createCaches

If local node is an affinity node, this method will return the instance of started caches.
Otherwise, it will create a client caches on local node.

If for one of configurations a cache with the same name already exists in the grid, an exception will be thrown regardless
whether the given configuration matches the configuration of the existing cache or not.

Parameters:

cacheCfgs - Collection of cache configuration to use.

Returns:

Collection of instances of started caches.

Throws:

javax.cache.CacheException - If one of created caches exists or other error occurs.

transactions

dataStreamer

Gets a new instance of data streamer associated with given cache name. Data streamer
is responsible for loading external data into in-memory data grid. For more information
refer to IgniteDataStreamer documentation.

semaphore

Gets or creates semaphore. If semaphore is not found in cache and create flag
is true, it is created using provided name and count parameter.

Parameters:

name - Name of the semaphore.

cnt - Count for new semaphore creation. Ignored if create flag is false.

failoverSafe - True to create failover safe semaphore which means that
if any node leaves topology permits already acquired by that node are silently released
and become available for alive nodes to acquire. If flag is false then
all threads waiting for available permits get interrupted.

create - Boolean flag indicating whether data structure should be created if does not exist.

reentrantLock

Gets or creates reentrant lock. If reentrant lock is not found in cache and create flag
is true, it is created using provided name.

Parameters:

name - Name of the lock.

failoverSafe - True to create failover safe lock which means that
if any node leaves topology, all locks already acquired by that node are silently released
and become available for other nodes to acquire. If flag is false then
all threads on other nodes waiting to acquire lock are interrupted.

fair - If True, fair lock will be created.

create - Boolean flag indicating whether data structure should be created if does not exist.

queue

Will get a named queue from cache and create one if it has not been created yet and cfg is not
null.
If queue is present already, queue properties will not be changed. Use
collocation for CacheMode.PARTITIONED caches if you have lots of relatively
small queues as it will make fetching, querying, and iteration a lot faster. If you have
few very large queues, then you should consider turning off collocation as they simply
may not fit in a single node's memory.

persistentStoreMetrics

dataRegionMetrics

Returns a collection of DataRegionMetrics that reflects page memory usage on this Apache Ignite node
instance.
Returns the collection that contains the latest snapshots for each memory region
configured with configuration on this Ignite node instance.