public class GridSystemViewManager extends GridManagerAdapter<SystemViewExporterSpi> implements ReadOnlySystemViewRegistry
ReadOnlySystemViewRegistry
for each configured SystemViewExporterSpi
.SystemView
,
SystemViewAdapter
GridComponent.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. |
static String |
SYSTEM_VIEW_SQL_SPI
Class name for a SQL view exporter of system views.
|
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() |
<R,D> void |
registerFiltrableView(String name,
String desc,
SystemViewRowAttributeWalker<R> walker,
Function<Map<String,Object>,Iterable<D>> dataSupplier,
Function<D,R> rowFunc)
Registers
FiltrableSystemViewAdapter view with content filtering capabilities. |
<C,R,D> void |
registerInnerArrayView(String name,
String desc,
SystemViewRowAttributeWalker<R> walker,
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,
SystemViewRowAttributeWalker<R> walker,
Iterable<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,
SystemViewRowAttributeWalker<R> walker,
Collection<D> data,
Function<D,R> rowFunc)
Registers
SystemViewAdapter view which exports Collection content. |
<R,D> void |
registerView(String name,
String desc,
SystemViewRowAttributeWalker<R> walker,
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. |
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, validateNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String SYSTEM_VIEW_SQL_SPI
public 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 GridComponent
IgniteCheckedException
- Throws in case of any errors.public void stop(boolean cancel) throws IgniteCheckedException
stop
in interface GridComponent
cancel
- 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, SystemViewRowAttributeWalker<R> walker, 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.walker
- Row walker.data
- Data.rowFunc
- value to row function.public <C,R,D> void registerInnerCollectionView(String name, String desc, SystemViewRowAttributeWalker<R> walker, Iterable<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.walker
- Row walker.container
- Container of the data.dataExtractor
- Data extractor function.rowFunc
- Row functionpublic <C,R,D> void registerInnerArrayView(String name, String desc, SystemViewRowAttributeWalker<R> walker, 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.walker
- Row walker.container
- Container of the data.dataExtractor
- Data extractor function.rowFunc
- Row functionpublic <R,D> void registerView(String name, String desc, SystemViewRowAttributeWalker<R> walker, 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.walker
- Row walker.dataSupplier
- Data supplier.rowFunc
- value to row function.public <R,D> void registerFiltrableView(String name, String desc, SystemViewRowAttributeWalker<R> walker, Function<Map<String,Object>,Iterable<D>> dataSupplier, Function<D,R> rowFunc)
FiltrableSystemViewAdapter
view with content filtering capabilities.R
- View row type.D
- Collection data type.name
- Name.desc
- Description.walker
- Row walker.dataSupplier
- Data supplier with content filtering capabilities.rowFunc
- Row function@Nullable public <R> @Nullable SystemView<R> view(String name)
name
- Name of the view.public void addSystemViewCreationListener(Consumer<SystemView<?>> lsnr)
addSystemViewCreationListener
in interface ReadOnlySystemViewRegistry
lsnr
- Listener.@NotNull public @NotNull Iterator<SystemView<?>> iterator()
iterator
in interface Iterable<SystemView<?>>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021