Lines Matching refs:factory
42 * the factory for the successful mechanism is stored in an internal
76 /** table of hosts successfully connected to and the factory used */
86 /** default factory for initial use for direct socket connection */
131 * successfully before, then use the same factory again. Otherwise,
144 * the fallback procedure and delegate to the initial factory.
150 RMISocketFactory factory;
154 * use the same factory.
156 factory = successTable.get(host);
157 if (factory != null) {
160 "previously successful factory found: " + factory);
162 return factory.createSocket(host, port);
229 factory = altFactoryList.elementAt(i);
232 "trying with factory: " + factory);
235 factory.createSocket(host, port)) {
245 proxyLog.log(Log.BRIEF, "factory failed: ", ex);
250 proxyLog.log(Log.BRIEF, "factory succeeded");
252 // factory succeeded, open new socket for caller's use
254 fallbackSocket = factory.createSocket(host, port);
287 // remember this successful host/factory pair
288 rememberFactory(host, factory);
296 * Remember a successful factory for connecting to host.
300 void rememberFactory(String host, RMISocketFactory factory) {
307 successTable.put(host, factory);
355 /** what factory to use to attempt connection */
356 private RMISocketFactory factory;
379 AsyncConnector(RMISocketFactory factory, String host, int port,
382 this.factory = factory;
408 Socket temp = factory.createSocket(host, port);
413 rememberFactory(host, factory);