All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.github.dockerjava.api.command.TopContainerResponse Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fitbur.github.dockerjava.api.com.fitburmand;

import com.fitbur.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fitbur.fasterxml.jackson.annotation.JsonProperty;
import com.fitbur.google.com.fitburmon.base.Joiner;

/**
 *
 * @author marcus
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class TopContainerResponse {

    @JsonProperty("Titles")
    private String[] titles;

    @JsonProperty("Processes")
    private String[][] processes;

    public String[] getTitles() {
        return titles;
    }

    public String[][] getProcesses() {
        return processes;
    }

    @Override
    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("[");
        for (String[] fields : processes) {
            buffer.append("[" + Joiner.on("; ").skipNulls().join(fields) + "]");
        }
        buffer.append("]");

        return "TopContainerResponse{" + "titles=" + Joiner.on("; ").skipNulls().join(titles) + ", processes="
                + buffer.toString() + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy