List of usage examples for java.net InetSocketAddress InetSocketAddress
public InetSocketAddress(int port)
From source file:com.linkedin.parseq.zk.server.ZKServer.java
public void restart() throws IOException, InterruptedException { shutdown(false);//from www . j a v a 2 s . c o m _zk = new ZooKeeperServer(_dataDir, _logDir, 5000); _factory = new NIOServerCnxnFactory(); _factory.configure(new InetSocketAddress(_port), 60); startup(); }