Class GrpcRemoteSession

  • All Implemented Interfaces:
    com.tangosol.net.Session, AutoCloseable

    @Deprecated(since="22.06.2")
    public class GrpcRemoteSession
    extends Object
    implements com.tangosol.net.Session
    Deprecated.
    A client Session that connects to a remote gRPC proxy.
    Since:
    20.06
    Author:
    Jonathan Knight 2020.09.22
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.tangosol.net.Session

        com.tangosol.net.Session.Option
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Executor f_executor
      Deprecated.
      The Executor to use to dispatch events.
      protected com.tangosol.util.ResourceRegistry f_registry
      Deprecated.
      This session's ResourceRegistry.
      protected io.grpc.ClientInterceptor f_tracingInterceptor
      Deprecated.
      The optional client tracer to use.
      protected boolean m_fActivated
      Deprecated.
      A flag indicating whether this session has been activated.
      protected boolean m_fClosed
      Deprecated.
      A flag indicating whether this session has been closed.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GrpcRemoteSession​(io.grpc.Channel channel, String sName, String sScopeName, com.tangosol.io.Serializer serializer, String sFormat, io.grpc.ClientInterceptor tracingInterceptor, Iterable<? extends com.tangosol.net.events.EventInterceptor<?>> interceptors)
      Deprecated.
      Constructs a new GrpcRemoteSession.
    • Field Detail

      • f_tracingInterceptor

        protected final io.grpc.ClientInterceptor f_tracingInterceptor
        Deprecated.
        The optional client tracer to use.
      • m_fActivated

        protected boolean m_fActivated
        Deprecated.
        A flag indicating whether this session has been activated.
      • m_fClosed

        protected boolean m_fClosed
        Deprecated.
        A flag indicating whether this session has been closed.
      • f_executor

        protected final Executor f_executor
        Deprecated.
        The Executor to use to dispatch events.
      • f_registry

        protected final com.tangosol.util.ResourceRegistry f_registry
        Deprecated.
        This session's ResourceRegistry.
    • Constructor Detail

      • GrpcRemoteSession

        protected GrpcRemoteSession​(io.grpc.Channel channel,
                                    String sName,
                                    String sScopeName,
                                    com.tangosol.io.Serializer serializer,
                                    String sFormat,
                                    io.grpc.ClientInterceptor tracingInterceptor,
                                    Iterable<? extends com.tangosol.net.events.EventInterceptor<?>> interceptors)
        Deprecated.
        Constructs a new GrpcRemoteSession.
        Parameters:
        channel - the gRPC Channel to use
        sName - the name of the session
        sScopeName - the scope name of the session
        serializer - the serializer to use for message payloads
        sFormat - the name of the serializer format
        tracingInterceptor - an optional client tracing interceptor
        interceptors - optional interceptors to add to the session
    • Method Detail

      • activate

        public void activate()
        Deprecated.
        Specified by:
        activate in interface com.tangosol.net.Session
      • isActive

        public boolean isActive()
        Deprecated.
        Specified by:
        isActive in interface com.tangosol.net.Session
      • getScopeName

        public String getScopeName()
        Deprecated.
        Obtain the scope name used to link this GrpcRemoteSession to the ConfigurableCacheFactory on the server that has the corresponding scope.
        Specified by:
        getScopeName in interface com.tangosol.net.Session
        Returns:
        the scope name for this GrpcRemoteSession
      • getName

        public String getName()
        Deprecated.
        Obtain the optional name of this session.
        Specified by:
        getName in interface com.tangosol.net.Session
        Returns:
        the name of this session or null if this session has no name
      • scope

        public String scope()
        Deprecated.
        Obtain the scope name of this session.

        The scope name is used to identify the ConfigurableCacheFactory on the server that owns the resources that this session connects to, for example maps, caches and topics.

        In most use cases the default scope name is used, but when the server has multiple scoped ConfigurableCacheFactory instances the scope name can be specified to link the session to a ConfigurableCacheFactory.

        Returns:
        the scope name of this session
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • getMap

        public <K,​V> com.tangosol.net.NamedMap<K,​V> getMap​(String sName,
                                                                       com.tangosol.net.NamedMap.Option... options)
        Deprecated.
        Specified by:
        getMap in interface com.tangosol.net.Session
      • getCache

        public <K,​V> com.tangosol.net.NamedCache<K,​V> getCache​(String cacheName,
                                                                           com.tangosol.net.NamedMap.Option... options)
        Deprecated.
        Specified by:
        getCache in interface com.tangosol.net.Session
      • getTopic

        public <V> com.tangosol.net.topic.NamedTopic<V> getTopic​(String sName,
                                                                 com.tangosol.net.NamedCollection.Option... options)
        Deprecated.
        Specified by:
        getTopic in interface com.tangosol.net.Session
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface AutoCloseable
      • getResourceRegistry

        public com.tangosol.util.ResourceRegistry getResourceRegistry()
        Deprecated.
        Specified by:
        getResourceRegistry in interface com.tangosol.net.Session
      • getInterceptorRegistry

        public com.tangosol.net.events.InterceptorRegistry getInterceptorRegistry()
        Deprecated.
        Specified by:
        getInterceptorRegistry in interface com.tangosol.net.Session
      • isCacheActive

        public boolean isCacheActive​(String sCacheName,
                                     ClassLoader loader)
        Deprecated.
        Specified by:
        isCacheActive in interface com.tangosol.net.Session
      • isMapActive

        public boolean isMapActive​(String sMapName,
                                   ClassLoader loader)
        Deprecated.
        Specified by:
        isMapActive in interface com.tangosol.net.Session
      • isTopicActive

        public boolean isTopicActive​(String sTopicName,
                                     ClassLoader loader)
        Deprecated.
        Specified by:
        isTopicActive in interface com.tangosol.net.Session
      • getService

        public com.tangosol.net.Service getService​(String sServiceName)
        Deprecated.
        Specified by:
        getService in interface com.tangosol.net.Session
      • getCacheNames

        public Set<String> getCacheNames()
        Deprecated.
        Returns the set of names of currently active caches that have been previously created by this session.
        Returns:
        the set of cache names
      • isClosed

        public boolean isClosed()
        Deprecated.
        Returns true if this session has been closed, otherwise returns false.
        Returns:
        true if this session has been closed, otherwise false
      • getChannel

        protected io.grpc.Channel getChannel()
        Deprecated.
        Return the communication channel.
        Returns:
        the communication channel
      • getSerializer

        public com.tangosol.io.Serializer getSerializer()
        Deprecated.
        Return the Serializer.
        Returns:
        the Serializer
      • getSerializerFormat

        public String getSerializerFormat()
        Deprecated.
        Return the serialization format.
        Returns:
        the serialization format
      • getAsyncCache

        public <K,​V> AsyncNamedCacheClient<K,​V> getAsyncCache​(String sCacheName,
                                                                          com.tangosol.net.NamedMap.Option... options)
        Deprecated.
        Return the AsyncNamedCacheClient based on the provided arguments.
        Type Parameters:
        K - the key type
        V - the value type
        Parameters:
        sCacheName - the cache name
        options - the cache options
        Returns:
        the AsyncNamedCacheClient