/** * Creates client worker. * * @param idx Worker index for worker thread naming. * @param endpoint Connected client endpoint. * @throws GridException If endpoint output stream cannot be obtained. */ protected ClientWorker(GridIpcEndpoint endpoint, int idx) throws GridException { super(ggfsCtx.kernalContext().gridName(), "ggfs-client-worker-" + idx, log); this.endpoint = endpoint; ses = new GridGgfsClientSession(); out = new GridGgfsDataOutputStream(new BufferedOutputStream(endpoint.outputStream())); }
/** * Creates client worker. * * @param idx Worker index for worker thread naming. * @param endpoint Connected client endpoint. * @throws GridException If endpoint output stream cannot be obtained. */ protected ClientWorker(GridIpcEndpoint endpoint, int idx) throws GridException { super(ggfsCtx.kernalContext().gridName(), "ggfs-client-worker-" + idx, log); this.endpoint = endpoint; ses = new GridGgfsClientSession(); out = new GridGgfsDataOutputStream(new BufferedOutputStream(endpoint.outputStream())); }