grpc added get node terminal, updated corefx to leverage get node terminal to launch local terminals on double click

This commit is contained in:
bharnden 2019-05-31 22:20:19 -07:00
parent 43e18d820f
commit a8061b811d
5 changed files with 63 additions and 6 deletions

View file

@ -955,8 +955,15 @@ public class CoreGrpcClient implements ICoreClient {
@Override
public String getTerminalCommand(CoreNode node) throws IOException {
// TODO: convert
return null;
CoreProto.GetNodeTerminalRequest request = CoreProto.GetNodeTerminalRequest.newBuilder()
.setSessionId(sessionId)
.setNodeId(node.getId())
.build();
try {
return blockingStub.getNodeTerminal(request).getTerminal();
} catch (StatusRuntimeException ex) {
throw new IOException(ex);
}
}
@Override