当前位置: 首页>>代码示例>>Java>>正文


Java ConfiguratorFactory.getStackConfigurator方法代码示例

本文整理汇总了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();
  }
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:11,代码来源:JGroupsUtils.java

示例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);
}
 
开发者ID:zjumty,项目名称:jgroups-3.6.4-fixed,代码行数:8,代码来源:PubSub.java

示例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;
}
 
开发者ID:zjumty,项目名称:jgroups-3.6.4-fixed,代码行数:11,代码来源:SharedTransportTest.java

示例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;
  }
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:6,代码来源:JGroupsUtils.java

示例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));
}
 
开发者ID:zjumty,项目名称:jgroups-3.6.4-fixed,代码行数:9,代码来源:JChannel.java


注:本文中的org.jgroups.conf.ConfiguratorFactory.getStackConfigurator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。