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

com.nepxion.discovery.common.entity.InstanceEntity Maven / Gradle / Ivy

Go to download

Nepxion Discovery is a solution for Spring Cloud with blue green, gray, weight, limitation, circuit breaker, degrade, isolation, monitor, tracing, dye, failover, async agent

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.common.entity;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import java.io.Serializable; import java.util.Map; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; public class InstanceEntity implements Serializable { private static final long serialVersionUID = -3001191508072178378L; private String serviceType; private String serviceId; private String version; private String region; private String environment; private String host; private int port; private Map metadata; public String getServiceType() { return serviceType; } public void setServiceType(String serviceType) { this.serviceType = serviceType; } public String getServiceId() { return serviceId; } public void setServiceId(String serviceId) { this.serviceId = serviceId; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public String getEnvironment() { return environment; } public void setEnvironment(String environment) { this.environment = environment; } public String getHost() { return host; } public void setHost(String host) { this.host = host; } public int getPort() { return port; } public void setPort(int port) { this.port = port; } public Map getMetadata() { return metadata; } public void setMetadata(Map metadata) { this.metadata = metadata; } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } @Override public boolean equals(Object object) { return EqualsBuilder.reflectionEquals(this, object); } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy