use of com.twosigma.beakerx.kernel.handler.CommInfoHandler in project beakerx by twosigma.
the class KernelHandlers method createHandlers.
private Map<JupyterMessages, KernelHandler<Message>> createHandlers(final CommOpenHandler commOpenHandler, final KernelHandler<Message> kernelInfoHandler) {
Map<JupyterMessages, KernelHandler<Message>> handlers = new HashMap<>();
if (kernelInfoHandler != null) {
handlers.put(JupyterMessages.KERNEL_INFO_REQUEST, kernelInfoHandler);
}
if (commOpenHandler != null) {
handlers.put(JupyterMessages.COMM_OPEN, commOpenHandler);
}
handlers.put(JupyterMessages.EXECUTE_REQUEST, new ExecuteRequestHandler(kernel));
handlers.put(JupyterMessages.COMPLETE_REQUEST, new CompleteHandler(kernel));
handlers.put(JupyterMessages.INSPECT_REQUEST, new InspectHandler(kernel));
handlers.put(JupyterMessages.HISTORY_REQUEST, new HistoryHandler(kernel));
handlers.put(JupyterMessages.COMM_INFO_REQUEST, new CommInfoHandler(kernel));
handlers.put(JupyterMessages.COMM_CLOSE, new CommCloseHandler(kernel));
handlers.put(JupyterMessages.COMM_MSG, new CommMsgHandler(kernel));
handlers.put(JupyterMessages.IS_COMPLETE_REQUEST, new IsCompleteRequestHandler(kernel));
return handlers;
}
use of com.twosigma.beakerx.kernel.handler.CommInfoHandler in project beakerx by twosigma.
the class JupyterHandlerTest method setUp.
@Before
public void setUp() {
commOpenHandler = new CommOpenHandler(kernel) {
@Override
public Handler<Message>[] getKernelControlChanelHandlers(String targetName) {
return (Handler<Message>[]) new Handler<?>[0];
}
};
commCloseHandler = new CommCloseHandler(kernel);
commInfoHandler = new CommInfoHandler(kernel);
commMsgHandler = new CommMsgHandler(kernel);
}
use of com.twosigma.beakerx.kernel.handler.CommInfoHandler in project beakerx by twosigma.
the class CommInfoHandlerTest method setUp.
@Before
public void setUp() {
kernel = new KernelTest();
commInfoHandler = new CommInfoHandler(kernel);
message = JupyterHandlerTest.initInfoMessage();
}
Aggregations