Class SniProxySocketFactory

java.lang.Object
org.apache.geode.cache.client.proxy.SniProxySocketFactory
All Implemented Interfaces:
SocketFactory, Declarable

public class SniProxySocketFactory extends Object implements SocketFactory, Declarable
A SocketFactory that connects a client to locators and servers through a SNI proxy.
  • Constructor Details

    • SniProxySocketFactory

      public SniProxySocketFactory()
    • SniProxySocketFactory

      public SniProxySocketFactory(String hostname, int port)
  • Method Details

    • initialize

      public void initialize(Cache cache, Properties properties)
      Description copied from interface: Declarable
      Initializes a user-defined object, owned by the given cache, using the given properties. Note that any uncaught exception thrown by this method will cause the Cache initialization to fail. Note that if this method is implemented then the deprecated init method should not be implemented. The product will call both methods assuming that only one will have a non-default implementation.
      Specified by:
      initialize in interface Declarable
      Parameters:
      cache - the cache that owns this declarable
      properties - Contains the parameters declared in the declarative xml file.
    • createSocket

      public Socket createSocket() throws IOException
      Description copied from interface: SocketFactory
      Create an unconnected tcp socket for establishing a client.
      Specified by:
      createSocket in interface SocketFactory
      Returns:
      an unconnected socket
      Throws:
      IOException - if the socket cannot be created
    • getHostname

      public String getHostname()
    • getPort

      public int getPort()