grpc added get node terminal, updated corefx to leverage get node terminal to launch local terminals on double click
This commit is contained in:
parent
43e18d820f
commit
a8061b811d
5 changed files with 63 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue