Class SniProxySocketFactory

  • java.lang.Object
    • org.apache.geode.cache.client.proxy.SniProxySocketFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket createSocket()
      Create an unconnected tcp socket for establishing a client.
      java.lang.String getHostname()  
      int getPort()  
      void initialize​(Cache cache, java.util.Properties properties)
      Initializes a user-defined object, owned by the given cache, using the given properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SniProxySocketFactory

        public SniProxySocketFactory()
      • SniProxySocketFactory

        public SniProxySocketFactory​(java.lang.String hostname,
                                     int port)
    • Method Detail

      • initialize

        public void initialize​(Cache cache,
                               java.util.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.

        Note that this method is only called when a Cache is created using gfsh cluster configuration or a declarative XML file. It will not be called when a Cache is created without XML using the Java APIs directly.

        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 java.net.Socket createSocket()
                                     throws java.io.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:
        java.io.IOException - if the socket cannot be created
      • getHostname

        public java.lang.String getHostname()
      • getPort

        public int getPort()