/** * {@link #parse(InputStream) Parses} an input stream created from * <code>properties</code> and then adds the resulting protocol stack * configurations to the set available for use. * * @param properties file which must contain XML content in the JGroups * <code>stacks.xml</code> format * @param replace <code>true</code> if a configuration with the same * stack name as an already registered configuration should * replace that configuration; <code>false</code> if it * should be discarded. */ public void setMultiplexerConfig(File properties, boolean replace) throws Exception { InputStream input=ConfiguratorFactory.getConfigStream(properties); addConfigs(input, properties.toString(), replace); }
/** * {@link #parse(InputStream) Parses} an input stream created from * <code>properties</code> and then adds the resulting protocol stack * configurations to the set available for use. * * @param properties URL which must contain XML content in the JGroups * <code>stacks.xml</code> format * @param replace <code>true</code> if a configuration with the same * stack name as an already registered configuration should * replace that configuration; <code>false</code> if it * should be discarded. */ public void setMultiplexerConfig(URL url, boolean replace) throws Exception { InputStream input=ConfiguratorFactory.getConfigStream(url); addConfigs(input, url.toString(), replace); }
/** * {@link #parse(InputStream) Parses} an input stream created from * <code>properties</code> and then adds the resulting protocol stack * configurations to the set available for use. * * @param properties string that can be {@link ConfiguratorFactory#getConfigStream(String) converted into a stream} * which must contain XML content in the JGroups * <code>stacks.xml</code> format * @param replace <code>true</code> if a configuration with the same * stack name as an already registered configuration should * replace that configuration; <code>false</code> if it * should be discarded. */ @Override public void setMultiplexerConfig(String properties, boolean replace) throws Exception { InputStream input=ConfiguratorFactory.getConfigStream(properties); addConfigs(input, properties, replace); }
/** * {@link #parse(InputStream) Parses} an input stream created from * <code>properties</code> and then adds the resulting protocol stack * configurations to the set available for use. * * @param properties object that can be {@link ConfiguratorFactory#getConfigStream(Object) converted into a stream} * which must contain XML content in the JGroups * <code>stacks.xml</code> format * @param replace <code>true</code> if a configuration with the same * stack name as an already registered configuration should * replace that configuration; <code>false</code> if it * should be discarded. */ public void setMultiplexerConfig(Object properties, boolean replace) throws Exception { InputStream input=ConfiguratorFactory.getConfigStream(properties); addConfigs(input, properties.toString(), replace); }