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

com.liveperson.ephemerals.deploy.DeploymentEndpoints Maven / Gradle / Ivy

There is a newer version: 1.0.0.7
Show newest version
package com.liveperson.ephemerals.deploy;

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

/**
 *
 * Network endpoints exposed by a deployment.
 *
 * Usually, {@link DeploymentHandler} will provide such endpoints when deployment is done.
 *
 * Default value is null
 *
 * Created by waseemh on 9/16/16.
 */
public class DeploymentEndpoints {

    List endpoints = new ArrayList<>();

    public List list() {
        return endpoints;
    }

    public void add(Endpoint endpoint) {
        endpoints.add(endpoint);
    }

    public static class Endpoint {

        public Endpoint(String name, String host, int port) {
            this.name = name;
            this.host = host;
            this.port = port;
        }

        private String name;

        private int port;

        private String host;

        public String getName() {
            return name;
        }

        public int getPort() {
            return port;
        }

        public void setPort(int port) {
            this.port = port;
        }

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy