|
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_PROVIDERThe factory's default SocketProvider. |
protected java.util.Map |
m_mapConfigA map of provider configurations, key'd by name. |
protected java.util.Map |
m_mapProviderA map of instantiated providers, key'd by name. |
protected XmlElement |
m_xmlThe configuration. |
static java.lang.String |
XML_NAMEThe name of the XmlElement in which SocketProviders are specified. |
static java.lang.String |
XML_PROVIDER_NAMEThe 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 error
public 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 XmlConfigurablepublic void setConfig(XmlElement xml)
setConfig in interface XmlConfigurablexml - 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 | |||||||