Package io.fabric8.utils

Examples of io.fabric8.utils.TablePrinter.row()


        printer.column("id");

        List<String> containers = clusterService.getEnsembleContainers();
        if (containers != null) {
            for (String container : containers) {
                printer.row(container);
            }
        }
        printer.print();

        return null;
View Full Code Here


                }
            } catch (IOException e) {
                // ignore
            }
            if (verbose) {
                printer.row(id, pid, connected, type, path);
            } else {
                printer.row(id, pid, connected, type);
            }
        }
View Full Code Here

                // ignore
            }
            if (verbose) {
                printer.row(id, pid, connected, type, path);
            } else {
                printer.row(id, pid, connected, type);
            }
        }

        printer.print(out);
    }
View Full Code Here

        TablePrinter printer = new TablePrinter();
        printer.columns("variable", "value");

        for (String variable : installation.getEnvironment().keySet()) {
            String value = installation.getEnvironment().get(variable);
            printer.row(variable, value);
        }

        printer.print(out);
    }
View Full Code Here

            try {
                pid = "" + installation.getActivePid();
            } catch (IOException e) {
                pid = "<unknown>";
            }
            printer.row(id, pid, installation.getName());
        }

        printer.print(out);
    }
}
View Full Code Here

                    ManifestSchema manifest = desiredState.getManifest();
                    if (manifest != null) {
                        List<ManifestContainer> containers = manifest.getContainers();
                        for (ManifestContainer container : containers) {
                            String image = container.getImage();
                            table.row(id, image, host, labels, status);

                            id = "";
                            host = "";
                            status = "";
                            labels = "";
View Full Code Here

        Filter<ServiceSchema> filter = KubernetesHelpers.createServiceFilter(filterText);
        for (ServiceSchema item : items) {
            if (filter.matches(item)) {
                String labels = KubernetesHelpers.toLabelsString(item.getLabels());
                String selector = KubernetesHelpers.toLabelsString(item.getSelector());
                table.row(item.getId(), labels, selector, KubernetesHelpers.toPositiveNonZeroText(item.getPort()));
            }
        }
        table.print();
    }
View Full Code Here

                    selector = KubernetesHelpers.toLabelsString(desiredState.getReplicaSelector());
                }
                if (currentState != null) {
                    replicas = currentState.getReplicas();
                }
                table.row(id, labels, toPositiveNonZeroText(replicas), selector);
            }
        }
        table.print();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.