@Override protected void render(Block html) { ContainerId containerID; try { containerID = ConverterUtils.toContainerId($(CONTAINER_ID)); } catch (IllegalArgumentException e) { html.p()._("Invalid containerId " + $(CONTAINER_ID))._(); return; } DIV<Hamlet> div = html.div("#content"); Container container = this.nmContext.getContainers().get(containerID); if (container == null) { div.h1("Unknown Container. Container might have completed, " + "please go back to the previous page and retry.")._(); return; } ContainerInfo info = new ContainerInfo(this.nmContext, container); info("Container information") ._("ContainerID", info.getId()) ._("ContainerState", info.getState()) ._("ExitStatus", info.getExitStatus()) ._("Diagnostics", info.getDiagnostics()) ._("User", info.getUser()) ._("TotalMemoryNeeded", info.getMemoryNeeded()) ._("TotalVCoresNeeded", info.getVCoresNeeded()) ._("logs", info.getShortLogLink(), "Link to logs"); html._(InfoBlock.class); } }
@Override protected void render(Block html) { ContainerId containerID; try { containerID = ContainerId.fromString($(CONTAINER_ID)); } catch (IllegalArgumentException e) { html.p()._("Invalid containerId " + $(CONTAINER_ID))._(); return; } DIV<Hamlet> div = html.div("#content"); Container container = this.nmContext.getContainers().get(containerID); if (container == null) { div.h1("Unknown Container. Container might have completed, " + "please go back to the previous page and retry.")._(); return; } ContainerInfo info = new ContainerInfo(this.nmContext, container); info("Container information") ._("ContainerID", info.getId()) ._("ContainerState", info.getState()) ._("ExitStatus", info.getExitStatus()) ._("Diagnostics", info.getDiagnostics()) ._("User", info.getUser()) ._("TotalMemoryNeeded", info.getMemoryNeeded()) ._("TotalVCoresNeeded", info.getVCoresNeeded()) ._("TotalGPUsNeeded", info.getGPUsNeeded()) ._("logs", info.getShortLogLink(), "Link to logs"); html._(InfoBlock.class); } }
@Override protected void render(Block html) { ContainerId containerID; try { containerID = ContainerId.fromString($(CONTAINER_ID)); } catch (IllegalArgumentException e) { html.p().__("Invalid containerId " + $(CONTAINER_ID)).__(); return; } DIV<Hamlet> div = html.div("#content"); Container container = this.nmContext.getContainers().get(containerID); if (container == null) { div.h1("Unknown Container. Container might have completed, " + "please go back to the previous page and retry.").__(); return; } ContainerInfo info = new ContainerInfo(this.nmContext, container); info("Container information") .__("ContainerID", info.getId()) .__("ContainerState", info.getState()) .__("ExitStatus", info.getExitStatus()) .__("Diagnostics", info.getDiagnostics()) .__("User", info.getUser()) .__("TotalMemoryNeeded", info.getMemoryNeeded()) .__("TotalVCoresNeeded", info.getVCoresNeeded()) .__("ExecutionType", info.getExecutionType()) .__("logs", info.getShortLogLink(), "Link to logs"); html.__(InfoBlock.class); } }
@Override protected void render(Block html) { ContainerId containerID; try { containerID = ConverterUtils.toContainerId($(CONTAINER_ID)); } catch (IllegalArgumentException e) { html.p()._("Invalid containerId " + $(CONTAINER_ID))._(); return; } DIV<Hamlet> div = html.div("#content"); Container container = this.nmContext.getContainers().get(containerID); if (container == null) { div.h1("Unknown Container. Container might have completed, " + "please go back to the previous page and retry.")._(); return; } ContainerInfo info = new ContainerInfo(this.nmContext, container); info("Container information") ._("ContainerID", info.getId()) ._("ContainerState", info.getState()) ._("ExitStatus", info.getExitStatus()) ._("Diagnostics", info.getDiagnostics()) ._("User", info.getUser()) ._("TotalMemoryNeeded", info.getMemoryNeeded()) ._("TotalVCoresNeeded", info.getVCoresNeeded()) ._("logs", info.getShortLogLink(), "Link to logs"); html._(InfoBlock.class); } }