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

com.tcdng.unify.core.UnifyContainerInfo Maven / Gradle / Ivy

There is a newer version: 2.1.64
Show newest version
/*
 * Copyright 2018-2020 The Code Department.
 * 
 * Licensed 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 com.tcdng.unify.core;

import java.util.Date;
import java.util.List;

/**
 * Unify container information data object.
 * 
 * @author Lateef Ojulari
 * @since 1.0
 */
public class UnifyContainerInfo {

    private String name;

    private String id;

    private String version;

    private String hostAddress;

    private String hostHome;

    private Date startTime;

    private long usedMemory;

    private long totalMemory;

    private boolean clusterMode;

    private boolean productionMode;

    private boolean deploymentMode;

    private List componentInfoList;

    private List interfaceInfoList;

    private List settingInfoList;

    public UnifyContainerInfo(String name, String id, String version, String hostAddress, String hostHome,
            Date startTime, long usedMemory, long totalMemory, boolean clusterMode, boolean productionMode,
            boolean deploymentMode, List componentInfoList,
            List interfaceInfoList, List settingInfoList) {
        this.name = name;
        this.id = id;
        this.version = version;
        this.hostAddress = hostAddress;
        this.hostHome = hostHome;
        this.startTime = startTime;
        this.usedMemory = usedMemory;
        this.totalMemory = totalMemory;
        this.clusterMode = clusterMode;
        this.productionMode = productionMode;
        this.deploymentMode = deploymentMode;
        this.componentInfoList = componentInfoList;
        this.interfaceInfoList = interfaceInfoList;
        this.settingInfoList = settingInfoList;
    }

    public String getName() {
        return name;
    }

    public String getId() {
        return id;
    }

    public String getVersion() {
        return version;
    }

    public String getHostAddress() {
        return hostAddress;
    }

    public String getHostHome() {
        return hostHome;
    }

    public Date getStartTime() {
        return startTime;
    }

    public long getUsedMemory() {
        return usedMemory;
    }

    public long getTotalMemory() {
        return totalMemory;
    }

    public boolean isClusterMode() {
        return clusterMode;
    }

    public boolean isProductionMode() {
        return productionMode;
    }

    public boolean isDeploymentMode() {
        return deploymentMode;
    }

    public List getComponentInfoList() {
        return componentInfoList;
    }

    public List getInterfaceInfoList() {
        return interfaceInfoList;
    }

    public List getSettingInfoList() {
        return settingInfoList;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("name=").append(name).append(',');
        sb.append("id=").append(id).append(',');
        sb.append("version=").append(version).append(',');
        sb.append("clusterMode=").append(clusterMode).append(',');
        sb.append("productionMode=").append(productionMode).append(',');
        sb.append("deploymentMode=").append(deploymentMode);
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy