| |
|
| java.lang.Object org.jgroups.JChannelFactory
JChannelFactory | public class JChannelFactory implements ChannelFactory(Code) | | JChannelFactory creates pure Java implementations of the Channel
interface.
See
JChannel for a discussion of channel properties.
|
Constructor Summary | |
public | JChannelFactory() Constructs a JChannelFactory instance that contains no
protocol stack configuration. | public | JChannelFactory(File properties) Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. | public | JChannelFactory(Element properties) Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. | public | JChannelFactory(URL properties) Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration. | public | JChannelFactory(String properties) Constructs a JChannel instance with the protocol stack
configuration based upon the specified properties parameter. |
JChannelFactory | public JChannelFactory()(Code) | | Constructs a JChannelFactory instance that contains no
protocol stack configuration.
|
JChannelFactory | public JChannelFactory(File properties) throws ChannelException(Code) | | Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
Parameters: properties - a file containing a JGroups XML protocol stackconfiguration. throws: ChannelException - if problems occur during the interpretation ofthe protocol stack configuration. |
JChannelFactory | public JChannelFactory(Element properties) throws ChannelException(Code) | | Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
Parameters: properties - a XML element containing a JGroups XML protocol stackconfiguration. throws: ChannelException - if problems occur during the interpretation ofthe protocol stack configuration. |
JChannelFactory | public JChannelFactory(URL properties) throws ChannelException(Code) | | Constructs a JChannelFactory instance that utilizes the
specified file for protocl stack configuration.
Parameters: properties - a URL pointing to a JGroups XML protocol stackconfiguration. throws: ChannelException - if problems occur during the interpretation ofthe protocol stack configuration. |
JChannelFactory | public JChannelFactory(String properties) throws ChannelException(Code) | | Constructs a JChannel instance with the protocol stack
configuration based upon the specified properties parameter.
Parameters: properties - an old style property string, a string representing asystem resource containing a JGroups XML configuration,a string representing a URL pointing to a JGroups XMLXML configuration, or a string representing a file namethat contains a JGroups XML configuration. throws: ChannelException - if problems occur during the interpretation ofthe protocol stack configuration. |
createChannel | public Channel createChannel(Object properties) throws ChannelException(Code) | | Creates a JChannel implementation of the
Channel interface.
Parameters: properties - the protocol stack configuration information; anull value means use the default protocolstack configuration. throws: ChannelException - if the creation of the channel failed. |
createChannel | public Channel createChannel() throws ChannelException(Code) | | Creates a JChannel implementation of the
Channel interface using the protocol stack configuration
information specfied during construction of an instance of this factory.
throws: ChannelException - if the creation of the channel failed. |
destroy | public void destroy()(Code) | | |
getMultiplexerConfig | public String getMultiplexerConfig()(Code) | | |
hasMuxChannel | public boolean hasMuxChannel(String stack_name, String id)(Code) | | Returns true if this factory has already registered MuxChannel with
given stack_name and an id, false otherwise.
Parameters: stack_name - name of the stack used Parameters: id - service id true if such MuxChannel exists, false otherwise |
isExposeChannels | public boolean isExposeChannels()(Code) | | |
isExposeProtocols | public boolean isExposeProtocols()(Code) | | |
setExposeChannels | public void setExposeChannels(boolean expose_channels)(Code) | | |
setExposeProtocols | public void setExposeProtocols(boolean expose_protocols)(Code) | | |
|
|
|