|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.SocketProviderFactory
public class SocketProviderFactory
The SocketProviderFactory produces SocketProviders.
Field Summary | |
---|---|
static SocketProvider |
DEFAULT_PROVIDER The factory's default SocketProvider. |
protected java.util.Map |
m_mapConfig A map of provider configurations, key'd by name. |
protected java.util.Map |
m_mapProvider A map of instantiated providers, key'd by name. |
protected XmlElement |
m_xml The configuration. |
static java.lang.String |
XML_NAME The name of the XmlElement in which SocketProviders are specified. |
static java.lang.String |
XML_PROVIDER_NAME The name of the XmlElement in which each SocketProvider is specified. |
Constructor Summary | |
---|---|
SocketProviderFactory() |
Method Summary | |
---|---|
SocketProvider |
createProvider(XmlElement xml) Create and return a SocketProvider based upon a supplied configuration. |
SocketProvider |
ensureProvider(XmlElement xml) Return an instance of the specified provider, creating it if necessary. |
XmlElement |
getConfig() Determine the current configuration of the object. |
void |
setConfig(XmlElement xml) Specify the configuration for the object. |
java.lang.String |
toString() |
Field Detail |
---|
protected XmlElement m_xml
protected java.util.Map m_mapConfig
protected java.util.Map m_mapProvider
public static final SocketProvider DEFAULT_PROVIDER
public static final java.lang.String XML_NAME
public static final java.lang.String XML_PROVIDER_NAME
Constructor Detail |
---|
public SocketProviderFactory()
Method Detail |
---|
public SocketProvider createProvider(XmlElement xml) throws java.io.IOException
xml
- the provider configurationjava.io.IOException
- if the provider cannot be created due to an I/O errorpublic SocketProvider ensureProvider(XmlElement xml) throws java.io.IOException
xml
- the provider definition, or null for the default providerjava.io.IOException
- if an I/O error occurspublic XmlElement getConfig()
getConfig
in interface XmlConfigurable
public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configuration for the objectpublic java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |