/** * Constructs a JChannel instance with the protocol stack configuration contained by the specified XML element. * @param properties An XML element containing a JGroups XML protocol stack configuration. */ public JChannel(Element properties) throws Exception { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Constructs a JChannel instance with the protocol stack configuration contained in the specified file. * @param file A file containing a JGroups XML protocol stack configuration. */ public JChannel(File file) throws Exception { this(ConfiguratorFactory.getStackConfigurator(file)); }
/** * Constructs a JChannel instance with the protocol stack configuration based upon the specified properties parameter. * @param props A file containing a JGroups XML configuration or a URL pointing to an XML configuration */ public JChannel(String props) throws Exception { this(ConfiguratorFactory.getStackConfigurator(props)); }
/** * Constructs a JChannel instance with the protocol stack configuration indicated by the specified URL. * @param properties A URL pointing to a JGroups XML protocol stack configuration. */ public JChannel(URL properties) throws Exception { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Creates a channel with a configuration based on an input stream. * @param input An input stream, pointing to a streamed configuration */ public JChannel(InputStream input) throws Exception { this(ConfiguratorFactory.getStackConfigurator(input)); }
/** * Creates a JChannel without a protocol stack; used for programmatic creation of channel and protocol stack * @param create_protocol_stack If true, the default config is used. If false, no protocol stack is created */ public JChannel(boolean create_protocol_stack) { if(create_protocol_stack) { try { init(ConfiguratorFactory.getStackConfigurator(Global.DEFAULT_PROTOCOL_STACK)); } catch(Exception e) { throw new RuntimeException(e); } } }
public ProtocolStackConfigurator run() throws Exception { return ConfiguratorFactory.getStackConfigurator(properties); } });
/** * Constructs a JChannel instance with the protocol stack configuration contained by the specified XML element. * @param properties An XML element containing a JGroups XML protocol stack configuration. */ public JChannel(Element properties) throws Exception { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Constructs a JChannel instance with the protocol stack configuration indicated by the specified URL. * @param properties A URL pointing to a JGroups XML protocol stack configuration. */ public JChannel(URL properties) throws Exception { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Creates a channel with a configuration based on an input stream. * @param input An input stream, pointing to a streamed configuration */ public JChannel(InputStream input) throws Exception { this(ConfiguratorFactory.getStackConfigurator(input)); }
/** * Constructs a JChannel instance with the protocol stack configuration contained in the specified file. * @param file A file containing a JGroups XML protocol stack configuration. */ public JChannel(File file) throws Exception { this(ConfiguratorFactory.getStackConfigurator(file)); }
/** * Constructs a JChannel instance with the protocol stack configuration based upon the specified properties parameter. * @param props A file containing a JGroups XML configuration or a URL pointing to an XML configuration */ public JChannel(String props) throws Exception { this(ConfiguratorFactory.getStackConfigurator(props)); }
/** * Constructs a <code>JChannelFactory</code> instance that utilizes the * specified file for protocl stack configuration. * * @param properties a URL pointing to a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the interpretation of * the protocol stack configuration. */ public JChannelFactory(URL properties) throws ChannelException { configurator=ConfiguratorFactory.getStackConfigurator(properties); }
/** * Constructs a <code>JChannel</code> instance with the protocol stack * configuration contained by the specified XML element. * * @param properties a XML element containing a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the configuration or * initialization of the protocol stack. */ public JChannel(Element properties) throws ChannelException { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Constructs a <code>JChannel</code> instance with the protocol stack * configuration indicated by the specified URL. * * @param properties a URL pointing to a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the configuration or * initialization of the protocol stack. */ public JChannel(URL properties) throws ChannelException { this(ConfiguratorFactory.getStackConfigurator(properties)); }
/** * Constructs a <code>JChannelFactory</code> instance that utilizes the * specified file for protocl stack configuration. * * @param properties a file containing a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the interpretation of * the protocol stack configuration. */ public JChannelFactory(File properties) throws ChannelException { configurator=ConfiguratorFactory.getStackConfigurator(properties); }
/** * Constructs a <code>JChannelFactory</code> instance that utilizes the * specified file for protocl stack configuration. * * @param properties a XML element containing a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the interpretation of * the protocol stack configuration. */ public JChannelFactory(Element properties) throws ChannelException { configurator=ConfiguratorFactory.getStackConfigurator(properties); }
/** * Constructs a <code>JChannel</code> instance with the protocol stack * configuration contained by the specified file. * * @param properties a file containing a JGroups XML protocol stack * configuration. * * @throws ChannelException if problems occur during the configuration or * initialization of the protocol stack. */ public JChannel(File properties) throws ChannelException { this(ConfiguratorFactory.getStackConfigurator(properties)); }
private static ProtocolStackConfigurator loadTcp() { try { return ConfiguratorFactory.getStackConfigurator("stacks/tcp.xml"); } catch (Exception e) { throw new RuntimeException(e); } }
private static ProtocolStackConfigurator loadUdp() { try { return ConfiguratorFactory.getStackConfigurator("stacks/udp.xml"); } catch (Exception e) { throw new RuntimeException(e); } }