@GridToStringExclude public class GridKernalContextImpl extends Object implements GridKernalContext, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
affExecSvc |
protected IgniteStripedThreadPoolExecutor |
callbackExecSvc |
protected ExecutorService |
execSvc |
protected ExecutorService |
idxExecSvc |
protected ExecutorService |
qryExecSvc |
protected ExecutorService |
rebalanceExecSvc |
protected IgniteStripedThreadPoolExecutor |
rebalanceStripedExecSvc |
protected ExecutorService |
restExecSvc |
protected ExecutorService |
schemaExecSvc |
protected StripedExecutor |
stripedExecSvc |
protected ExecutorService |
svcExecSvc |
protected ExecutorService |
sysExecSvc |
| Modifier | Constructor and Description |
|---|---|
|
GridKernalContextImpl()
No-arg constructor is required by externalization.
|
protected |
GridKernalContextImpl(GridLoggerProxy log,
IgniteEx grid,
IgniteConfiguration cfg,
GridKernalGateway gw,
ExecutorService utilityCachePool,
ExecutorService execSvc,
ExecutorService svcExecSvc,
ExecutorService sysExecSvc,
StripedExecutor stripedExecSvc,
ExecutorService p2pExecSvc,
ExecutorService mgmtExecSvc,
ExecutorService igfsExecSvc,
StripedExecutor dataStreamExecSvc,
ExecutorService restExecSvc,
ExecutorService affExecSvc,
@Nullable ExecutorService idxExecSvc,
IgniteStripedThreadPoolExecutor callbackExecSvc,
ExecutorService qryExecSvc,
ExecutorService schemaExecSvc,
ExecutorService rebalanceExecSvc,
IgniteStripedThreadPoolExecutor rebalanceStripedExecSvc,
@Nullable Map<String,? extends ExecutorService> customExecSvcs,
List<PluginProvider> plugins,
IgnitePredicate<String> clsFilter,
WorkersRegistry workerRegistry,
Thread.UncaughtExceptionHandler hnd,
LongJVMPauseDetector pauseDetector)
Creates new kernal context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(GridComponent comp) |
void |
add(GridComponent comp,
boolean addToList) |
void |
addHelper(Object helper) |
Object |
addNodeAttribute(String key,
Object val)
Add attribute to node attributes.
|
GridAffinityProcessor |
affinity()
Gets cache data affinity processor.
|
IgniteStripedThreadPoolExecutor |
asyncCallbackPool()
Gets async callback pool.
|
IgniteAuthenticationProcessor |
authentication()
Gets authentication processor.
|
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.
|
CompressionProcessor |
compress() |
IgniteConfiguration |
config()
Gets grid configuration.
|
GridContinuousProcessor |
continuous()
Gets event continuous processor.
|
MvccProcessor |
coordinators() |
<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.
|
DiagnosticProcessor |
diagnostic()
Gets diagnostic processor.
|
GridDiscoveryManager |
discovery()
Gets discovery manager.
|
DistributedConfigurationProcessor |
distributedConfiguration()
Gets distributed configuration processor.
|
DistributedMetaStorage |
distributedMetastorage()
Gets global metastorage.
|
GridEncryptionManager |
encryption()
Gets encryption manager.
|
GridEventStorageManager |
event()
Gets event storage manager.
|
IgniteExceptionRegistry |
exceptionRegistry()
Gets exception registry.
|
GridFailoverManager |
failover()
Gets failover manager.
|
FailureProcessor |
failure()
Gets failure processor.
|
GridKernalGateway |
gateway()
Gets kernal gateway.
|
ExecutorService |
getAffinityExecutorService()
Get affinity executor service.
|
StripedExecutor |
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.
|
@Nullable 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 |
getRebalanceExecutorService()
Executor service that is in charge of processing rebalance 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).
|
IgniteStripedThreadPoolExecutor |
getStripedRebalanceExecutorService()
Executor service that is in charge of processing unorderable rebalance messages.
|
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.
|
GridInternalSubscriptionProcessor |
internalSubscriptionProcessor() |
boolean |
invalid()
Checks whether this node is invalid due to a critical error or not.
|
GridIoManager |
io()
Gets communication manager.
|
boolean |
isDaemon()
Checks whether this node is daemon.
|
boolean |
isStopping() |
Iterator<GridComponent> |
iterator() |
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.
|
LongJVMPauseDetector |
longJvmPauseDetector()
Gets long JVM pause detector.
|
GridMarshallerMappingProcessor |
mapping()
Gets grid marshaller mapping processor.
|
MarshallerContextImpl |
marshallerContext()
Gets marshaller context.
|
GridMetricManager |
metric()
Gets metric manager.
|
Object |
nodeAttribute(String key)
Get node attribute by name.
|
Map<String,Object> |
nodeAttributes() |
PdsFoldersResolver |
pdsFolderResolver() |
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.
|
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on unmarshalling.
|
boolean |
recoveryMode() |
void |
recoveryMode(boolean recoveryMode) |
GridResourceProcessor |
resource()
Gets resource processor.
|
IgniteRestProcessor |
rest()
Gets REST processor.
|
IgniteScheduleProcessorAdapter |
schedule()
Gets schedule processor.
|
IgniteSecurity |
security()
Gets instance of
IgniteSecurity. |
GridSegmentationProcessor |
segmentation()
Gets segmentation processor.
|
boolean |
segmented()
Checks whether this node detected its segmentation from the rest of the grid.
|
ServiceProcessorAdapter |
service()
Gets service processor.
|
GridTaskSessionProcessor |
session()
Gets task session processor.
|
ClientListenerProcessor |
sqlListener()
Gets SQL listener processor.
|
GridClusterStateProcessor |
state()
Gets cluster state processor.
|
GridSystemViewManager |
systemView()
Gets system view manager.
|
GridTaskProcessor |
task()
Gets task processor.
|
GridTimeoutProcessor |
timeout()
Gets timeout processor.
|
String |
toString() |
Thread.UncaughtExceptionHandler |
uncaughtExceptionHandler() |
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.
|
WorkersRegistry |
workersRegistry()
Gets workers registry.
|
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliterator@GridToStringExclude protected ExecutorService execSvc
@GridToStringExclude protected ExecutorService svcExecSvc
@GridToStringExclude protected ExecutorService sysExecSvc
@GridToStringExclude protected StripedExecutor stripedExecSvc
@GridToStringExclude protected ExecutorService restExecSvc
@GridToStringExclude protected ExecutorService affExecSvc
@GridToStringExclude protected ExecutorService idxExecSvc
@GridToStringExclude protected IgniteStripedThreadPoolExecutor callbackExecSvc
@GridToStringExclude protected ExecutorService qryExecSvc
@GridToStringExclude protected ExecutorService schemaExecSvc
@GridToStringExclude protected ExecutorService rebalanceExecSvc
@GridToStringExclude protected IgniteStripedThreadPoolExecutor rebalanceStripedExecSvc
public GridKernalContextImpl()
protected GridKernalContextImpl(GridLoggerProxy log, IgniteEx grid, IgniteConfiguration cfg, GridKernalGateway gw, ExecutorService utilityCachePool, ExecutorService execSvc, ExecutorService svcExecSvc, ExecutorService sysExecSvc, StripedExecutor stripedExecSvc, ExecutorService p2pExecSvc, ExecutorService mgmtExecSvc, ExecutorService igfsExecSvc, StripedExecutor dataStreamExecSvc, ExecutorService restExecSvc, ExecutorService affExecSvc, @Nullable @Nullable ExecutorService idxExecSvc, IgniteStripedThreadPoolExecutor callbackExecSvc, ExecutorService qryExecSvc, ExecutorService schemaExecSvc, ExecutorService rebalanceExecSvc, IgniteStripedThreadPoolExecutor rebalanceStripedExecSvc, @Nullable @Nullable Map<String,? extends ExecutorService> customExecSvcs, List<PluginProvider> plugins, IgnitePredicate<String> clsFilter, WorkersRegistry workerRegistry, Thread.UncaughtExceptionHandler hnd, LongJVMPauseDetector pauseDetector)
log - Logger.grid - Grid instance managed by kernal.cfg - Grid configuration.gw - Kernal gateway.utilityCachePool - Utility cache pool.execSvc - Public executor service.sysExecSvc - System executor service.stripedExecSvc - Striped executor.p2pExecSvc - P2P executor service.mgmtExecSvc - Management executor service.igfsExecSvc - IGFS executor service.dataStreamExecSvc - data stream executor service.restExecSvc - REST executor service.affExecSvc - Affinity executor service.idxExecSvc - Indexing executor service.callbackExecSvc - Callback executor service.qryExecSvc - Query executor service.schemaExecSvc - Schema executor service.rebalanceExecSvc - Rebalance excutor service.rebalanceStripedExecSvc - Striped rebalance excutor service.customExecSvcs - Custom named executors.plugins - Plugin providers.workerRegistry - Worker registry.hnd - Default uncaught exception handler used by thread pools.pauseDetector - Long JVM pause detector.public Iterator<GridComponent> iterator()
iterator in interface Iterable<GridComponent>public List<GridComponent> components()
components in interface GridKernalContextpublic void add(GridComponent comp)
comp - Manager to add.public void add(GridComponent comp, boolean addToList)
comp - Manager to add.addToList - If true component is added to components list.public void addHelper(Object helper)
helper - Helper to add.public boolean isStopping()
isStopping in interface GridKernalContextTrue if grid is in the process of stopping.public UUID localNodeId()
localNodeId in interface GridKernalContextpublic String igniteInstanceName()
igniteInstanceName in interface GridKernalContextpublic GridKernalGateway gateway()
gateway in interface GridKernalContextpublic IgniteEx grid()
grid in interface GridKernalContextpublic IgniteConfiguration config()
config in interface GridKernalContextpublic GridTaskProcessor task()
task in interface GridKernalContextpublic GridJobProcessor job()
job in interface GridKernalContextpublic GridTimeoutProcessor timeout()
timeout in interface GridKernalContextpublic GridResourceProcessor resource()
resource in interface GridKernalContextpublic GridJobMetricsProcessor jobMetric()
jobMetric in interface GridKernalContextpublic GridMetricManager metric()
metric in interface GridKernalContextpublic GridSystemViewManager systemView()
systemView in interface GridKernalContextpublic GridCacheProcessor cache()
cache in interface GridKernalContextpublic GridClusterStateProcessor state()
state in interface GridKernalContextpublic DistributedMetaStorage distributedMetastorage()
distributedMetastorage in interface GridKernalContextpublic DistributedConfigurationProcessor distributedConfiguration()
distributedConfiguration in interface GridKernalContextpublic GridTaskSessionProcessor session()
session in interface GridKernalContextpublic GridClosureProcessor closure()
closure in interface GridKernalContextpublic ServiceProcessorAdapter service()
service in interface GridKernalContextpublic GridPortProcessor ports()
ports in interface GridKernalContextpublic IgniteScheduleProcessorAdapter schedule()
schedule in interface GridKernalContextpublic GridDeploymentManager deploy()
deploy in interface GridKernalContextpublic GridIoManager io()
io in interface GridKernalContextpublic GridDiscoveryManager discovery()
discovery in interface GridKernalContextpublic GridCheckpointManager checkpoint()
checkpoint in interface GridKernalContextpublic GridEventStorageManager event()
event in interface GridKernalContextpublic GridFailoverManager failover()
failover in interface GridKernalContextpublic GridCollisionManager collision()
collision in interface GridKernalContextpublic IgniteSecurity security()
IgniteSecurity.security in interface GridKernalContextpublic GridLoadBalancerManager loadBalancing()
loadBalancing in interface GridKernalContextpublic GridIndexingManager indexing()
indexing in interface GridKernalContextpublic GridEncryptionManager encryption()
encryption in interface GridKernalContextpublic WorkersRegistry workersRegistry()
workersRegistry in interface GridKernalContextpublic GridAffinityProcessor affinity()
affinity in interface GridKernalContextpublic IgniteRestProcessor rest()
rest in interface GridKernalContextpublic GridSegmentationProcessor segmentation()
segmentation in interface GridKernalContextpublic <K,V> DataStreamProcessor<K,V> dataStream()
dataStream in interface GridKernalContextpublic IgfsProcessorAdapter igfs()
igfs in interface GridKernalContextpublic IgfsHelper igfsHelper()
igfsHelper in interface GridKernalContextpublic HadoopHelper hadoopHelper()
hadoopHelper in interface GridKernalContextpublic GridContinuousProcessor continuous()
continuous in interface GridKernalContextpublic HadoopProcessorAdapter hadoop()
hadoop in interface GridKernalContextpublic PoolProcessor pools()
pools in interface GridKernalContextpublic GridMarshallerMappingProcessor mapping()
mapping in interface GridKernalContextpublic ExecutorService utilityCachePool()
utilityCachePool in interface GridKernalContextpublic IgniteStripedThreadPoolExecutor asyncCallbackPool()
asyncCallbackPool in interface GridKernalContextpublic IgniteCacheObjectProcessor cacheObjects()
cacheObjects in interface GridKernalContextpublic GridQueryProcessor query()
query in interface GridKernalContextpublic ClientListenerProcessor sqlListener()
sqlListener in interface GridKernalContextpublic DataStructuresProcessor dataStructures()
dataStructures in interface GridKernalContextpublic MvccProcessor coordinators()
coordinators in interface GridKernalContextpublic IgniteAuthenticationProcessor authentication()
authentication in interface GridKernalContextpublic IgniteLogger log(String ctgr)
log in interface GridKernalContextctgr - Category.public IgniteLogger log(Class<?> cls)
log in interface GridKernalContextcls - Class to get logger for.public GridPerformanceSuggestions performance()
performance in interface GridKernalContextpublic LongJVMPauseDetector longJvmPauseDetector()
longJvmPauseDetector in interface GridKernalContextpublic DiagnosticProcessor diagnostic()
diagnostic in interface GridKernalContextpublic void printMemoryStats()
printMemoryStats in interface GridKernalContextpublic boolean isDaemon()
isDaemon in interface GridKernalContextTrue if this node is daemon, false otherwise.public 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.userVersion in interface GridKernalContextldr - Class loader.public PluginProvider pluginProvider(String name) throws PluginNotFoundException
pluginProvider in interface GridKernalContextname - Plugin name.PluginNotFoundException - If plugin provider for the given name was not found.@Nullable public <T> T createComponent(Class<T> cls)
createComponent in interface GridKernalContextcls - Component class.public IgnitePluginProcessor plugins()
plugins in interface GridKernalContextpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionprotected Object readResolve() throws ObjectStreamException
ObjectStreamException - Thrown in case of unmarshalling error.public ExecutorService getExecutorService()
getExecutorService in interface GridKernalContextpublic ExecutorService getServiceExecutorService()
getServiceExecutorService in interface GridKernalContextpublic ExecutorService getSystemExecutorService()
getSystemExecutorService in interface GridKernalContextpublic StripedExecutor getStripedExecutorService()
getStripedExecutorService in interface GridKernalContextpublic ExecutorService getManagementExecutorService()
GridJobs.getManagementExecutorService in interface GridKernalContextpublic ExecutorService getPeerClassLoadingExecutorService()
getPeerClassLoadingExecutorService in interface GridKernalContextpublic ExecutorService getIgfsExecutorService()
getIgfsExecutorService in interface GridKernalContextpublic StripedExecutor getDataStreamerExecutorService()
getDataStreamerExecutorService in interface GridKernalContextpublic ExecutorService getRestExecutorService()
getRestExecutorService in interface GridKernalContextpublic ExecutorService getAffinityExecutorService()
getAffinityExecutorService in interface GridKernalContext@Nullable public @Nullable ExecutorService getIndexingExecutorService()
getIndexingExecutorService in interface GridKernalContextpublic ExecutorService getQueryExecutorService()
getQueryExecutorService in interface GridKernalContextpublic ExecutorService getSchemaExecutorService()
getSchemaExecutorService in interface GridKernalContextpublic ExecutorService getRebalanceExecutorService()
getRebalanceExecutorService in interface GridKernalContextpublic IgniteStripedThreadPoolExecutor getStripedRebalanceExecutorService()
getStripedRebalanceExecutorService in interface GridKernalContextpublic Map<String,? extends ExecutorService> customExecutors()
customExecutors in interface GridKernalContextpublic IgniteExceptionRegistry exceptionRegistry()
exceptionRegistry in interface GridKernalContextpublic Object nodeAttribute(String key)
nodeAttribute in interface GridKernalContextkey - Attribute name.public boolean hasNodeAttribute(String key)
hasNodeAttribute in interface GridKernalContextkey - Attribute name.true If node has attribute with specified name.public Object addNodeAttribute(String key, Object val)
addNodeAttribute in interface GridKernalContextkey - Attribute name.val - Attribute value.public Map<String,Object> nodeAttributes()
nodeAttributes in interface GridKernalContextpublic ClusterProcessor cluster()
cluster in interface GridKernalContextpublic MarshallerContextImpl marshallerContext()
marshallerContext in interface GridKernalContextpublic boolean clientNode()
clientNode in interface GridKernalContextTrue if local node is client node (has flag IgniteConfiguration.isClientMode() set).public boolean clientDisconnected()
clientDisconnected in interface GridKernalContextTrue if local node in disconnected state.public PlatformProcessor platform()
platform in interface GridKernalContextpublic GridInternalSubscriptionProcessor internalSubscriptionProcessor()
internalSubscriptionProcessor in interface GridKernalContextpublic PdsFoldersResolver pdsFolderResolver()
pdsFolderResolver in interface GridKernalContextpublic boolean invalid()
invalid in interface GridKernalContextTrue if this node is invalid, false otherwise.public boolean segmented()
segmented in interface GridKernalContextTrue if this node has segmented, false otherwise.public FailureProcessor failure()
failure in interface GridKernalContextpublic Thread.UncaughtExceptionHandler uncaughtExceptionHandler()
uncaughtExceptionHandler in interface GridKernalContextpublic CompressionProcessor compress()
compress in interface GridKernalContextpublic boolean recoveryMode()
recoveryMode in interface GridKernalContextTrue if node is in recovery mode (before join to topology).public void recoveryMode(boolean recoveryMode)
recoveryMode - Recovery mode.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020