client.stop();
}
public void getFileContent(String fileName) throws Exception {
GetFileContentRequest request = GetFileContentRequest.newBuilder().setFileName(fileName).build();
GetFileContentResponse response = slaveService.getFileContent(null, request);
System.out.println(response.getErrorCode());
System.out.println(response.getFileSize());
ByteString content = response.getContent();
System.out.println(content.size());
if (content.size() < 8192) {
System.out.println(content.toStringUtf8());
}
}