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
Fields Modifier and Type Field Description protected Map<String,SocketProviderFactory.Dependencies.ProviderType>
m_mapProvider
A map of provider types, keyed by id.protected Map<String,com.oracle.coherence.common.net.SSLSocketProvider.Dependencies>
m_mapSSLDependencies
A map of SSL provider dependencies, keyed by id.protected Map<String,SSLSocketProviderDependenciesBuilder>
m_mapSSLDependenciesBuilder
A map of SSL provider dependencies builder, keyed by id.protected Map<String,TcpDatagramSocketProvider.Dependencies>
m_mapTCPDatagramDependencies
A map of TCP Datagram provider dependencies, keyed by id.protected SocketProviderFactory
m_providerFactory
SocketProviderFactory referencing this Dependency object.
-
Constructor Summary
Constructors Constructor Description DefaultDependencies()
Construct a DefaultSocketProviderDependencies object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNamedProviderType(String sId, SocketProviderFactory.Dependencies.ProviderType type)
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
addNamedSSLDependenciesBuilder(String sId, SSLSocketProviderDependenciesBuilder bldr)
void
addNamedTCPDatagramDependencies(String sId, TcpDatagramSocketProvider.Dependencies deps)
AddTcpDatagramSocketProvider.Dependencies
forsId
identifier to this SocketProviderFactory's Dependency mapping.SocketProviderFactory.Dependencies.ProviderType
getProviderType(String sId)
Get the provider type for the given socket provider idSocketProviderFactory
getSocketProviderFactory()
Get 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 idMap<String,SSLSocketProviderDependenciesBuilder>
getSSLDependenciesBuilderMap()
TcpDatagramSocketProvider.Dependencies
getTcpDatagramSocketDependencies(String sId)
Get the TcpDatagramSocketProvider's dependencies associated with the given socket provider idvoid
setSocketProviderFactory(SocketProviderFactory factory)
Set the SocketProviderFactory referencing the Dependency object.
-
-
-
Field Detail
-
m_mapSSLDependencies
protected Map<String,com.oracle.coherence.common.net.SSLSocketProvider.Dependencies> m_mapSSLDependencies
A map of SSL provider dependencies, keyed by id.
-
m_mapSSLDependenciesBuilder
protected Map<String,SSLSocketProviderDependenciesBuilder> 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
protected Map<String,TcpDatagramSocketProvider.Dependencies> m_mapTCPDatagramDependencies
A map of TCP Datagram provider dependencies, keyed by id.
-
m_mapProvider
protected Map<String,SocketProviderFactory.Dependencies.ProviderType> m_mapProvider
A map of provider types, keyed by id.
-
m_providerFactory
protected SocketProviderFactory m_providerFactory
SocketProviderFactory referencing this Dependency object.
-
-
Method Detail
-
getTcpDatagramSocketDependencies
public TcpDatagramSocketProvider.Dependencies getTcpDatagramSocketDependencies(String sId)
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
public SocketProviderFactory.Dependencies.ProviderType getProviderType(String sId)
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
public void setSocketProviderFactory(SocketProviderFactory factory)
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
public SocketProviderFactory getSocketProviderFactory()
Get the associated SocketProviderFactory for the Dependency object.- Specified by:
getSocketProviderFactory
in interfaceSocketProviderFactory.Dependencies
- Returns:
- SocketProviderFactory
-
addNamedProviderType
public void addNamedProviderType(String sId, SocketProviderFactory.Dependencies.ProviderType type)
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
public void addNamedSSLDependenciesBuilder(String sId, SSLSocketProviderDependenciesBuilder bldr)
-
getSSLDependenciesBuilderMap
public Map<String,SSLSocketProviderDependenciesBuilder> getSSLDependenciesBuilderMap()
-
-