本文整理汇总了Java中org.jgroups.conf.ConfiguratorFactory.getStackConfigurator方法的典型用法代码示例。如果您正苦于以下问题:Java ConfiguratorFactory.getStackConfigurator方法的具体用法?Java ConfiguratorFactory.getStackConfigurator怎么用?Java ConfiguratorFactory.getStackConfigurator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jgroups.conf.ConfiguratorFactory
的用法示例。
在下文中一共展示了ConfiguratorFactory.getStackConfigurator方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConfigurationString
import org.jgroups.conf.ConfiguratorFactory; //导入方法依赖的package包/类
public static String getConfigurationString(String properties) throws Exception {
ProtocolStackConfigurator configurator = ConfiguratorFactory.getStackConfigurator(properties);
StringBuffer ret = new StringBuffer();
for(ProtocolConfiguration config: configurator.getProtocolStack()) {
substituteVariables(config);
if (ret.length() > 0) ret.append(":");
ret.append(config.getProtocolString());
}
return ret.toString();
}
示例2: createSharedChannel
import org.jgroups.conf.ConfiguratorFactory; //导入方法依赖的package包/类
private static JChannel createSharedChannel(String singleton_name, String props) throws Exception {
ProtocolStackConfigurator config=ConfiguratorFactory.getStackConfigurator(props);
List<ProtocolConfiguration> protocols=config.getProtocolStack();
ProtocolConfiguration transport=protocols.get(0);
transport.getProperties().put(Global.SINGLETON_NAME, singleton_name);
return new JChannel(config);
}
示例3: createSharedChannel
import org.jgroups.conf.ConfiguratorFactory; //导入方法依赖的package包/类
private JChannel createSharedChannel(String singleton_name, String name) throws Exception {
ProtocolStackConfigurator config=ConfiguratorFactory.getStackConfigurator(channel_conf);
List<ProtocolConfiguration> protocols=config.getProtocolStack();
ProtocolConfiguration transport=protocols.get(0);
transport.getProperties().put(Global.SINGLETON_NAME, singleton_name);
JChannel ch=new JChannel(config);
if(name != null)
ch.setName(name);
return ch;
}
示例4: getConfigurator
import org.jgroups.conf.ConfiguratorFactory; //导入方法依赖的package包/类
public static ProtocolStackConfigurator getConfigurator(String properties) throws Exception {
ProtocolStackConfigurator configurator = ConfiguratorFactory.getStackConfigurator(properties);
JGroupsUtils.substituteVariables(configurator);
return configurator;
}
示例5: JChannel
import org.jgroups.conf.ConfiguratorFactory; //导入方法依赖的package包/类
/**
* Constructs a JChannel instance with the protocol stack configuration contained by the specified file.
* @param properties A file containing a JGroups XML protocol stack configuration.
* @throws Exception If problems occur during the configuration or initialization of the protocol stack.
*/
public JChannel(File properties) throws Exception {
this(ConfiguratorFactory.getStackConfigurator(properties));
}