@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 |
restExecSvc |
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 marshCachePool,
ExecutorService execSvc,
ExecutorService sysExecSvc,
ExecutorService p2pExecSvc,
ExecutorService mgmtExecSvc,
ExecutorService igfsExecSvc,
ExecutorService restExecSvc,
ExecutorService affExecSvc,
ExecutorService idxExecSvc,
IgniteStripedThreadPoolExecutor callbackExecSvc,
List<PluginProvider> plugins)
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.
|
GridCacheProcessor |
cache()
Gets caches processor.
|
IgniteCacheObjectProcessor |
cacheObjects()
Gets cache object processor.
|
GridCheckpointManager |
checkpoint()
Gets checkpoint manager.
|
boolean |
clientDisconnected() |
boolean |
clientNode() |
GridClockSyncProcessor |
clockSync()
Gets time processor.
|
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.
|
<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 |
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 |
getRestExecutorService()
Should return an instance of fully configured thread pool to be used for
processing of client messages (REST requests).
|
ExecutorService |
getSystemExecutorService()
Executor service that is in charge of processing internal system messages.
|
IgniteEx |
grid()
Gets grid instance managed by kernal.
|
String |
gridName()
Gets grid name.
|
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.
|
GridIndexingManager |
indexing()
Gets indexing manager.
|
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.
|
void |
markSegmented()
Sets segmented flag to
true when node is stopped due to segmentation issues. |
ExecutorService |
marshallerCachePool()
Gets marshaller cache pool.
|
MarshallerContextImpl |
marshallerContext()
Gets marshaller context.
|
Object |
nodeAttribute(String key)
Get node attribute by name.
|
Map<String,Object> |
nodeAttributes() |
OdbcProcessor |
odbc()
Gets ODBC processor.
|
GridOffHeapProcessor |
offheap()
Gets offheap 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.
|
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on unmarshalling.
|
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.
|
GridSwapSpaceManager |
swap()
Gets swap space manager.
|
GridTaskProcessor |
task()
Gets task processor.
|
GridTimeoutProcessor |
timeout()
Gets timeout processor.
|
GridClockSource |
timeSource()
Gets grid time source.
|
void |
timeSource(GridClockSource clockSrc)
Sets time source.
|
String |
toString() |
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.
|
void |
writeExternal(ObjectOutput out) |
@GridToStringExclude protected ExecutorService execSvc
@GridToStringExclude protected ExecutorService sysExecSvc
@GridToStringExclude protected ExecutorService restExecSvc
@GridToStringExclude protected ExecutorService affExecSvc
@GridToStringExclude protected ExecutorService idxExecSvc
@GridToStringExclude protected IgniteStripedThreadPoolExecutor callbackExecSvc
public GridKernalContextImpl()
protected GridKernalContextImpl(GridLoggerProxy log, IgniteEx grid, IgniteConfiguration cfg, GridKernalGateway gw, ExecutorService utilityCachePool, ExecutorService marshCachePool, ExecutorService execSvc, ExecutorService sysExecSvc, ExecutorService p2pExecSvc, ExecutorService mgmtExecSvc, ExecutorService igfsExecSvc, ExecutorService restExecSvc, ExecutorService affExecSvc, @Nullable ExecutorService idxExecSvc, IgniteStripedThreadPoolExecutor callbackExecSvc, List<PluginProvider> plugins) throws IgniteCheckedException
log - Logger.grid - Grid instance managed by kernal.cfg - Grid configuration.gw - Kernal gateway.utilityCachePool - Utility cache pool.marshCachePool - Marshaller cache pool.execSvc - Public executor service.sysExecSvc - System executor service.p2pExecSvc - P2P executor service.mgmtExecSvc - Management executor service.igfsExecSvc - IGFS executor service.restExecSvc - REST executor service.affExecSvc - Affinity executor service.idxExecSvc - Indexing executor service.plugins - Plugin providers.IgniteCheckedException - In case of error.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 gridName()
gridName 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 GridClockSyncProcessor clockSync()
clockSync in interface GridKernalContextpublic GridResourceProcessor resource()
resource in interface GridKernalContextpublic GridJobMetricsProcessor jobMetric()
jobMetric in interface GridKernalContextpublic GridCacheProcessor cache()
cache 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 GridOffHeapProcessor offheap()
offheap 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 GridSecurityProcessor security()
security in interface GridKernalContextpublic GridLoadBalancerManager loadBalancing()
loadBalancing in interface GridKernalContextpublic GridSwapSpaceManager swap()
swap in interface GridKernalContextpublic GridIndexingManager indexing()
indexing in interface GridKernalContextpublic GridAffinityProcessor affinity()
affinity in interface GridKernalContextpublic GridRestProcessor 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 ExecutorService utilityCachePool()
utilityCachePool in interface GridKernalContextpublic ExecutorService marshallerCachePool()
marshallerCachePool in interface GridKernalContextpublic IgniteStripedThreadPoolExecutor asyncCallbackPool()
asyncCallbackPool in interface GridKernalContextpublic IgniteCacheObjectProcessor cacheObjects()
cacheObjects in interface GridKernalContextpublic GridQueryProcessor query()
query in interface GridKernalContextpublic OdbcProcessor odbc()
odbc in interface GridKernalContextpublic DataStructuresProcessor dataStructures()
dataStructures 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 void markSegmented()
true when node is stopped due to segmentation issues.markSegmented in interface GridKernalContextpublic boolean segmented()
segmented in interface GridKernalContextTrue if network is currently segmented, false otherwise.public GridClockSource timeSource()
timeSource in interface GridKernalContextpublic void timeSource(GridClockSource clockSrc)
clockSrc - Time source.public GridPerformanceSuggestions performance()
performance 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 getSystemExecutorService()
getSystemExecutorService in interface GridKernalContextpublic ExecutorService getManagementExecutorService()
GridJobs.getManagementExecutorService in interface GridKernalContextpublic ExecutorService getPeerClassLoadingExecutorService()
getPeerClassLoadingExecutorService in interface GridKernalContextpublic ExecutorService getIgfsExecutorService()
getIgfsExecutorService in interface GridKernalContextpublic ExecutorService getRestExecutorService()
getRestExecutorService in interface GridKernalContextpublic ExecutorService getAffinityExecutorService()
getAffinityExecutorService in interface GridKernalContext@Nullable public ExecutorService getIndexingExecutorService()
getIndexingExecutorService 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 GridKernalContext
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016