Search in sources :

Example 1 with NodeAttributeView

use of org.apache.ignite.spi.systemview.view.NodeAttributeView in project ignite by apache.

the class GridDiscoveryManager method nodeAttributeViewSupplier.

/**
 * Node attributes view supplier.
 *
 * @param filter Filter.
 */
private Iterable<NodeAttributeView> nodeAttributeViewSupplier(Map<String, Object> filter) {
    Object nodeFilter = filter.get(NodeAttributeViewWalker.NODE_ID_FILTER);
    UUID nodeId = null;
    if (nodeFilter instanceof UUID)
        nodeId = (UUID) nodeFilter;
    else if (nodeFilter instanceof String) {
        try {
            nodeId = UUID.fromString((String) nodeFilter);
        } catch (RuntimeException ignored) {
            return Collections.emptyList();
        }
    } else if (nodeFilter != null)
        return Collections.emptyList();
    Collection<ClusterNode> nodes;
    if (nodeId != null) {
        ClusterNode node = ctx.discovery().node(nodeId);
        if (node != null)
            nodes = Collections.singleton(node);
        else
            nodes = Collections.emptySet();
    } else
        nodes = F.concat(false, allNodes(), daemonNodes());
    String attrName = (String) filter.get(NodeAttributeViewWalker.NAME_FILTER);
    return F.flat(F.iterator(nodes, node -> {
        Map<String, Object> attrs = node.attributes();
        if (attrName != null) {
            Object attrVal = attrs.get(attrName);
            if (attrVal == null)
                return Collections.emptyList();
            attrs = F.asMap(attrName, attrs.get(attrName));
        }
        return F.iterator(attrs.entrySet(), na -> new NodeAttributeView(node.id(), na.getKey(), na.getValue()), true);
    }, true));
}
Also used : ClusterNode(org.apache.ignite.cluster.ClusterNode) NodeOrderComparator(org.apache.ignite.internal.cluster.NodeOrderComparator) GridFutureAdapter(org.apache.ignite.internal.util.future.GridFutureAdapter) EVT_NODE_LEFT(org.apache.ignite.events.EventType.EVT_NODE_LEFT) GridFinishedFuture(org.apache.ignite.internal.util.future.GridFinishedFuture) DefaultCommunicationFailureResolver(org.apache.ignite.configuration.DefaultCommunicationFailureResolver) ATTR_MARSHALLER_USE_DFLT_SUID(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_MARSHALLER_USE_DFLT_SUID) SecurityUtils.isSecurityCompatibilityMode(org.apache.ignite.internal.processors.security.SecurityUtils.isSecurityCompatibilityMode) ClusterMetrics(org.apache.ignite.cluster.ClusterMetrics) DiscoverySpi(org.apache.ignite.spi.discovery.DiscoverySpi) SecurityCredentials(org.apache.ignite.plugin.security.SecurityCredentials) Map(java.util.Map) BaselineTopology(org.apache.ignite.internal.processors.cluster.BaselineTopology) NodeAttributeView(org.apache.ignite.spi.systemview.view.NodeAttributeView) IgniteKernal(org.apache.ignite.internal.IgniteKernal) IgniteClientDisconnectedException(org.apache.ignite.IgniteClientDisconnectedException) IgniteInClosure(org.apache.ignite.lang.IgniteInClosure) INACTIVE(org.apache.ignite.cluster.ClusterState.INACTIVE) GridToStringExclude(org.apache.ignite.internal.util.tostring.GridToStringExclude) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) Event(org.apache.ignite.events.Event) CacheGroupDescriptor(org.apache.ignite.internal.processors.cache.CacheGroupDescriptor) Set(java.util.Set) ChangeGlobalStateFinishMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateFinishMessage) BlockingQueue(java.util.concurrent.BlockingQueue) MILLISECONDS(java.util.concurrent.TimeUnit.MILLISECONDS) Serializable(java.io.Serializable) StopNodeFailureHandler(org.apache.ignite.failure.StopNodeFailureHandler) IGridClusterStateProcessor(org.apache.ignite.internal.processors.cluster.IGridClusterStateProcessor) CountDownLatch(java.util.concurrent.CountDownLatch) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) DiscoverySpiListener(org.apache.ignite.spi.discovery.DiscoverySpiListener) SYSTEM_WORKER_TERMINATION(org.apache.ignite.failure.FailureType.SYSTEM_WORKER_TERMINATION) ATTR_SECURITY_COMPATIBILITY_MODE(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_SECURITY_COMPATIBILITY_MODE) IGNITE_BINARY_MARSHALLER_USE_STRING_SERIALIZATION_VER_2(org.apache.ignite.IgniteSystemProperties.IGNITE_BINARY_MARSHALLER_USE_STRING_SERIALIZATION_VER_2) IGNITE_DISCOVERY_HISTORY_SIZE(org.apache.ignite.IgniteSystemProperties.IGNITE_DISCOVERY_HISTORY_SIZE) GridCacheContext(org.apache.ignite.internal.processors.cache.GridCacheContext) IgniteFutureImpl(org.apache.ignite.internal.util.future.IgniteFutureImpl) CopyOnWriteArrayList(java.util.concurrent.CopyOnWriteArrayList) TcpCommunicationSpi(org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi) DiscoveryNotification(org.apache.ignite.spi.discovery.DiscoveryNotification) EVT_NODE_METRICS_UPDATED(org.apache.ignite.events.EventType.EVT_NODE_METRICS_UPDATED) GridAtomicLong(org.apache.ignite.internal.util.GridAtomicLong) SecurityContext(org.apache.ignite.internal.processors.security.SecurityContext) IgniteSpiException(org.apache.ignite.spi.IgniteSpiException) IgniteThread(org.apache.ignite.thread.IgniteThread) IGNITE_OPTIMIZED_MARSHALLER_USE_DEFAULT_SUID(org.apache.ignite.IgniteSystemProperties.IGNITE_OPTIMIZED_MARSHALLER_USE_DEFAULT_SUID) SecurityUtils.remoteSecurityContext(org.apache.ignite.internal.processors.security.SecurityUtils.remoteSecurityContext) ATTR_USER_NAME(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_USER_NAME) ClusterState(org.apache.ignite.cluster.ClusterState) U(org.apache.ignite.internal.util.typedef.internal.U) EVT_DISCOVERY_CUSTOM_EVT(org.apache.ignite.internal.events.DiscoveryCustomEvent.EVT_DISCOVERY_CUSTOM_EVT) TreeSet(java.util.TreeSet) ArrayList(java.util.ArrayList) GridKernalContext(org.apache.ignite.internal.GridKernalContext) ClusterNode(org.apache.ignite.cluster.ClusterNode) CI1(org.apache.ignite.internal.util.typedef.CI1) EVT_CLIENT_NODE_RECONNECTED(org.apache.ignite.events.EventType.EVT_CLIENT_NODE_RECONNECTED) DiscoverySpiMutableCustomMessageSupport(org.apache.ignite.spi.discovery.DiscoverySpiMutableCustomMessageSupport) S(org.apache.ignite.internal.util.typedef.internal.S) IgniteInterruptedException(org.apache.ignite.IgniteInterruptedException) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) DiscoverySpiDataExchange(org.apache.ignite.spi.discovery.DiscoverySpiDataExchange) ACTIVE(org.apache.ignite.cluster.ClusterState.ACTIVE) Marshaller(org.apache.ignite.marshaller.Marshaller) BaselineNode(org.apache.ignite.cluster.BaselineNode) T2(org.apache.ignite.internal.util.typedef.T2) NodeMetricsView(org.apache.ignite.spi.systemview.view.NodeMetricsView) CommunicationSpi(org.apache.ignite.spi.communication.CommunicationSpi) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi) ArrayDeque(java.util.ArrayDeque) DiscoverySpiNodeAuthenticator(org.apache.ignite.spi.discovery.DiscoverySpiNodeAuthenticator) IgniteUuid(org.apache.ignite.lang.IgniteUuid) CacheMode(org.apache.ignite.cache.CacheMode) DynamicCacheChangeBatch(org.apache.ignite.internal.processors.cache.DynamicCacheChangeBatch) DynamicCacheChangeRequest(org.apache.ignite.internal.processors.cache.DynamicCacheChangeRequest) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) DiscoveryCustomEvent(org.apache.ignite.internal.events.DiscoveryCustomEvent) CRITICAL_ERROR(org.apache.ignite.failure.FailureType.CRITICAL_ERROR) DiscoveryDataBag(org.apache.ignite.spi.discovery.DiscoveryDataBag) ATTR_LATE_AFFINITY_ASSIGNMENT(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_LATE_AFFINITY_ASSIGNMENT) JoiningNodeDiscoveryData(org.apache.ignite.spi.discovery.DiscoveryDataBag.JoiningNodeDiscoveryData) ATTR_MACS(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_MACS) ATTR_MARSHALLER_USE_BINARY_STRING_SER_VER_2(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_MARSHALLER_USE_BINARY_STRING_SER_VER_2) ATTR_DEPLOYMENT_MODE(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_DEPLOYMENT_MODE) VER(org.apache.ignite.internal.IgniteVersionUtils.VER) GridWorker(org.apache.ignite.internal.util.worker.GridWorker) EVT_NODE_SEGMENTED(org.apache.ignite.events.EventType.EVT_NODE_SEGMENTED) IgniteSystemProperties(org.apache.ignite.IgniteSystemProperties) SpanContainer(org.apache.ignite.internal.processors.tracing.messages.SpanContainer) SB(org.apache.ignite.internal.util.typedef.internal.SB) ClusterNodeView(org.apache.ignite.spi.systemview.view.ClusterNodeView) X(org.apache.ignite.internal.util.typedef.X) DiscoverySpiHistorySupport(org.apache.ignite.spi.discovery.DiscoverySpiHistorySupport) MetricUtils.metricName(org.apache.ignite.internal.processors.metric.impl.MetricUtils.metricName) ATTR_DATA_REGIONS_OFFHEAP_SIZE(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_DATA_REGIONS_OFFHEAP_SIZE) IgniteFuture(org.apache.ignite.lang.IgniteFuture) OomExceptionHandler(org.apache.ignite.thread.OomExceptionHandler) SecurityUtils.withRemoteSecurityContext(org.apache.ignite.internal.processors.security.SecurityUtils.withRemoteSecurityContext) FailureType(org.apache.ignite.failure.FailureType) IgniteClientDisconnectedCheckedException(org.apache.ignite.internal.IgniteClientDisconnectedCheckedException) EventType(org.apache.ignite.events.EventType) OperationSecurityContext(org.apache.ignite.internal.processors.security.OperationSecurityContext) IgniteDiscoveryThread(org.apache.ignite.spi.discovery.IgniteDiscoveryThread) Collection(java.util.Collection) IgniteException(org.apache.ignite.IgniteException) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) GridComponent(org.apache.ignite.internal.GridComponent) SecurityUtils.nodeSecurityContext(org.apache.ignite.internal.processors.security.SecurityUtils.nodeSecurityContext) UUID(java.util.UUID) LinkedBlockingQueue(java.util.concurrent.LinkedBlockingQueue) DiscoverySpiCustomMessage(org.apache.ignite.spi.discovery.DiscoverySpiCustomMessage) GridSpinBusyLock(org.apache.ignite.internal.util.GridSpinBusyLock) Nullable(org.jetbrains.annotations.Nullable) NOOP(org.apache.ignite.plugin.segmentation.SegmentationPolicy.NOOP) List(java.util.List) IGNITE_SECURITY_COMPATIBILITY_MODE(org.apache.ignite.IgniteSystemProperties.IGNITE_SECURITY_COMPATIBILITY_MODE) EVT_NODE_FAILED(org.apache.ignite.events.EventType.EVT_NODE_FAILED) ATTR_OFFHEAP_SIZE(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_OFFHEAP_SIZE) ClientCacheChangeDummyDiscoveryMessage(org.apache.ignite.internal.processors.cache.ClientCacheChangeDummyDiscoveryMessage) EVT_CLIENT_NODE_DISCONNECTED(org.apache.ignite.events.EventType.EVT_CLIENT_NODE_DISCONNECTED) CU(org.apache.ignite.internal.util.typedef.internal.CU) ATTR_PEER_CLASSLOADING(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_PEER_CLASSLOADING) IgniteProductVersion(org.apache.ignite.lang.IgniteProductVersion) ShutdownPolicy(org.apache.ignite.ShutdownPolicy) NodeAttributeViewWalker(org.apache.ignite.internal.managers.systemview.walker.NodeAttributeViewWalker) TcpDiscoveryNode(org.apache.ignite.spi.discovery.tcp.internal.TcpDiscoveryNode) NotNull(org.jetbrains.annotations.NotNull) NodeStoppingException(org.apache.ignite.internal.NodeStoppingException) DiscoveryEvent(org.apache.ignite.events.DiscoveryEvent) GridCacheAdapter(org.apache.ignite.internal.processors.cache.GridCacheAdapter) MarshallerUtils(org.apache.ignite.marshaller.MarshallerUtils) IgniteSystemProperties.getInteger(org.apache.ignite.IgniteSystemProperties.getInteger) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) HashMap(java.util.HashMap) AtomicReference(java.util.concurrent.atomic.AtomicReference) Function(java.util.function.Function) LT(org.apache.ignite.internal.util.typedef.internal.LT) ConcurrentMap(java.util.concurrent.ConcurrentMap) HashSet(java.util.HashSet) FailureContext(org.apache.ignite.failure.FailureContext) ATTR_SHUTDOWN_POLICY(org.apache.ignite.internal.IgniteNodeAttributes.ATTR_SHUTDOWN_POLICY) GridManagerAdapter(org.apache.ignite.internal.managers.GridManagerAdapter) IgniteClosure(org.apache.ignite.lang.IgniteClosure) IgnitePredicate(org.apache.ignite.lang.IgnitePredicate) SegmentationPolicy(org.apache.ignite.plugin.segmentation.SegmentationPolicy) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) IgniteSecurity(org.apache.ignite.internal.processors.security.IgniteSecurity) ClusterNodeViewWalker(org.apache.ignite.internal.managers.systemview.walker.ClusterNodeViewWalker) DiscoverySpiOrderSupport(org.apache.ignite.spi.discovery.DiscoverySpiOrderSupport) NodeMetricsViewWalker(org.apache.ignite.internal.managers.systemview.walker.NodeMetricsViewWalker) F(org.apache.ignite.internal.util.typedef.F) EVT_NODE_JOINED(org.apache.ignite.events.EventType.EVT_NODE_JOINED) CommunicationFailureResolver(org.apache.ignite.configuration.CommunicationFailureResolver) AffinityTopologyVersion(org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion) DynamicCacheDescriptor(org.apache.ignite.internal.processors.cache.DynamicCacheDescriptor) P1(org.apache.ignite.internal.util.typedef.P1) RestartProcessFailureHandler(org.apache.ignite.failure.RestartProcessFailureHandler) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) DiscoveryDataClusterState(org.apache.ignite.internal.processors.cluster.DiscoveryDataClusterState) GridBoundedConcurrentLinkedHashMap(org.apache.ignite.internal.util.GridBoundedConcurrentLinkedHashMap) CacheMetrics(org.apache.ignite.cache.CacheMetrics) Collections(java.util.Collections) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) GridLocalEventListener(org.apache.ignite.internal.managers.eventstorage.GridLocalEventListener) DiscoveryMetricsProvider(org.apache.ignite.spi.discovery.DiscoveryMetricsProvider) NodeAttributeView(org.apache.ignite.spi.systemview.view.NodeAttributeView) UUID(java.util.UUID) Map(java.util.Map) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap) ConcurrentMap(java.util.concurrent.ConcurrentMap) GridBoundedConcurrentLinkedHashMap(org.apache.ignite.internal.util.GridBoundedConcurrentLinkedHashMap)

