@Override protected boolean matches(Boolean value, ServiceEndpoint endpoint) { return endpoint.getServicePort().isSecure() == value; } }
@Override protected String getValue(InstanceInfo data) { return data.getSecureVipAddress(); } }
public static InstanceInfo addServerId(InstanceInfo instanceInfo, String serverId) { return new InstanceInfo.Builder() .withInstanceInfo(instanceInfo) .withMetaData(SERVER_ID_KEY, serverId) .build(); }
public InetSocketAddress returnServiceAddress(InstanceInfo instanceInfo) { ServiceEndpoint endpoint = returnServiceEndpoint(instanceInfo); if (endpoint == null) { return null; } String address = endpoint.getAddress().getHostName(); if (address == null) { address = endpoint.getAddress().getIpAddress(); } return new InetSocketAddress(address, endpoint.getServicePort().getPort()); }
@Override protected String getValue(InstanceInfo data) { return data.getId(); } }
@Override public ServicePort build() { return new ServicePort("WebServer", 443, true); } },
protected DeltaDTO(Delta<T> delta) { this.id = delta.getId(); this.fieldName = delta.getField().getFieldName().name(); }
@Override public DataCenterInfo getValue(InstanceInfo instanceInfo) { return instanceInfo.getDataCenterInfo(); } });
@Override protected boolean matches(ProtocolType value, ServiceEndpoint endpoint) { return endpoint.getAddress().getProtocolType() == value; } }
@Override public HashSet<String> getValue(InstanceInfo instanceInfo) { return instanceInfo.getHealthCheckUrls(); } });
@Override public int hashCode() { return instanceInfo != null ? instanceInfo.hashCode() : 0; }
public SetStringDeltaDTO(Delta<Set<String>> delta) { super(delta); value = delta.getValue(); }
InstanceInfo.Builder update(InstanceInfo.Builder builder, T value) { accessor.update(builder, value); return builder; }
@Override public ServicePort build() { return new ServicePort(Names.REGISTRATION, EurekaTransports.DEFAULT_REGISTRATION_PORT, false); } },
public EnumDeltaDTO(Delta<Enum> delta) { super(delta); value = delta.getValue(); }
@Override public ServicePort build() { return new ServicePort("WebServer", 80, false); } },
public DataCenterInfoDTO(Delta<DataCenterInfo> delta) { super(delta); value = delta.getValue(); }
public ServicePort build() { return new ServicePort(name, port, secure, addressLabels); } }