private ProtocolData[] addSingletonName(ProtocolData[] orig, String singletonName) throws ChannelException { ProtocolData[] result = null; ProtocolData transport=orig[0]; ProtocolParameter singletonParam = new ProtocolParameter(Global.SINGLETON_NAME, singletonName); transport.override(new ProtocolParameter[]{ singletonParam}); result = orig; return result; }
public void setProtocolStackConfigurations(Map<String, ProtocolStackConfigInfo> configs) { this.injectedStacks = configs; if (state == STARTED) { // We're already running so this must be a ManagedComponent update // so apply immediately processInjectedStacks(); } }
public String getProtocolStackString() { return ProtocolStackUtil.getProtocolStackString(configuration); } }
public MuxChannel(ProtocolStackConfigurator configurator) throws ChannelException { super(configurator); this.defaultUpHandler(); }
@ManagementProperty(use={ViewUse.CONFIGURATION}, description="Whether to expose channels we create via JMX") public boolean isExposeChannels() { return super.isExposeChannels(); }
/** * {@link #parse(Element) Parses <code>properties</code>} and then adds * the resulting protocol stack configurations to the set available for use. * Same as * {@link #setMultiplexerConfig(Element, boolean) <code>setMultiplexerConfig(properties, true</code>}. * * @param properties document root node for XML content in the JGroups * <code>stacks.xml</code> format */ @Override public void setMultiplexerConfig(Element properties) throws Exception { setMultiplexerConfig(properties, true); }
public ProtocolData(String protocolName, String className, ProtocolParameter[] params) { mProtocolName = protocolName; mClassName = className; if (params != null) { this.override(params); } }
@Override public void postDeregister() { setServer(null); if (state == DESTROYED) state = UNREGISTERED; }
private synchronized void processInjectedStacks() { if (injectedStacks != null) { clearConfigurations(); stacks.putAll(injectedStacks); injectedStacks = null; } }
public MuxChannel(URL properties) throws ChannelException { super(properties); this.defaultUpHandler(); }
/** * {@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. Same as * {@link #setMultiplexerConfig(File, boolean) <code>setMultiplexerConfig(properties, true</code>}. * * @param properties file which must contain XML content in the JGroups * <code>stacks.xml</code> format */ @Override public void setMultiplexerConfig(File properties) throws Exception { setMultiplexerConfig(properties, true); }
/** * The actual startup work. * * @throws Exception */ protected void startService() throws Exception { // If the ProfileService injected stacks, process them now processInjectedStacks(); }
public MuxChannel(File properties) throws ChannelException { super(properties); this.defaultUpHandler(); }
/** * {@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. Same as * {@link #setMultiplexerConfig(URL, boolean) <code>setMultiplexerConfig(properties, true</code>}. * * @param properties URL which must contain XML content in the JGroups * <code>stacks.xml</code> format */ @Override public void setMultiplexerConfig(URL properties) throws Exception { setMultiplexerConfig(properties, true); }
public MuxChannel() throws ChannelException { super(); this.defaultUpHandler(); }
/** * {@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. Same as * {@link #setMultiplexerConfig(String, boolean) <code>setMultiplexerConfig(properties, true</code>}. * * @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 */ @Override public void setMultiplexerConfig(String properties) throws Exception { setMultiplexerConfig(properties, true); }
public MuxChannel(String properties) throws ChannelException { super(properties); this.defaultUpHandler(); }
/** * {@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. Same as * {@link #setMultiplexerConfig(Object, boolean) <code>setMultiplexerConfig(properties, true</code>}. * * @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 */ @Override public void setMultiplexerConfig(Object properties) throws Exception { setMultiplexerConfig(properties, true); }
public MuxChannel(Element properties) throws ChannelException { super(properties); this.defaultUpHandler(); }
public MuxChannel(JChannel ch) throws ChannelException { super(ch); this.defaultUpHandler(); }