public class JChannelFactory extends Object implements ChannelFactory, org.jgroups.ChannelListener, org.jgroups.conf.ProtocolStackConfigurator
Constructor and Description |
---|
JChannelFactory(ProtocolStackConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(org.jgroups.Channel channel) |
void |
channelConnected(org.jgroups.Channel channel) |
void |
channelDisconnected(org.jgroups.Channel channel) |
org.jgroups.Channel |
createChannel(String id)
Creates a JGroups channel
|
List<org.jgroups.conf.ProtocolConfiguration> |
getProtocolStack() |
String |
getProtocolStackString() |
ServerEnvironment |
getServerEnvironment() |
public JChannelFactory(ProtocolStackConfiguration configuration)
public ServerEnvironment getServerEnvironment()
getServerEnvironment
in interface ChannelFactory
public org.jgroups.Channel createChannel(String id) throws Exception
ChannelFactory
createChannel
in interface ChannelFactory
Exception
- if there was a failure setting up the protocol stackpublic String getProtocolStackString()
getProtocolStackString
in interface org.jgroups.conf.ProtocolStackConfigurator
ProtocolStackConfigurator.getProtocolStackString()
public List<org.jgroups.conf.ProtocolConfiguration> getProtocolStack()
getProtocolStack
in interface org.jgroups.conf.ProtocolStackConfigurator
ProtocolStackConfigurator.getProtocolStack()
public void channelConnected(org.jgroups.Channel channel)
channelConnected
in interface org.jgroups.ChannelListener
public void channelDisconnected(org.jgroups.Channel channel)
channelDisconnected
in interface org.jgroups.ChannelListener
public void channelClosed(org.jgroups.Channel channel)
channelClosed
in interface org.jgroups.ChannelListener
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.