Example 2 with NodeAttributeView

use of org.apache.ignite.spi.systemview.view.NodeAttributeView in project ignite by apache.

the class SystemViewSelfTest method testNodeAttributes.

/**
 */
@Test
public void testNodeAttributes() throws Exception {
    try (IgniteEx ignite0 = startGrid(getConfiguration(getTestIgniteInstanceName(0)).setUserAttributes(F.asMap("name", "val0")));
        IgniteEx ignite1 = startGrid(getConfiguration(getTestIgniteInstanceName(1)).setUserAttributes(F.asMap("name", "val1")))) {
        awaitPartitionMapExchange();
        SystemView<NodeAttributeView> view = ignite0.context().systemView().view(NODE_ATTRIBUTES_SYS_VIEW);
        assertEquals(ignite0.cluster().localNode().attributes().size() + ignite1.cluster().localNode().attributes().size(), view.size());
        assertEquals(1, F.size(view.iterator(), row -> "name".equals(row.name()) && "val0".equals(row.value())));
        assertEquals(1, F.size(view.iterator(), row -> "name".equals(row.name()) && "val1".equals(row.value())));
        // Test filtering.
        assertTrue(view instanceof FiltrableSystemView);
        Iterator<NodeAttributeView> iter = ((FiltrableSystemView<NodeAttributeView>) view).iterator(F.asMap(NodeAttributeViewWalker.NODE_ID_FILTER, ignite0.cluster().localNode().id()));
        assertEquals(1, F.size(iter, row -> "name".equals(row.name()) && "val0".equals(row.value())));
        iter = ((FiltrableSystemView<NodeAttributeView>) view).iterator(F.asMap(NodeAttributeViewWalker.NODE_ID_FILTER, ignite1.cluster().localNode().id().toString()));
        assertEquals(1, F.size(iter, row -> "name".equals(row.name()) && "val1".equals(row.value())));
        iter = ((FiltrableSystemView<NodeAttributeView>) view).iterator(F.asMap(NodeAttributeViewWalker.NODE_ID_FILTER, "malformed-id"));
        assertEquals(0, F.size(iter));
        iter = ((FiltrableSystemView<NodeAttributeView>) view).iterator(F.asMap(NodeAttributeViewWalker.NAME_FILTER, "name"));
        assertEquals(2, F.size(iter));
        iter = ((FiltrableSystemView<NodeAttributeView>) view).iterator(F.asMap(NodeAttributeViewWalker.NODE_ID_FILTER, ignite0.cluster().localNode().id(), NodeAttributeViewWalker.NAME_FILTER, "name"));
        assertEquals(1, F.size(iter));
    }
}
Also used : Arrays(java.util.Arrays) GridCacheUtils.cacheId(org.apache.ignite.internal.processors.cache.GridCacheUtils.cacheId) StripedExecutorTaskView(org.apache.ignite.spi.systemview.view.StripedExecutorTaskView) CountDownLatchView(org.apache.ignite.spi.systemview.view.datastructures.CountDownLatchView) QueueView(org.apache.ignite.spi.systemview.view.datastructures.QueueView) GridTestUtils.runAsync(org.apache.ignite.testframework.GridTestUtils.runAsync) TestObjectEnum(org.apache.ignite.internal.binary.mutabletest.GridBinaryTestClasses.TestObjectEnum) ComputeTaskView(org.apache.ignite.spi.systemview.view.ComputeTaskView) Map(java.util.Map) CachePagesListView(org.apache.ignite.spi.systemview.view.CachePagesListView) Cache(javax.cache.Cache) ComputeTask(org.apache.ignite.compute.ComputeTask) SEQUENCES_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.SEQUENCES_VIEW) NodeAttributeView(org.apache.ignite.spi.systemview.view.NodeAttributeView) IgniteUtils.toStringSafe(org.apache.ignite.internal.util.IgniteUtils.toStringSafe) BaselineNodeView(org.apache.ignite.spi.systemview.view.BaselineNodeView) DEFAULT_DS_GROUP_NAME(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.DEFAULT_DS_GROUP_NAME) BaselineNodeAttributeViewWalker(org.apache.ignite.internal.managers.systemview.walker.BaselineNodeAttributeViewWalker) SystemView(org.apache.ignite.spi.systemview.view.SystemView) TransactionView(org.apache.ignite.spi.systemview.view.TransactionView) AtomicStampedView(org.apache.ignite.spi.systemview.view.datastructures.AtomicStampedView) IgniteSet(org.apache.ignite.IgniteSet) Set(java.util.Set) IgniteRunnable(org.apache.ignite.lang.IgniteRunnable) BASELINE_NODES_SYS_VIEW(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.BASELINE_NODES_SYS_VIEW) IgniteCache(org.apache.ignite.IgniteCache) CountDownLatch(java.util.concurrent.CountDownLatch) BaselineNodeAttributeView(org.apache.ignite.spi.systemview.view.BaselineNodeAttributeView) LONGS_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.LONGS_VIEW) QueryCursor(org.apache.ignite.cache.query.QueryCursor) PagesListView(org.apache.ignite.spi.systemview.view.PagesListView) PESSIMISTIC(org.apache.ignite.transactions.TransactionConcurrency.PESSIMISTIC) ClientConnectionView(org.apache.ignite.spi.systemview.view.ClientConnectionView) DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE(org.apache.ignite.configuration.AtomicConfiguration.DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE) ScanQuery(org.apache.ignite.cache.query.ScanQuery) IgniteCompute(org.apache.ignite.IgniteCompute) SETS_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.SETS_VIEW) GridFunc.alwaysTrue(org.apache.ignite.internal.util.lang.GridFunc.alwaysTrue) IgniteBiPredicate(org.apache.ignite.lang.IgniteBiPredicate) ComputeJob(org.apache.ignite.compute.ComputeJob) DEFAULT_VOLATILE_DS_GROUP_NAME(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.DEFAULT_VOLATILE_DS_GROUP_NAME) ClusterState(org.apache.ignite.cluster.ClusterState) REFERENCES_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.REFERENCES_VIEW) U(org.apache.ignite.internal.util.typedef.internal.U) NODE_METRICS_SYS_VIEW(org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.NODE_METRICS_SYS_VIEW) BINARY_METADATA_VIEW(org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.BINARY_METADATA_VIEW) CACHE_GRP_IO_VIEW(org.apache.ignite.internal.processors.cache.GridCacheProcessor.CACHE_GRP_IO_VIEW) DISTRIBUTED_METASTORE_VIEW(org.apache.ignite.internal.processors.metastorage.persistence.DistributedMetaStorageImpl.DISTRIBUTED_METASTORE_VIEW) GridCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager) Lists(com.google.common.collect.Lists) ClusterNode(org.apache.ignite.cluster.ClusterNode) ComputeJobResult(org.apache.ignite.compute.ComputeJobResult) IgniteClient(org.apache.ignite.client.IgniteClient) IgniteAtomicReference(org.apache.ignite.IgniteAtomicReference) METASTORAGE_CACHE_NAME(org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage.METASTORAGE_CACHE_NAME) IgniteAtomicStamped(org.apache.ignite.IgniteAtomicStamped) STREAM_POOL_QUEUE_VIEW(org.apache.ignite.internal.processors.pool.PoolProcessor.STREAM_POOL_QUEUE_VIEW) TASKS_VIEW(org.apache.ignite.internal.processors.task.GridTaskProcessor.TASKS_VIEW) Properties(java.util.Properties) QUEUES_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.QUEUES_VIEW) BrokenBarrierException(java.util.concurrent.BrokenBarrierException) CacheGroupIoView(org.apache.ignite.spi.systemview.view.CacheGroupIoView) Test(org.junit.Test) IgniteQueue(org.apache.ignite.IgniteQueue) AtomicSequenceView(org.apache.ignite.spi.systemview.view.datastructures.AtomicSequenceView) Field(java.lang.reflect.Field) ContinuousQuery(org.apache.ignite.cache.query.ContinuousQuery) SCAN_QRY_SYS_VIEW(org.apache.ignite.internal.managers.systemview.ScanQuerySystemView.SCAN_QRY_SYS_VIEW) NodeMetricsView(org.apache.ignite.spi.systemview.view.NodeMetricsView) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) SNAPSHOT_SYS_VIEW(org.apache.ignite.spi.systemview.view.SnapshotView.SNAPSHOT_SYS_VIEW) CachePagesListViewWalker(org.apache.ignite.internal.managers.systemview.walker.CachePagesListViewWalker) CQ_SYS_VIEW(org.apache.ignite.internal.processors.continuous.GridContinuousProcessor.CQ_SYS_VIEW) NODE_ATTRIBUTES_SYS_VIEW(org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.NODE_ATTRIBUTES_SYS_VIEW) CacheAtomicityMode(org.apache.ignite.cache.CacheAtomicityMode) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) IgniteJdbcThinDriver(org.apache.ignite.IgniteJdbcThinDriver) StripedExecutor(org.apache.ignite.internal.util.StripedExecutor) DATA_REGION_PAGE_LIST_VIEW(org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.DATA_REGION_PAGE_LIST_VIEW) Connection(java.sql.Connection) ProtocolVersion(org.apache.ignite.internal.client.thin.ProtocolVersion) SERIALIZABLE(org.apache.ignite.transactions.TransactionIsolation.SERIALIZABLE) IgniteAtomicSequence(org.apache.ignite.IgniteAtomicSequence) DistributedMetaStorage(org.apache.ignite.internal.processors.metastorage.DistributedMetaStorage) Transaction(org.apache.ignite.transactions.Transaction) FiltrableSystemView(org.apache.ignite.spi.systemview.view.FiltrableSystemView) CACHE_GRP_PAGE_LIST_VIEW(org.apache.ignite.internal.processors.cache.GridCacheProcessor.CACHE_GRP_PAGE_LIST_VIEW) IgniteEx(org.apache.ignite.internal.IgniteEx) METASTORE_VIEW(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.METASTORE_VIEW) REPEATABLE_READ(org.apache.ignite.transactions.TransactionIsolation.REPEATABLE_READ) RendezvousAffinityFunction(org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction) IgniteSystemProperties(org.apache.ignite.IgniteSystemProperties) BinaryMetadataView(org.apache.ignite.spi.systemview.view.BinaryMetadataView) IgniteSemaphore(org.apache.ignite.IgniteSemaphore) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) ComputeJobResultPolicy(org.apache.ignite.compute.ComputeJobResultPolicy) ClusterNodeView(org.apache.ignite.spi.systemview.view.ClusterNodeView) LOCKS_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.LOCKS_VIEW) NODES_SYS_VIEW(org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.NODES_SYS_VIEW) AtomicReferenceView(org.apache.ignite.spi.systemview.view.datastructures.AtomicReferenceView) IgniteLock(org.apache.ignite.IgniteLock) CyclicBarrier(java.util.concurrent.CyclicBarrier) SVCS_VIEW(org.apache.ignite.internal.processors.service.IgniteServiceProcessor.SVCS_VIEW) IgniteCountDownLatch(org.apache.ignite.IgniteCountDownLatch) ServiceView(org.apache.ignite.spi.systemview.view.ServiceView) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) CLI_CONN_VIEW(org.apache.ignite.internal.processors.odbc.ClientListenerProcessor.CLI_CONN_VIEW) Collection(java.util.Collection) IgniteException(org.apache.ignite.IgniteException) OPTIMISTIC(org.apache.ignite.transactions.TransactionConcurrency.OPTIMISTIC) LATCHES_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.LATCHES_VIEW) VOLATILE_DATA_REGION_NAME(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.VOLATILE_DATA_REGION_NAME) GridTestUtils(org.apache.ignite.testframework.GridTestUtils) Objects(java.util.Objects) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) ClientConfiguration(org.apache.ignite.configuration.ClientConfiguration) CU(org.apache.ignite.internal.util.typedef.internal.CU) ACTIVE(org.apache.ignite.transactions.TransactionState.ACTIVE) NodeAttributeViewWalker(org.apache.ignite.internal.managers.systemview.walker.NodeAttributeViewWalker) NotNull(org.jetbrains.annotations.NotNull) DummyService(org.apache.ignite.internal.processors.service.DummyService) ContinuousQueryView(org.apache.ignite.spi.systemview.view.ContinuousQueryView) GridCacheUtils.cacheGroupId(org.apache.ignite.internal.processors.cache.GridCacheUtils.cacheGroupId) CacheView(org.apache.ignite.spi.systemview.view.CacheView) GridTestUtils.waitForCondition(org.apache.ignite.testframework.GridTestUtils.waitForCondition) SetView(org.apache.ignite.spi.systemview.view.datastructures.SetView) CACHES_VIEW(org.apache.ignite.internal.processors.cache.ClusterCachesInfo.CACHES_VIEW) AtomicLongView(org.apache.ignite.spi.systemview.view.datastructures.AtomicLongView) IgniteCallable(org.apache.ignite.lang.IgniteCallable) HashSet(java.util.HashSet) SEMAPHORES_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.SEMAPHORES_VIEW) SYS_POOL_QUEUE_VIEW(org.apache.ignite.internal.processors.pool.PoolProcessor.SYS_POOL_QUEUE_VIEW) SnapshotView(org.apache.ignite.spi.systemview.view.SnapshotView) ReentrantLockView(org.apache.ignite.spi.systemview.view.datastructures.ReentrantLockView) GridFunc.identity(org.apache.ignite.internal.util.lang.GridFunc.identity) IgniteClosure(org.apache.ignite.lang.IgniteClosure) IgnitePredicate(org.apache.ignite.lang.IgnitePredicate) AtomicConfiguration(org.apache.ignite.configuration.AtomicConfiguration) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) ScanQueryView(org.apache.ignite.spi.systemview.view.ScanQueryView) ServiceConfiguration(org.apache.ignite.services.ServiceConfiguration) MetastorageView(org.apache.ignite.spi.systemview.view.MetastorageView) STAMPED_VIEW(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor.STAMPED_VIEW) F(org.apache.ignite.internal.util.typedef.F) Iterator(java.util.Iterator) TXS_MON_LIST(org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager.TXS_MON_LIST) JdbcConnectionContext(org.apache.ignite.internal.processors.odbc.jdbc.JdbcConnectionContext) CollectionConfiguration(org.apache.ignite.configuration.CollectionConfiguration) CACHE_GRPS_VIEW(org.apache.ignite.internal.processors.cache.ClusterCachesInfo.CACHE_GRPS_VIEW) CacheGroupView(org.apache.ignite.spi.systemview.view.CacheGroupView) TestObjectAllTypes(org.apache.ignite.internal.binary.mutabletest.GridBinaryTestClasses.TestObjectAllTypes) TimeUnit(java.util.concurrent.TimeUnit) Consumer(java.util.function.Consumer) IgniteCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager) Ignition(org.apache.ignite.Ignition) IgniteAtomicLong(org.apache.ignite.IgniteAtomicLong) BASELINE_NODE_ATTRIBUTES_SYS_VIEW(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.BASELINE_NODE_ATTRIBUTES_SYS_VIEW) Collections(java.util.Collections) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) SemaphoreView(org.apache.ignite.spi.systemview.view.datastructures.SemaphoreView) FiltrableSystemView(org.apache.ignite.spi.systemview.view.FiltrableSystemView) IgniteEx(org.apache.ignite.internal.IgniteEx) NodeAttributeView(org.apache.ignite.spi.systemview.view.NodeAttributeView) BaselineNodeAttributeView(org.apache.ignite.spi.systemview.view.BaselineNodeAttributeView) Test(org.junit.Test) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)

Aggregations

Collection (java.util.Collection)2 Collections (java.util.Collections)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 IgniteException (org.apache.ignite.IgniteException)2 IgniteSystemProperties (org.apache.ignite.IgniteSystemProperties)2 Lists (com.google.common.collect.Lists)1 Serializable (java.io.Serializable)1 Field (java.lang.reflect.Field)1 Connection (java.sql.Connection)1 ArrayDeque (java.util.ArrayDeque)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 Objects (java.util.Objects)1 Properties (java.util.Properties)1