java.lang.Object
org.jgroups.JChannelFactory
- All Implemented Interfaces:
- ChannelFactory
- public class JChannelFactory
- extends java.lang.Object
- implements ChannelFactory
JChannelFactory creates pure Java implementations of the Channel
interface.
See JChannel for a discussion of channel properties.
|
Constructor Summary |
JChannelFactory()
Deprecated. This constructor should only be used in conjunction with the
deprecated getChannel(Object) method of this
class. |
JChannelFactory(org.w3c.dom.Element properties)
Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. |
JChannelFactory(java.io.File properties)
Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. |
JChannelFactory(java.lang.String properties)
Constructs a JChannel instance with the protocol stack
configuration based upon the specified properties parameter. |
JChannelFactory(java.net.URL properties)
Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. |
|
Method Summary |
Channel |
createChannel()
Creates a JChannel implementation of the
Channel interface using the protocol stack configuration
information specfied during construction of an instance of this factory. |
Channel |
createChannel(java.lang.Object properties)
Deprecated. JChannel's conversion to type-specific
construction, and the subsequent deprecation of its
JChannel(Object) constructor, necessitate the
deprecation of this factory method as well. Type-specific
protocol stack configuration should be specfied during
construction of an instance of this factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_configuration
private org.jgroups.conf.ProtocolStackConfigurator _configuration
JChannelFactory
public JChannelFactory()
- Deprecated. This constructor should only be used in conjunction with the
deprecated
getChannel(Object) method of this
class.
- Constructs a
JChannelFactory instance that contains no
protocol stack configuration.
JChannelFactory
public JChannelFactory(java.io.File properties)
throws ChannelException
- Constructs a
JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
JChannelFactory
public JChannelFactory(org.w3c.dom.Element properties)
throws ChannelException
- Constructs a
JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
JChannelFactory
public JChannelFactory(java.net.URL properties)
throws ChannelException
- Constructs a
JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
JChannelFactory
public JChannelFactory(java.lang.String properties)
throws ChannelException
- Constructs a
JChannel instance with the protocol stack
configuration based upon the specified properties parameter.
createChannel
public Channel createChannel(java.lang.Object properties)
throws ChannelException
- Deprecated.
JChannel's conversion to type-specific
construction, and the subsequent deprecation of its
JChannel(Object) constructor, necessitate the
deprecation of this factory method as well. Type-specific
protocol stack configuration should be specfied during
construction of an instance of this factory.
- Creates a
JChannel implementation of the
Channel interface.
- Specified by:
createChannel in interface ChannelFactory
createChannel
public Channel createChannel()
throws ChannelException
- Creates a
JChannel implementation of the
Channel interface using the protocol stack configuration
information specfied during construction of an instance of this factory.
- Specified by:
createChannel in interface ChannelFactory