@GridToStringExclude public interface GridKernalContext extends Iterable<GridComponent>
Modifier and Type | Method and Description |
---|---|
Object |
addNodeAttribute(String key,
Object val)
Add attribute to node attributes.
|
GridAffinityProcessor |
affinity()
Gets cache data affinity processor.
|
IgniteStripedThreadPoolExecutor |
asyncCallbackPool()
Gets async callback pool.
|
GridCacheProcessor |
cache()
Gets caches processor.
|
IgniteCacheObjectProcessor |
cacheObjects()
Gets cache object processor.
|
GridCheckpointManager |
checkpoint()
Gets checkpoint manager.
|
boolean |
clientDisconnected() |
boolean |
clientNode() |
GridClosureProcessor |
closure()
Gets closure processor.
|
ClusterProcessor |
cluster()
Gets Cluster processor.
|
GridCollisionManager |
collision()
Gets collision manager.
|
List<GridComponent> |
components()
Gets list of all grid components in the order they were added.
|
IgniteConfiguration |
config()
Gets grid configuration.
|
GridContinuousProcessor |
continuous()
Gets event continuous processor.
|
<T> T |
createComponent(Class<T> cls)
Creates optional component.
|
Map<String,? extends ExecutorService> |
customExecutors()
Executor services that is in charge of processing user compute task.
|
<K,V> DataStreamProcessor<K,V> |
dataStream()
Gets data streamer processor.
|
DataStructuresProcessor |
dataStructures()
Gets data structures processor.
|
GridDeploymentManager |
deploy()
Gets deployment manager.
|
GridDiscoveryManager |
discovery()
Gets discovery manager.
|
GridEventStorageManager |
event()
Gets event storage manager.
|
IgniteExceptionRegistry |
exceptionRegistry()
Gets exception registry.
|
GridFailoverManager |
failover()
Gets failover manager.
|
GridKernalGateway |
gateway()
Gets kernal gateway.
|
ExecutorService |
getAffinityExecutorService()
Get affinity executor service.
|
ExecutorService |
getDataStreamerExecutorService()
Executor service that is in charge of processing data stream messages.
|
ExecutorService |
getExecutorService() |
ExecutorService |
getIgfsExecutorService()
Executor service that is in charge of processing outgoing IGFS messages.
|
ExecutorService |
getIndexingExecutorService()
Get indexing executor service.
|
ExecutorService |
getManagementExecutorService()
Executor service that is in charge of processing internal and Visor
GridJobs . |
ExecutorService |
getPeerClassLoadingExecutorService() |
ExecutorService |
getQueryExecutorService()
Executor service that is in charge of processing query messages.
|
ExecutorService |
getRestExecutorService()
Should return an instance of fully configured thread pool to be used for
processing of client messages (REST requests).
|
ExecutorService |
getSchemaExecutorService()
Executor service that is in charge of processing schema change messages.
|
ExecutorService |
getServiceExecutorService()
Executor service that is in charge of processing service proxy invocations.
|
StripedExecutor |
getStripedExecutorService()
Executor service that is in charge of processing internal system messages
in stripes (dedicated threads).
|
ExecutorService |
getSystemExecutorService()
Executor service that is in charge of processing internal system messages.
|
IgniteEx |
grid()
Gets grid instance managed by kernal.
|
HadoopProcessorAdapter |
hadoop()
Gets Hadoop processor.
|
HadoopHelper |
hadoopHelper()
Gets Hadoop helper.
|
boolean |
hasNodeAttribute(String key)
Check if node has specified attribute.
|
IgfsProcessorAdapter |
igfs()
Gets file system processor.
|
IgfsHelper |
igfsHelper()
Gets IGFS utils processor.
|
String |
igniteInstanceName()
Gets Ignite instance name.
|
GridIndexingManager |
indexing()
Gets indexing manager.
|
GridIoManager |
io()
Gets communication manager.
|
boolean |
isDaemon()
Checks whether this node is daemon.
|
boolean |
isStopping() |
GridJobProcessor |
job()
Gets job processor.
|
GridJobMetricsProcessor |
jobMetric()
Gets job metric processor.
|
GridLoadBalancerManager |
loadBalancing()
Gets load balancing manager.
|
UUID |
localNodeId()
Gets local node ID.
|
IgniteLogger |
log(Class<?> cls)
Gets logger for given class.
|
IgniteLogger |
log(String ctgr)
Gets logger for given category.
|
GridMarshallerMappingProcessor |
mapping()
Gets grid marshaller mapping processor.
|
void |
markSegmented()
Sets segmented flag to
true when node is stopped due to segmentation issues. |
MarshallerContextImpl |
marshallerContext()
Gets marshaller context.
|
Object |
nodeAttribute(String key)
Get node attribute by name.
|
Map<String,Object> |
nodeAttributes() |
OdbcProcessor |
odbc()
Gets ODBC processor.
|
GridPerformanceSuggestions |
performance() |
PlatformProcessor |
platform() |
PluginProvider |
pluginProvider(String name) |
IgnitePluginProcessor |
plugins() |
PoolProcessor |
pools()
Gets pool processor.
|
GridPortProcessor |
ports()
Gets port processor.
|
void |
printMemoryStats()
Print grid kernal memory stats (sizes of internal structures, etc.).
|
GridQueryProcessor |
query()
Gets query processor.
|
GridResourceProcessor |
resource()
Gets resource processor.
|
GridRestProcessor |
rest()
Gets REST processor.
|
IgniteScheduleProcessorAdapter |
schedule()
Gets schedule processor.
|
GridSecurityProcessor |
security()
Gets authentication processor.
|
GridSegmentationProcessor |
segmentation()
Gets segmentation processor.
|
boolean |
segmented()
Gets segmented flag.
|
GridServiceProcessor |
service()
Gets service processor.
|
GridTaskSessionProcessor |
session()
Gets task session processor.
|
GridClusterStateProcessor |
state()
Gets cluster state processor.
|
GridTaskProcessor |
task()
Gets task processor.
|
GridTimeoutProcessor |
timeout()
Gets timeout processor.
|
String |
userVersion(ClassLoader ldr)
Gets user version for given class loader by checking
META-INF/ignite.xml file for userVersion attribute. |
ExecutorService |
utilityCachePool()
Gets utility cache pool.
|
List<GridComponent> components()
UUID localNodeId()
String igniteInstanceName()
IgniteLogger log(String ctgr)
ctgr
- Category.IgniteLogger log(Class<?> cls)
cls
- Class to get logger for.boolean isStopping()
True
if grid is in the process of stopping.GridKernalGateway gateway()
IgniteEx grid()
IgniteConfiguration config()
GridTaskProcessor task()
GridAffinityProcessor affinity()
GridJobProcessor job()
GridTimeoutProcessor timeout()
GridResourceProcessor resource()
GridJobMetricsProcessor jobMetric()
GridCacheProcessor cache()
GridClusterStateProcessor state()
GridTaskSessionProcessor session()
GridClosureProcessor closure()
GridServiceProcessor service()
GridPortProcessor ports()
IgniteScheduleProcessorAdapter schedule()
GridRestProcessor rest()
GridSegmentationProcessor segmentation()
<K,V> DataStreamProcessor<K,V> dataStream()
IgfsProcessorAdapter igfs()
IgfsHelper igfsHelper()
GridContinuousProcessor continuous()
HadoopProcessorAdapter hadoop()
PoolProcessor pools()
GridMarshallerMappingProcessor mapping()
HadoopHelper hadoopHelper()
ExecutorService utilityCachePool()
IgniteStripedThreadPoolExecutor asyncCallbackPool()
IgniteCacheObjectProcessor cacheObjects()
GridQueryProcessor query()
OdbcProcessor odbc()
IgnitePluginProcessor plugins()
GridDeploymentManager deploy()
GridIoManager io()
GridDiscoveryManager discovery()
GridCheckpointManager checkpoint()
GridEventStorageManager event()
GridFailoverManager failover()
GridCollisionManager collision()
GridSecurityProcessor security()
GridLoadBalancerManager loadBalancing()
GridIndexingManager indexing()
DataStructuresProcessor dataStructures()
void markSegmented()
true
when node is stopped due to segmentation issues.boolean segmented()
True
if network is currently segmented, false
otherwise.void printMemoryStats()
boolean isDaemon()
True
if this node is daemon, false
otherwise.GridPerformanceSuggestions performance()
String userVersion(ClassLoader ldr)
META-INF/ignite.xml
file for userVersion
attribute. If
ignite.xml
file is not found, or user version is not specified there,
then default version (empty string) is returned.ldr
- Class loader.PluginProvider pluginProvider(String name) throws PluginNotFoundException
name
- Plugin name.PluginNotFoundException
- If plugin provider for the given name was not found.<T> T createComponent(Class<T> cls)
cls
- Component class.ExecutorService getExecutorService()
ExecutorService getServiceExecutorService()
ExecutorService getSystemExecutorService()
StripedExecutor getStripedExecutorService()
ExecutorService getManagementExecutorService()
GridJobs
.ExecutorService getPeerClassLoadingExecutorService()
ExecutorService getIgfsExecutorService()
ExecutorService getDataStreamerExecutorService()
ExecutorService getRestExecutorService()
ExecutorService getAffinityExecutorService()
@Nullable ExecutorService getIndexingExecutorService()
ExecutorService getQueryExecutorService()
@Nullable Map<String,? extends ExecutorService> customExecutors()
ExecutorService getSchemaExecutorService()
IgniteExceptionRegistry exceptionRegistry()
Object nodeAttribute(String key)
key
- Attribute name.boolean hasNodeAttribute(String key)
key
- Attribute name.true
If node has attribute with specified name.Object addNodeAttribute(String key, Object val)
key
- Attribute name.val
- Attribute value.ClusterProcessor cluster()
MarshallerContextImpl marshallerContext()
boolean clientNode()
True
if local node is client node (has flag IgniteConfiguration.isClientMode()
set).boolean clientDisconnected()
True
if local node in disconnected state.PlatformProcessor platform()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017