public class GridSystemViewManager extends GridManagerAdapter<SystemViewExporterSpi> implements ReadOnlySystemViewRegistry
ReadOnlySystemViewRegistry for each configured SystemViewExporterSpi.SystemView,
SystemViewAdapterGridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static String |
STREAM_POOL_QUEUE_VIEW
Name of the system view for a data streamer
StripedExecutor queue view. |
static String |
STREAM_POOL_QUEUE_VIEW_DESC
Description of the system view for a data streamer
StripedExecutor queue view. |
static String |
SYS_POOL_QUEUE_VIEW
Name of the system view for a system
StripedExecutor queue view. |
static String |
SYS_POOL_QUEUE_VIEW_DESC
Description of the system view for a system
StripedExecutor queue view. |
ctx, log| Constructor and Description |
|---|
GridSystemViewManager(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSystemViewCreationListener(Consumer<SystemView<?>> lsnr)
Adds listener of view creation events.
|
@NotNull Iterator<SystemView<?>> |
iterator() |
<C,R,D> void |
registerInnerArrayView(String name,
String desc,
Class<R> rowCls,
Collection<C> container,
Function<C,D[]> dataExtractor,
BiFunction<C,D,R> rowFunc)
Registers
SystemViewInnerCollectionsAdapter view which exports container content. |
<C,R,D> void |
registerInnerCollectionView(String name,
String desc,
Class<R> rowCls,
Collection<C> container,
Function<C,Collection<D>> dataExtractor,
BiFunction<C,D,R> rowFunc)
Registers
SystemViewInnerCollectionsAdapter view which exports container content. |
void |
registerThreadPools(StripedExecutor stripedExecSvc,
StripedExecutor dataStreamExecSvc)
Registers system views for a striped thread pools.
|
<R,D> void |
registerView(String name,
String desc,
Class<R> rowCls,
Collection<D> data,
Function<D,R> rowFunc)
Registers
SystemViewAdapter view which exports Collection content. |
<R,D> void |
registerView(String name,
String desc,
Class<R> rowCls,
Supplier<Collection<D>> dataSupplier,
Function<D,R> rowFunc)
Registers view which exports
Collection content provided by specified Supplier. |
<R> void |
registerView(SystemView<R> sysView)
Registers
SystemView instance. |
<R> void |
registerWalker(Class<R> rowClass,
SystemViewRowAttributeWalker<R> walker)
Registers walker for specified class.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
<R> @Nullable SystemView<R> |
view(String name) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, enabled, getSpi, getSpi, getSpis, inject, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, onReconnected, printMemoryStats, startInfo, startSpi, stopInfo, stopSpi, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String SYS_POOL_QUEUE_VIEW
StripedExecutor queue view.public static final String SYS_POOL_QUEUE_VIEW_DESC
StripedExecutor queue view.public static final String STREAM_POOL_QUEUE_VIEW
StripedExecutor queue view.public static final String STREAM_POOL_QUEUE_VIEW_DESC
StripedExecutor queue view.public GridSystemViewManager(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentIgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentcancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public void registerThreadPools(StripedExecutor stripedExecSvc, StripedExecutor dataStreamExecSvc)
stripedExecSvc - Striped executor.dataStreamExecSvc - Data streamer executor service.public <R> void registerView(SystemView<R> sysView)
SystemView instance.R - Row type.sysView - System view.public <R,D> void registerView(String name, String desc, Class<R> rowCls, Collection<D> data, Function<D,R> rowFunc)
SystemViewAdapter view which exports Collection content.R - View row type.D - Collection data type.name - Name.desc - Description.rowCls - Row class.data - Data.rowFunc - value to row function.public <C,R,D> void registerInnerCollectionView(String name, String desc, Class<R> rowCls, Collection<C> container, Function<C,Collection<D>> dataExtractor, BiFunction<C,D,R> rowFunc)
SystemViewInnerCollectionsAdapter view which exports container content.C - Container entry type.R - View row type.D - Collection data type.name - Name.desc - Description.rowCls - Row class.container - Container of the data.dataExtractor - Data extractor function.rowFunc - Row functionpublic <C,R,D> void registerInnerArrayView(String name, String desc, Class<R> rowCls, Collection<C> container, Function<C,D[]> dataExtractor, BiFunction<C,D,R> rowFunc)
SystemViewInnerCollectionsAdapter view which exports container content.C - Container entry type.R - View row type.D - Collection data type.name - Name.desc - Description.rowCls - Row class.container - Container of the data.dataExtractor - Data extractor function.rowFunc - Row functionpublic <R,D> void registerView(String name, String desc, Class<R> rowCls, Supplier<Collection<D>> dataSupplier, Function<D,R> rowFunc)
Collection content provided by specified Supplier.R - View row type.D - Collection data type.name - Name.desc - Description.rowCls - Row class.dataSupplier - Data supplier.rowFunc - value to row function.@Nullable public <R> @Nullable SystemView<R> view(String name)
name - Name of the view.public <R> void registerWalker(Class<R> rowClass, SystemViewRowAttributeWalker<R> walker)
R - Row type.rowClass - Row class.walker - Walker.public void addSystemViewCreationListener(Consumer<SystemView<?>> lsnr)
addSystemViewCreationListener in interface ReadOnlySystemViewRegistrylsnr - Listener.@NotNull public @NotNull Iterator<SystemView<?>> iterator()
iterator in interface Iterable<SystemView<?>>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020