Package com.tangosol.net
Class SocketProviderFactory.DefaultDependencies
java.lang.Object
com.tangosol.net.SocketProviderFactory.DefaultDependencies
- All Implemented Interfaces:
SocketProviderFactory.Dependencies
- Enclosing class:
SocketProviderFactory
public static class SocketProviderFactory.DefaultDependencies
extends Object
implements SocketProviderFactory.Dependencies
DefaultDependencies is a basic implementation of the Dependencies
interface.
Additionally, this class serves as a source of default dependency values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.net.SocketProviderFactory.Dependencies
SocketProviderFactory.Dependencies.ProviderType
-
Field Summary
Modifier and TypeFieldDescriptionA map of provider types, keyed by id.A map of SSL provider dependencies, keyed by id.protected Map
<String, SSLSocketProviderDependenciesBuilder> A map of SSL provider dependencies builder, keyed by id.protected Map
<String, TcpDatagramSocketProvider.Dependencies> A map of TCP Datagram provider dependencies, keyed by id.protected SocketProviderFactory
SocketProviderFactory referencing this Dependency object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddSocketProviderFactory.Dependencies.ProviderType
forsId
identifier to this SocketProviderFactory's Dependency mapping.void
addNamedSSLDependencies
(String sId, com.oracle.coherence.common.net.SSLSocketProvider.Dependencies deps) AddSSLSocketProvider.Dependencies
forsId
identifier to this SocketProviderFactory's Dependency mapping.void
void
AddTcpDatagramSocketProvider.Dependencies
forsId
identifier to this SocketProviderFactory's Dependency mapping.getProviderType
(String sId) Get the provider type for the given socket provider idGet the associated SocketProviderFactory for the Dependency object.com.oracle.coherence.common.net.SSLSocketProvider.Dependencies
getSSLDependencies
(String sId) Get the SSLSocketProvider's dependencies associated with the given socket provider idGet the TcpDatagramSocketProvider's dependencies associated with the given socket provider idvoid
Set the SocketProviderFactory referencing the Dependency object.
-
Field Details
-
m_mapSSLDependencies
protected Map<String,com.oracle.coherence.common.net.SSLSocketProvider.Dependencies> m_mapSSLDependenciesA map of SSL provider dependencies, keyed by id. -
m_mapSSLDependenciesBuilder
A map of SSL provider dependencies builder, keyed by id. Builder is removed from this map when realized SSLDependencies is placed inm_mapSSLDependencies
-
m_mapTCPDatagramDependencies
A map of TCP Datagram provider dependencies, keyed by id. -
m_mapProvider
A map of provider types, keyed by id. -
m_providerFactory
SocketProviderFactory referencing this Dependency object.
-
-
Constructor Details
-
DefaultDependencies
public DefaultDependencies()Construct a DefaultSocketProviderDependencies object.
-
-
Method Details
-
getTcpDatagramSocketDependencies
Get the TcpDatagramSocketProvider's dependencies associated with the given socket provider id- Specified by:
getTcpDatagramSocketDependencies
in interfaceSocketProviderFactory.Dependencies
- Parameters:
sId
- socket provider id- Returns:
- TcpDatagramSocketProvider's dependencies
-
getSSLDependencies
public com.oracle.coherence.common.net.SSLSocketProvider.Dependencies getSSLDependencies(String sId) Get the SSLSocketProvider's dependencies associated with the given socket provider id- Specified by:
getSSLDependencies
in interfaceSocketProviderFactory.Dependencies
- Parameters:
sId
- socket provider id- Returns:
- SSLSocketProvider's dependencies
-
getProviderType
Get the provider type for the given socket provider id- Specified by:
getProviderType
in interfaceSocketProviderFactory.Dependencies
- Parameters:
sId
- socket provider id- Returns:
- provider type
-
setSocketProviderFactory
Set the SocketProviderFactory referencing the Dependency object. This is needed mainly to resolve delegate socket provider for SSLSocketProvider.- Specified by:
setSocketProviderFactory
in interfaceSocketProviderFactory.Dependencies
- Parameters:
factory
- SocketProviderFactory referencing the Dependency object.
-
getSocketProviderFactory
Get the associated SocketProviderFactory for the Dependency object.- Specified by:
getSocketProviderFactory
in interfaceSocketProviderFactory.Dependencies
- Returns:
- SocketProviderFactory
-
addNamedProviderType
AddSocketProviderFactory.Dependencies.ProviderType
forsId
identifier to this SocketProviderFactory's Dependency mapping.- Parameters:
sId
- provider identifiertype
-SocketProviderFactory.Dependencies.ProviderType
-
addNamedSSLDependencies
public void addNamedSSLDependencies(String sId, com.oracle.coherence.common.net.SSLSocketProvider.Dependencies deps) AddSSLSocketProvider.Dependencies
forsId
identifier to this SocketProviderFactory's Dependency mapping.- Parameters:
sId
- provider identifierdeps
- SSL dependencies
-
addNamedTCPDatagramDependencies
public void addNamedTCPDatagramDependencies(String sId, TcpDatagramSocketProvider.Dependencies deps) AddTcpDatagramSocketProvider.Dependencies
forsId
identifier to this SocketProviderFactory's Dependency mapping.- Parameters:
sId
- provider identifierdeps
- TcpDatagram dependencies
-
addNamedSSLDependenciesBuilder
-
getSSLDependenciesBuilderMap
-