org.jgroups.conf
public class ConfiguratorFactory extends Object
Version: 1.0
Field Summary | |
---|---|
static String | JAXP_MISSING_ERROR_MSG |
Constructor Summary | |
---|---|
protected | ConfiguratorFactory() |
Method Summary | |
---|---|
static ProtocolStackConfigurator | getStackConfigurator(File file)
Returns a protocol stack configurator based on the XML configuration
provided by the specified File.
|
static ProtocolStackConfigurator | getStackConfigurator(URL url)
Returns a protocol stack configurator based on the XML configuration
provided at the specified URL.
|
static ProtocolStackConfigurator | getStackConfigurator(Element element)
Returns a protocol stack configurator based on the XML configuration
provided by the specified XML element.
|
static ProtocolStackConfigurator | getStackConfigurator(String properties)
Returns a protocol stack configurator based on the provided properties
string.
|
static ProtocolStackConfigurator | getStackConfigurator(Object properties)
Returns a protocol stack configurator based on the properties passed in. If the properties parameter is a plain string UDP:FRAG:MERGE:GMS etc, a PlainConfigurator is returned. If the properties parameter is a string that represents a url for example http://www.filip.net/test.xml or the parameter is a java.net.URL object, an XmlConfigurator is returned |
Parameters: file a File with a JGroups XML configuration.
Returns: a ProtocolStackConfigurator
containing the stack
configuration.
Throws: ChannelException if problems occur during the configuration of the protocol stack.
Parameters: url a URL pointing to a JGroups XML configuration.
Returns: a ProtocolStackConfigurator
containing the stack
configuration.
Throws: ChannelException if problems occur during the configuration of the protocol stack.
Parameters: element a XML element containing a JGroups XML configuration.
Returns: a ProtocolStackConfigurator
containing the stack
configuration.
Throws: ChannelException if problems occur during the configuration of the protocol stack.
Parameters: 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.
Deprecated: Used by the JChannel(Object) constructor which has been deprecated.
Returns a protocol stack configurator based on the properties passed in.Parameters: properties old style property string, url string, or java.net.URL object
Returns: a ProtocolStackConfigurator containing the stack configuration
Throws: IOException if it fails to parse the XML content IOException if the URL is invalid or a the content can not be reached