Class SniProxySocketFactory
java.lang.Object
org.apache.geode.cache.client.proxy.SniProxySocketFactory
- All Implemented Interfaces:
SocketFactory,Declarable
A
SocketFactory that connects a client to locators and servers
through a SNI proxy.-
Field Summary
Fields inherited from interface org.apache.geode.cache.client.SocketFactory
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an unconnected tcp socket for establishing a client.intgetPort()voidinitialize(Cache cache, 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, waitMethods inherited from interface org.apache.geode.cache.Declarable
init
-
Constructor Details
-
SniProxySocketFactory
public SniProxySocketFactory() -
SniProxySocketFactory
-
-
Method Details
-
initialize
Description copied from interface:DeclarableInitializes a user-defined object, owned by the given cache, using the given properties. Note that any uncaught exception thrown by this method will cause theCacheinitialization 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:
initializein interfaceDeclarable- Parameters:
cache- the cache that owns this declarableproperties- Contains the parameters declared in the declarative xml file.
-
createSocket
Description copied from interface:SocketFactoryCreate an unconnected tcp socket for establishing a client.- Specified by:
createSocketin interfaceSocketFactory- Returns:
- an unconnected socket
- Throws:
IOException- if the socket cannot be created
-
getHostname
-
getPort
public int getPort()
-