public Client(Class valueClass,
Configuration conf) {
this.valueClass = valueClass;
this.timeout = conf.getInt("ipc.client.timeout", 10000);
this.maxIdleTime = conf.getInt("ipc.client.connection.maxidletime", 1000);
this.maxRetries = conf.getInt("ipc.client.connect.max.retries", 10);
this.conf = conf;
Thread t = new ConnectionCuller();
t.setDaemon(true);
t.setName(valueClass.getName() + " Connection Culler");
LOG.debug(valueClass.getName() +
"Connection culler maxidletime= " + maxIdleTime + "ms");
t.start();
}
Construct an IPC client whose values are of the given Writable
class. |