Package lib

Examples of lib.BreadcrumbList


            if (!Permissions.isPermitted(RestPermissions.OUTPUTS_READ)) {
                return redirect(routes.StartpageController.redirect());
            }
            List<Output> outputs = outputService.list();

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Outputs", routes.OutputsController.index());

            return ok(views.html.system.outputs.index.render(
                    currentUser(),
                    bc,
                    outputs,
View Full Code Here


    private NodeService nodeService;
    @Inject
    private ServerNodes serverNodes;

    public Result index() {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", routes.SystemController.index(0));
        bc.addCrumb("Logging", routes.LoggingController.index());

        Map<Node, List<InternalLogger>> loggers = Maps.newHashMap();
        Map<Node, Map<String, InternalLoggerSubsystem>> subsystems = Maps.newHashMap();
        for (Node node : serverNodes.all()) {
            loggers.put(node, node.allLoggers());
View Full Code Here

        return ok();
    }

    private static BreadcrumbList standardBreadcrumbs(Stream stream) {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("All Streams", routes.StreamsController.index());
        bc.addCrumb("Stream: " + stream.getTitle(), null);

        return bc;
    }
View Full Code Here

    public Result show(String radioId) {
        try {
            Radio radio = nodeService.loadRadio(radioId);

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(radio.getShortNodeId(), routes.RadiosController.show(radio.getId()));

            return ok(views.html.system.radios.show.render(currentUser(), bc, radio));
        } catch (NodeService.NodeNotFoundException e) {
            return status(404, views.html.errors.error.render(ApiClient.ERROR_MSG_NODE_NOT_FOUND, e, request()));
        }
View Full Code Here

    public Result threadDump(String radioId) {
        try {
            Radio radio = nodeService.loadRadio(radioId);

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(radio.getShortNodeId(), routes.RadiosController.show(radio.getId()));
            bc.addCrumb("Thread dump", routes.RadiosController.threadDump(radioId));

            return ok(views.html.system.threaddump.render(currentUser(), bc, radio, radio.getThreadDump()));
        } catch (IOException e) {
            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        } catch (APIException e) {
View Full Code Here

        this.serverNodes = serverNodes;
        this.pluginService = pluginService;
    }

    public Result nodes() {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", routes.SystemController.index(0));
        bc.addCrumb("Nodes", routes.NodesController.nodes());

        List<NodeJVMStats> serverJvmStats = isPermitted(JVMSTATS_READ) ? clusterService.getClusterJvmStats() : Collections.<NodeJVMStats>emptyList();
        Map<String, Node> nodes = serverNodes.asMap();
        Map<String, BufferInfo> bufferInfo = Maps.newHashMap();
View Full Code Here

        try {
            Node node = nodeService.loadNode(nodeId);

            List<Plugin> installedPlugins = pluginService.list(node);

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(node.getShortNodeId(), routes.NodesController.node(node.getNodeId()));

            return ok(views.html.system.nodes.show.render(currentUser(), bc, node, installedPlugins));
        } catch (NodeService.NodeNotFoundException e) {
            return status(404, views.html.errors.error.render(ApiClient.ERROR_MSG_NODE_NOT_FOUND, e, request()));
        } catch (IOException e) {
View Full Code Here

    public Result threadDump(String nodeId) {
        try {
            Node node = nodeService.loadNode(nodeId);

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(node.getShortNodeId(), routes.NodesController.node(node.getNodeId()));
            bc.addCrumb("Thread dump", routes.NodesController.threadDump(nodeId));

            return ok(views.html.system.threaddump.render(currentUser(), bc, node, node.getThreadDump()));
        } catch (IOException e) {
            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        } catch (APIException e) {
View Full Code Here

    public Result exportExtractors(String nodeId, String inputId) {
        try {
            Node node = nodeService.loadNode(nodeId);
            Input input = node.getInput(inputId);

            BreadcrumbList bc = standardBreadcrumbs(node, input);
            bc.addCrumb("Export", controllers.routes.ExtractorsController.exportExtractors(nodeId, inputId));

            Map<String, Object> result = Maps.newHashMap();
            List<Map<String, Object>> extractors = Lists.newArrayList();
            for (Extractor extractor : extractorService.all(node, input)) {
                extractors.add(extractor.export());
View Full Code Here

    public Result importExtractorsPage(String nodeId, String inputId) {
        try {
            Node node = nodeService.loadNode(nodeId);
            Input input = node.getInput(inputId);

            BreadcrumbList bc = standardBreadcrumbs(node, input);
            bc.addCrumb("Import", controllers.routes.ExtractorsController.importExtractorsPage(nodeId, inputId));

            return ok(views.html.system.inputs.extractors.importPage.render(
                    currentUser(),
                    bc,
                    node,
View Full Code Here

TOP

Related Classes of lib.BreadcrumbList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.