@Override public synchronized void setSocketFactory (String sFactory) { socketFactoryString = sFactory; setAttr (getAttrs(),"socketFactory", socketFactoryString); setModified (true); }
public synchronized void setHost (String host) { setProperty (getProperties ("channel"), "host", host); setModified (true); } public String getHost () {
public void setConfiguration(Configuration cfg) throws ConfigurationException { qmux.setConfiguration(cfg); } }
@Test public void waitForWorkersOnStopStopsAfterChannelConnects() throws Exception { StubISOChannel channel = new StubISOChannel(); // repeat test to ensure clean up occurs after stop for (int i = 0; i < 100; i++) { channelAdaptor = configureAndStart(new ChannelAdaptorWithoutQ2(channel)); waitForSenderAndReceiverToStart(); assertCallToStopCompletes(i); } }
public synchronized void setHost(String host) { setProperty(getProperties("channel"), "host", host); setModified(true); }
public synchronized void setSocketFactory (String sFac) { setProperty(getProperties("channel"), "socketFactory", sFac); setModified(true); } public String getSocketFactory() {
public synchronized void setQmuxName (String muxName) { this.qmuxName = muxName; setAttr (getAttrs (), "qmuxName", muxName); setModified (true); }
public void request(ISOMsg m, long timeout, ISOResponseListener rl, Object handBack) throws ISOException { qmux.request(m, timeout, rl, handBack); } public void setConfiguration(Configuration cfg)
public String getSocketFactory() { return getProperty(getProperties ("channel"), "socketFactory"); } public void dump (PrintStream p, String indent) {
public boolean isConnected() { for (MUX m : mux) if (isUsable(m)) return true; return false; } protected MUX firstAvailableMUX (long maxWait) {
public MultiSessionChannelAdaptor () { super (); resetCounters(); } public void initService() throws ConfigurationException {
public QMUXProxy (QMUX qmux) throws RemoteException { super(); this.qmux = qmux; startService (); } private void startService () throws RemoteException
public ChannelAdaptor () { super (); resetCounters(); }
private void waitForSenderToExit() { join(sender); } private void waitForReceiverToExit() {
@Override public synchronized void setChannel (String channel) { channelString = channel; setAttr (getAttrs (), "channel", channelString); setModified (true); }
public synchronized void setSocketFactory(String sFac) { setProperty(getProperties("channel"), "socketFactory", sFac); setModified(true); }
@Override public synchronized void setPort (int port) { this.port = port; setAttr (getAttrs (), "port", port); setModified (true); }
@Override public synchronized void setMaxSessions (int maxSessions) { this.maxSessions = maxSessions; setAttr (getAttrs (), "maxSessions", maxSessions); setModified (true); }
@Override public synchronized void setPackager (String packager) { packagerString = packager; setAttr (getAttrs (), "packager", packagerString); setModified (true); }
@Override public synchronized void setMinSessions (int minSessions) { this.minSessions = minSessions; setAttr (getAttrs (), "minSessions", minSessions); setModified (true); }