@Test public void overview() { OverviewModel.SvgOverview overview = testSubject.overview(null); assertTrue(overview.getHeight() > 0); assertTrue(overview.getWidth() > 0); assertTrue(overview.getSvgObjects().length() > 0); System.out.println(overview.getSvgObjects()); }
@GetMapping("/v1/public/overview") public SvgOverview overview(final Principal principal) { auditLog.debug("[{}] Request to render an SVG cluster overview.", AuditLog.username(principal)); boolean multiContext = clusterController.isMultiContext(); AxonServerBoxMapping serverRegistry = new AxonServerBoxMapping(multiContext, clusterController.getName(), fonts); Element hubNodes = new Grouped(new Elements(10, 200, axonServerProvider, serverRegistry), "axonserverNodes"); Element clients = new Elements(10, 10, applicationProvider, new ApplicationBoxMapping(serverRegistry, fonts)); Element popups = new Elements(axonServerProvider, new AxonServerPopupMapping(serverRegistry, fonts)); Elements components = new Elements(hubNodes, clients, popups); Element background = new Clickable(new Rectangle(new Position(0, 0), components.dimension().increase(20, 20), new StyleClass("background")), ()-> "hidePopup()"); return new SvgOverview(new Elements(background, components)); }
OverviewModel { @GetMapping("/v1/public/overview") public SvgOverview overview(final Principal principal) { auditLog.debug("[{}] Request to render an SVG cluster overview.", AuditLog.username(principal)); boolean multiContext = clusterController.isMultiContext(); AxonServerBoxMapping serverRegistry = new AxonServerBoxMapping(multiContext, clusterController.getName(), fonts); Element hubNodes = new Grouped(new Elements(10, 200, axonServerProvider, serverRegistry), "axonserverNodes"); Element clients = new Elements(10, 10, applicationProvider, new ApplicationBoxMapping(serverRegistry, fonts)); Element popups = new Elements(axonServerProvider, new AxonServerPopupMapping(serverRegistry, fonts)); Elements components = new Elements(hubNodes, clients, popups); Element background = new Clickable(new Rectangle(new Position(0, 0), components.dimension().increase(20, 20), new StyleClass("background")), ()-> "hidePopup()"); return new SvgOverview(new Elements(background, components)); } }
OverviewModel { @GetMapping("/v1/public/overview") public SvgOverview overview(final Principal principal) { auditLog.debug("[{}] Request to render an SVG cluster overview.", AuditLog.username(principal)); boolean multiContext = clusterController.isMultiContext(); AxonServerBoxMapping serverRegistry = new AxonServerBoxMapping(multiContext, clusterController.getName(), fonts); Element hubNodes = new Grouped(new Elements(10, 200, axonServerProvider, serverRegistry), "axonserverNodes"); Element clients = new Elements(10, 10, applicationProvider, new ApplicationBoxMapping(serverRegistry, fonts)); Element popups = new Elements(axonServerProvider, new AxonServerPopupMapping(serverRegistry, fonts)); Elements components = new Elements(hubNodes, clients, popups); Element background = new Clickable(new Rectangle(new Position(0, 0), components.dimension().increase(20, 20), new StyleClass("background")), ()-> "hidePopup()"); return new SvgOverview(new Elements(background, components)); } OverviewModel(Topology clusterController,
                         Iterable<Application> applicationProvider,
                         Iterable<AxonServer> axonServerProvider); }
OverviewModel { @GetMapping("/v1/public/overview") public SvgOverview overview(final Principal principal) { auditLog.debug("[{}] Request to render an SVG cluster overview.", AuditLog.username(principal)); boolean multiContext = clusterController.isMultiContext(); AxonServerBoxMapping serverRegistry = new AxonServerBoxMapping(multiContext, clusterController.getName(), fonts); Element hubNodes = new Grouped(new Elements(10, 200, axonServerProvider, serverRegistry), "axonserverNodes"); Element clients = new Elements(10, 10, applicationProvider, new ApplicationBoxMapping(serverRegistry, fonts)); Element popups = new Elements(axonServerProvider, new AxonServerPopupMapping(serverRegistry, fonts)); Elements components = new Elements(hubNodes, clients, popups); Element background = new Clickable(new Rectangle(new Position(0, 0), components.dimension().increase(20, 20), new StyleClass("background")), ()-> "hidePopup()"); return new SvgOverview(new Elements(background, components)); } OverviewModel(Topology clusterController,
                         Iterable<Application> applicationProvider,
                         Iterable<AxonServer> axonServerProvider); @GetMapping("/v1/public/overview") SvgOverview overview(final Principal principal); }
OverviewModel { @GetMapping("/v1/public/overview") public SvgOverview overview(final Principal principal) { auditLog.debug("[{}] Request to render an SVG cluster overview.", AuditLog.username(principal)); boolean multiContext = clusterController.isMultiContext(); AxonServerBoxMapping serverRegistry = new AxonServerBoxMapping(multiContext, clusterController.getName(), fonts); Element hubNodes = new Grouped(new Elements(10, 200, axonServerProvider, serverRegistry), "axonserverNodes"); Element clients = new Elements(10, 10, applicationProvider, new ApplicationBoxMapping(serverRegistry, fonts)); Element popups = new Elements(axonServerProvider, new AxonServerPopupMapping(serverRegistry, fonts)); Elements components = new Elements(hubNodes, clients, popups); Element background = new Clickable(new Rectangle(new Position(0, 0), components.dimension().increase(20, 20), new StyleClass("background")), ()-> "hidePopup()"); return new SvgOverview(new Elements(background, components)); } OverviewModel(Topology clusterController,
                         Iterable<Application> applicationProvider,
                         Iterable<AxonServer> axonServerProvider); @GetMapping("/v1/public/overview") SvgOverview overview(final Principal principal);  }