@GridToStringExclude public class GridKernalContextImpl extends GridMetadataAwareAdapter implements GridKernalContext, Externalizable
| Modifier | Constructor and Description |
|---|---|
|
GridKernalContextImpl()
No-arg constructor is required by externalization.
|
protected |
GridKernalContextImpl(GridLoggerProxy log,
GridEx grid,
GridConfiguration cfg,
GridKernalGateway gw,
boolean ent)
Creates new kernal context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(GridComponent comp) |
void |
addHelper(Object helper) |
GridAffinityProcessor |
affinity()
Gets cache data affinity processor.
|
GridCacheProcessor |
cache()
Gets caches processor.
|
GridCheckpointManager |
checkpoint()
Gets checkpoint manager.
|
GridClockSyncProcessor |
clockSync()
Gets time processor.
|
GridClosureProcessor |
closure()
Gets closure processor.
|
GridCollisionManager |
collision()
Gets collision manager.
|
Collection<String> |
compatibleVersions()
Gets list of compatible versions.
|
List<GridComponent> |
components()
Gets list of all grid components in the order they were added.
|
GridConfiguration |
config()
Gets grid configuration.
|
GridContinuousProcessor |
continuous()
Gets event continuous processor.
|
<K,V> GridDataLoaderProcessor<K,V> |
dataLoad()
Gets data loader processor.
|
GridDeploymentManager |
deploy()
Gets deployment manager.
|
GridDiscoveryManager |
discovery()
Gets discovery manager.
|
GridDrProcessor |
dr()
Gets replication processor.
|
ExecutorService |
drPool()
Gets DR pool.
|
GridEmailProcessorAdapter |
email()
Gets email processor.
|
GridEventStorageManager |
event()
Gets event storage manager.
|
GridFailoverManager |
failover()
Gets failover manager.
|
GridKernalGateway |
gateway()
Gets kernal gateway.
|
GridGgfsProcessorAdapter |
ggfs()
Gets file system processor.
|
GridGgfsHelper |
ggfsHelper()
Gets GGFS utils processor.
|
GridEx |
grid()
Gets grid instance managed by kernal.
|
String |
gridName()
Gets grid name.
|
GridIndexingManager |
indexing()
Gets indexing manager.
|
GridIoManager |
io()
Gets communication manager.
|
boolean |
isDaemon()
Checks whether this node is daemon.
|
boolean |
isEnterprise() |
boolean |
isStopping() |
Iterator<GridComponent> |
iterator() |
GridJobProcessor |
job()
Gets job processor.
|
GridJobMetricsProcessor |
jobMetric()
Gets job metric processor.
|
GridLicenseProcessor |
license()
Gets license processor.
|
GridLoadBalancerManager |
loadBalancing()
Gets load balancing manager.
|
UUID |
localNodeId()
Gets local node ID.
|
GridLogger |
log()
Gets logger.
|
GridLogger |
log(Class<?> cls)
Gets logger for given class.
|
void |
markSegmented()
Sets segmented flag to
true when node is stopped due to segmentation issues. |
GridOffHeapProcessor |
offheap()
Gets offheap processor.
|
GridPerformanceSuggestions |
performance() |
GridPortProcessor |
ports()
Gets port processor.
|
void |
printMemoryStats()
Print grid kernal memory stats (sizes of internal structures, etc.).
|
GridProduct |
product()
Gets grid product.
|
void |
product(GridProduct product) |
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on demarshalling.
|
GridResourceProcessor |
resource()
Gets resource processor.
|
GridRestProcessor |
rest()
Gets REST processor.
|
GridScheduleProcessorAdapter |
schedule()
Gets schedule processor.
|
GridSecureSessionManager |
secureSession()
Gets secure session manager.
|
GridSecurityManager |
security()
Gets authentication manager.
|
GridSegmentationProcessor |
segmentation()
Gets segmentation processor.
|
boolean |
segmented()
Gets segmented flag.
|
GridTaskSessionProcessor |
session()
Gets task session processor.
|
GridStreamProcessor |
stream()
Gets stream 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/gridgain.xml file for userVersion attribute. |
GridVersionProcessor |
versionConverter()
Gets version converter processor.
|
void |
writeExternal(ObjectOutput out) |
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, clone, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, readExternalMeta, removeMeta, removeMeta, replaceMeta, writeExternalMetaequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMetapublic GridKernalContextImpl()
protected GridKernalContextImpl(GridLoggerProxy log, GridEx grid, GridConfiguration cfg, GridKernalGateway gw, boolean ent)
log - Logger.grid - Grid instance managed by kernal.cfg - Grid configuration.gw - Kernal gateway.ent - Release enterprise flag.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 addHelper(Object helper)
helper - Helper to add.public Collection<String> compatibleVersions()
compatibleVersions in interface GridKernalContextpublic 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 GridEx grid()
grid in interface GridKernalContextpublic GridConfiguration 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 GridPortProcessor ports()
ports in interface GridKernalContextpublic GridEmailProcessorAdapter email()
email in interface GridKernalContextpublic GridOffHeapProcessor offheap()
offheap in interface GridKernalContextpublic GridScheduleProcessorAdapter schedule()
schedule in interface GridKernalContextpublic GridStreamProcessor stream()
stream 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 GridSecurityManager security()
security in interface GridKernalContextpublic GridSecureSessionManager secureSession()
secureSession in interface GridKernalContextpublic GridLoadBalancerManager loadBalancing()
loadBalancing in interface GridKernalContextpublic GridSwapSpaceManager swap()
swap in interface GridKernalContextpublic GridIndexingManager indexing()
indexing in interface GridKernalContextpublic GridLicenseProcessor license()
license in interface GridKernalContextpublic GridAffinityProcessor affinity()
affinity in interface GridKernalContextpublic GridRestProcessor rest()
rest in interface GridKernalContextpublic GridSegmentationProcessor segmentation()
segmentation in interface GridKernalContextpublic <K,V> GridDataLoaderProcessor<K,V> dataLoad()
dataLoad in interface GridKernalContextpublic GridGgfsProcessorAdapter ggfs()
ggfs in interface GridKernalContextpublic GridGgfsHelper ggfsHelper()
ggfsHelper in interface GridKernalContextpublic GridContinuousProcessor continuous()
continuous in interface GridKernalContextpublic GridDrProcessor dr()
dr in interface GridKernalContextpublic ExecutorService drPool()
drPool in interface GridKernalContextpublic GridVersionProcessor versionConverter()
versionConverter in interface GridKernalContextpublic GridLogger log()
log in interface GridKernalContextpublic GridLogger 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 product(GridProduct product)
product - Product.public GridProduct product()
product in interface GridKernalContextpublic void timeSource(GridClockSource clockSrc)
clockSrc - Time source.public GridPerformanceSuggestions performance()
performance in interface GridKernalContextpublic boolean isEnterprise()
isEnterprise 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/gridgain.xml file for userVersion attribute. If
gridgain.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 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 demarshalling error.Copyright © 2014. All rights reserved.