|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgroups.conf.ConfiguratorFactory
The ConfigurationFactory is a factory that returns a protocol stack configurator.
The protocol stack configurator is an object that read a stack configuration and
parses it so that the ProtocolStack can create a stack.
Currently the factory returns one of the following objects:
1. XmlConfigurator - parses XML files that are according to the jgroups-protocol.dtd
2. PlainConfigurator - uses the old style strings UDP:FRAG: etc etc
Field Summary | |
static java.lang.String |
JAXP_MISSING_ERROR_MSG
|
Constructor Summary | |
protected |
ConfiguratorFactory()
|
Method Summary | |
static ProtocolStackConfigurator |
getStackConfigurator(org.w3c.dom.Element element)
Returns a protocol stack configurator based on the XML configuration provided by the specified XML element. |
static ProtocolStackConfigurator |
getStackConfigurator(java.io.File file)
Returns a protocol stack configurator based on the XML configuration provided by the specified File. |
static ProtocolStackConfigurator |
getStackConfigurator(java.lang.Object properties)
Deprecated. Used by the JChannel(Object) constructor which has been deprecated. |
static ProtocolStackConfigurator |
getStackConfigurator(java.lang.String properties)
Returns a protocol stack configurator based on the provided properties string. |
static ProtocolStackConfigurator |
getStackConfigurator(java.net.URL url)
Returns a protocol stack configurator based on the XML configuration provided at the specified URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JAXP_MISSING_ERROR_MSG
Constructor Detail |
protected ConfiguratorFactory()
Method Detail |
public static ProtocolStackConfigurator getStackConfigurator(java.io.File file) throws ChannelException
file
- a File with a JGroups XML configuration.
ProtocolStackConfigurator
containing the stack
configuration.
ChannelException
- if problems occur during the configuration of
the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(java.net.URL url) throws ChannelException
url
- a URL pointing to a JGroups XML configuration.
ProtocolStackConfigurator
containing the stack
configuration.
ChannelException
- if problems occur during the configuration of
the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(org.w3c.dom.Element element) throws ChannelException
element
- a XML element containing a JGroups XML configuration.
ProtocolStackConfigurator
containing the stack
configuration.
ChannelException
- if problems occur during the configuration of
the protocol stack.public static ProtocolStackConfigurator getStackConfigurator(java.lang.String properties) throws ChannelException
properties
- an old style property string, a string representing a
system resource containing a JGroups XML configuration,
a string representing a URL pointing to a JGroups XML
XML configuration, or a string representing a file name
that contains a JGroups XML configuration.
ChannelException
public static ProtocolStackConfigurator getStackConfigurator(java.lang.Object properties) throws java.io.IOException
properties
- old style property string, url string, or java.net.URL object
java.io.IOException
- if it fails to parse the XML content
java.io.IOException
- if the URL is invalid or a the content can not be reached
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |