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

io.fabric8.kubernetes.mbeans.AppSummaryDTO Maven / Gradle / Ivy

The newest version!
/**
 *
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.fabric8.kubernetes.mbeans;

import java.util.ArrayList;
import java.util.List;

/**
 */
public class AppSummaryDTO {
    private String appPath;
    private String namespace;
    private List services = new ArrayList<>();
    private List replicationControllers = new ArrayList<>();
    private List pods = new ArrayList<>();

    public AppSummaryDTO() {
    }

    public AppSummaryDTO(String appPath, String namespace) {
        this.appPath = appPath;
        this.namespace = namespace;
    }

    @Override
    public String toString() {
        return "AppSummaryDTO{" +
                "namespace='" + namespace + '\'' +
                ", appPath='" + appPath + '\'' +
                ", services=" + services +
                ", replicationControllers=" + replicationControllers +
                ", pods=" + pods +
                '}';
    }

    public void addServiceSummary(AppServiceSummaryDTO dto) {
        services.add(dto);
    }

    public void addReplicationControllerSummary(AppReplicationControllerSummaryDTO dto) {
        replicationControllers.add(dto);
    }

    public void addPodSummary(AppPodSummaryDTO dto) {
        pods.add(dto);
    }

    public String getAppPath() {
        return appPath;
    }

    public void setAppPath(String appPath) {
        this.appPath = appPath;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public List getPods() {
        return pods;
    }

    public void setPods(List pods) {
        this.pods = pods;
    }

    public List getReplicationControllers() {
        return replicationControllers;
    }

    public void setReplicationControllers(List replicationControllers) {
        this.replicationControllers = replicationControllers;
    }

    public List getServices() {
        return services;
    }

    public void setServices(List services) {
        this.services = services;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy