关闭 socket
parent
6311c74414
commit
d73133267b
|
@ -36,20 +36,19 @@ public class FdfsTest {
|
||||||
storageClient = new StorageClient(trackerServer, storageServer);
|
storageClient = new StorageClient(trackerServer, storageServer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @After
|
@After
|
||||||
// public void closeClient() {
|
public void closeClient() {
|
||||||
// LOGGER.info("close connection");
|
LOGGER.info("close connection");
|
||||||
// if(trackerServer != null){
|
if(trackerServer != null){
|
||||||
// try {
|
try {
|
||||||
// trackerServer.close();
|
trackerServer.finalize();
|
||||||
// trackerServer.finalize();
|
}catch (Exception e){
|
||||||
// }catch (Exception e){
|
e.printStackTrace();
|
||||||
// e.printStackTrace();
|
}catch (Throwable e){
|
||||||
// }catch (Throwable e){
|
e.printStackTrace();
|
||||||
// e.printStackTrace();
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
public void writeByteToFile(byte[] fbyte, String fileName) throws IOException {
|
public void writeByteToFile(byte[] fbyte, String fileName) throws IOException {
|
||||||
BufferedOutputStream bos = null;
|
BufferedOutputStream bos = null;
|
||||||
|
|
Loading…
Reference in New Issue