public class StandaloneGridKernalContext extends Object implements GridKernalContext
GridComponent.stop(boolean)| Constructor and Description |
|---|
StandaloneGridKernalContext(IgniteLogger log,
@Nullable File binaryMetadataFileStoreDir,
@Nullable File marshallerMappingFileStoreDir) |
| 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.
|
ExecutorService |
buildIndexExecutorService()
Return Thread pool for create/rebuild indexes.
|
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.
|
@Nullable 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.
|
IgniteDefragmentation |
defragmentation()
Gets defragmentation manager.
|
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.
|
DurableBackgroundTasksProcessor |
durableBackgroundTask() |
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.
|
Executor |
getAsyncContinuationExecutor()
Executor that is in charge of processing user async continuations.
|
StripedExecutor |
getDataStreamerExecutorService()
Executor service that is in charge of processing data stream messages.
|
ExecutorService |
getExecutorService() |
@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.
|
boolean |
hasNodeAttribute(String key)
Check if node has specified attribute.
|
String |
igniteInstanceName()
Gets Ignite instance name.
|
GridIndexingManager |
indexing()
Gets indexing manager.
|
IndexProcessor |
indexProcessor()
Indexes processor.
|
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() |
@NotNull 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.
|
MaintenanceRegistry |
maintenanceRegistry()
Gets maintenance registry.
|
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() |
PerformanceStatisticsProcessor |
performanceStatistics()
Gets Performance statistics processor.
|
PlatformProcessor |
platform() |
PluginProvider |
pluginProvider(String name) |
IgnitePluginProcessor |
plugins() |
PoolProcessor |
pools()
Gets pool processor.
|
GridPortProcessor |
ports()
Gets port processor.
|
protected IgniteConfiguration |
prepareIgniteConfiguration() |
void |
printMemoryStats()
Print grid kernal memory stats (sizes of internal structures, etc.).
|
GridQueryProcessor |
query()
Gets query processor.
|
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.
|
GridServiceProcessor |
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.
|
Tracing |
tracing()
Gets tracing processor.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic StandaloneGridKernalContext(IgniteLogger log, @Nullable @Nullable File binaryMetadataFileStoreDir, @Nullable @Nullable File marshallerMappingFileStoreDir) throws IgniteCheckedException
log - Logger.binaryMetadataFileStoreDir - folder specifying location of metadata File Store.
null means no specific folder is configured. marshallerMappingFileStoreDir - folder specifying location of marshaller mapping file store.
null means no specific folder is configured.
Providing null will disable unmarshall for non primitive objects, BinaryObjects will be provided IgniteCheckedExceptionprotected IgniteConfiguration prepareIgniteConfiguration()
public List<GridComponent> components()
components in interface GridKernalContextpublic UUID localNodeId()
localNodeId in interface GridKernalContextpublic String igniteInstanceName()
igniteInstanceName 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 boolean isStopping()
isStopping in interface GridKernalContextTrue if grid is in the process of stopping.public GridKernalGateway gateway()
gateway in interface GridKernalContextpublic IgniteEx grid()
grid in interface GridKernalContextpublic IgniteConfiguration config()
config in interface GridKernalContextpublic GridTaskProcessor task()
task in interface GridKernalContextpublic GridAffinityProcessor affinity()
affinity 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 Tracing tracing()
tracing in interface GridKernalContextpublic GridTaskSessionProcessor session()
session in interface GridKernalContextpublic GridClosureProcessor closure()
closure in interface GridKernalContextpublic GridServiceProcessor service()
service in interface GridKernalContextpublic GridPortProcessor ports()
ports in interface GridKernalContextpublic IgniteScheduleProcessorAdapter schedule()
schedule in interface GridKernalContextpublic MaintenanceRegistry maintenanceRegistry()
maintenanceRegistry 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 GridContinuousProcessor continuous()
continuous 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 IgnitePluginProcessor plugins()
plugins 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 IndexProcessor indexProcessor()
indexProcessor in interface GridKernalContextpublic GridEncryptionManager encryption()
encryption in interface GridKernalContextpublic IgniteDefragmentation defragmentation()
defragmentation in interface GridKernalContextpublic WorkersRegistry workersRegistry()
workersRegistry in interface GridKernalContextpublic DataStructuresProcessor dataStructures()
dataStructures in interface GridKernalContextpublic MvccProcessor coordinators()
coordinators 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 void printMemoryStats()
printMemoryStats in interface GridKernalContextpublic boolean isDaemon()
isDaemon in interface GridKernalContextTrue if this node is daemon, false otherwise.public GridPerformanceSuggestions performance()
performance in interface GridKernalContextpublic 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.public <T> T createComponent(Class<T> cls)
createComponent in interface GridKernalContextcls - Component class.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 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 GridKernalContext@Nullable public @Nullable Map<String,? extends ExecutorService> customExecutors()
customExecutors in interface GridKernalContextpublic ExecutorService getSchemaExecutorService()
getSchemaExecutorService in interface GridKernalContextpublic ExecutorService getRebalanceExecutorService()
getRebalanceExecutorService in interface GridKernalContextpublic IgniteStripedThreadPoolExecutor getStripedRebalanceExecutorService()
getStripedRebalanceExecutorService 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 Thread.UncaughtExceptionHandler uncaughtExceptionHandler()
uncaughtExceptionHandler in interface GridKernalContextpublic boolean recoveryMode()
recoveryMode in interface GridKernalContextTrue if node is in recovery mode (before join to topology).public PdsFoldersResolver pdsFolderResolver()
pdsFolderResolver in interface GridKernalContext@NotNull public @NotNull Iterator<GridComponent> iterator()
iterator in interface Iterable<GridComponent>public CompressionProcessor compress()
compress in interface GridKernalContextpublic LongJVMPauseDetector longJvmPauseDetector()
longJvmPauseDetector in interface GridKernalContextpublic DiagnosticProcessor diagnostic()
diagnostic in interface GridKernalContextpublic DurableBackgroundTasksProcessor durableBackgroundTask()
durableBackgroundTask in interface GridKernalContextpublic ExecutorService buildIndexExecutorService()
buildIndexExecutorService in interface GridKernalContextpublic PerformanceStatisticsProcessor performanceStatistics()
performanceStatistics in interface GridKernalContextpublic Executor getAsyncContinuationExecutor()
getAsyncContinuationExecutor in interface GridKernalContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021