Package org.jgroups.conf

Examples of org.jgroups.conf.ProtocolConfiguration


    Vector<Protocol> protocols = new Vector<Protocol>() ;
   
    // create the layer described by DEFAULTS
    protocol = Configurator.createProtocol(defaultProps, stack) ;
    // process the defaults
    protocol_configs.add(new ProtocolConfiguration(defaultProps)) ;
    protocols.add(protocol) ;
    Configurator.setDefaultValues(protocol_configs, protocols, StackType.IPv4) ;
   
    // get the value which should have been assigned a default
    int a = ((DEFAULTS)protocol).getA() ;
View Full Code Here


   
    // create the layer described by INETADDRESSES
    protocol = Configurator.createProtocol(configurableObjectsProps, stack) ;
   
    // process the defaults (want this eventually)
    protocol_configs.add(new ProtocolConfiguration(configurableObjectsProps)) ;
    protocols.add(protocol) ;
       
    // get the value which should have been assigned a default
    List<Object> configObjs = ((CONFIGOBJPROTOCOL)protocol).getConfigurableObjects() ;
    assert configObjs.size() == 1 ;
View Full Code Here

    }

    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;
    }
View Full Code Here

    Vector<Protocol> protocols = new Vector<Protocol>() ;
   
    // create the layer described by IPCHECK
    protocol = Configurator.createProtocol(ipCheckNoConsistentProps, stack) ;
    // process the defaults
    protocol_configs.add(new ProtocolConfiguration(ipCheckNoConsistentProps)) ;
    protocols.add(protocol) ;
   
        Map<String, Map<String,InetAddressInfo>> inetAddressMap = null ;
    try {
          inetAddressMap = Configurator.createInetAddressMap(protocol_configs, protocols) ;
View Full Code Here

    Vector<Protocol> protocols = new Vector<Protocol>() ;
   
    // create the layer described by IPCHECK
    protocol = Configurator.createProtocol(ipCheckConsistentProps, stack) ;
    // process the defaults
    protocol_configs.add(new ProtocolConfiguration(ipCheckConsistentProps)) ;
    protocols.add(protocol) ;
   
    Map<String, Map<String,InetAddressInfo>> inetAddressMap = null ;

    inetAddressMap = Configurator.createInetAddressMap(protocol_configs, protocols) ;
View Full Code Here

TOP

Related Classes of org.jgroups.conf.ProtocolConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.