public class GridIndexingManager extends GridManagerAdapter<IndexingSpi>
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridIndexingManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onKernalStop0(boolean cancel) |
void |
onSwap(String spaceName,
Object key)
Will be called when entry for key will be swapped.
|
void |
onUnswap(String spaceName,
Object key,
Object val)
Will be called when entry for key will be unswapped.
|
IgniteSpiCloseableIterator<?> |
query(String space,
Collection<Object> params,
IndexingQueryFilter filters) |
void |
remove(String space,
Object key) |
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
<K,V> void |
store(String space,
K key,
V val,
long expirationTime)
Writes key-value pair to index.
|
assertParameter, collectDiscoveryData, discoveryDataType, enabled, getSpi, getSpi, getSpis, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onDiscoveryDataReceived, onKernalStart, onKernalStart0, onKernalStop, onReconnected, printMemoryStats, startInfo, startSpi, stopInfo, stopSpi, toString, validateNodepublic GridIndexingManager(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
GridComponentIgniteCheckedException - Thrown in case of any errors.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridManagerAdapter<IndexingSpi>cancel - Cancel flag.public void stop(boolean cancel)
throws IgniteCheckedException
GridComponentcancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public <K,V> void store(String space, K key, V val, long expirationTime) throws IgniteCheckedException
space - Space.key - Key.val - Value.expirationTime - Expiration time or 0 if never expires.IgniteCheckedException - In case of error.public void remove(String space, Object key) throws IgniteCheckedException
space - Space.key - Key.IgniteCheckedException - Thrown in case of any errors.public IgniteSpiCloseableIterator<?> query(String space, Collection<Object> params, IndexingQueryFilter filters) throws IgniteCheckedException
space - Space.params - Parameters collection.filters - Filters.IgniteCheckedException - If failed.public void onSwap(String spaceName, Object key) throws IgniteSpiException
spaceName - Space name.key - key.IgniteSpiException - If failed.public void onUnswap(String spaceName, Object key, Object val) throws IgniteSpiException
spaceName - Space name.key - Key.val - Value.IgniteSpiException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015