Interface ConfigurableInstanceInfo
- All Known Implementing Classes:
InstanceInfo
public interface ConfigurableInstanceInfo
Interface implemented by
InstanceInfo modelling the data returned by the Eureka REST API.
See https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescription@NotBlank StringgetApp()The application name.The application group name.@jakarta.validation.constraints.Min(1L) intThe country id.@NotNull DataCenterInfoTheDataCenterInfoinstance.@NotBlank StringThe host name of the application instance.getId()Returns the unique id of the instance.@NotBlank StringThe instance id.@NotBlank StringThe IP address of the instance.TheLeaseInfoinstance.intgetPort()The port of the application instance.intThe secure port of the application instance.voidsetAppGroupName(String appGroupName) Sets the application group name.voidsetAsgName(String asgName) Sets the Amazon auto scaling group name to use.voidsetCountryId(int countryId) Sets the country id.voidsetDataCenterInfo(DataCenterInfo dataCenterInfo) Sets theDataCenterInfo.voidsetHealthCheckUrl(String healthCheckUrl) Sets the health check URL.voidsetHomePageUrl(String homePageUrl) Sets the home page URL.voidsetInstanceId(String instanceId) Sets the instance ID.voidSets the IP address of the instance.voidsetLeaseInfo(LeaseInfo leaseInfo) Sets theLeaseInfo.voidsetPort(int port) Sets the port of the application instance.voidsetSecureHealthCheckUrl(String secureHealthCheckUrl) Sets the secure health check URL.voidsetSecurePort(int securePort) Sets the secure port of the application instance.voidsetSecureVipAddress(String secureVipAddress) Sets the Secure Virtual Host Address.voidsetStatus(InstanceInfo.Status status) Sets the application status.voidsetStatusPageUrl(String statusPageUrl) Sets the status page URL.voidsetVipAddress(String vipAddress) Sets the Virtual Host Address.
-
Method Details
-
getHostName
The host name of the application instance.- Returns:
- The hostname
-
getId
String getId()Returns the unique id of the instance. (Note) now that id is set at creation time within the instanceProvider, why do the other checks? This is still necessary for backwards compatibility when upgrading in a deployment with multiple client versions (some with the change, some without).- Returns:
- the unique id.
-
getPort
int getPort()The port of the application instance.- Returns:
- The port
-
setPort
void setPort(int port) Sets the port of the application instance.- Parameters:
port- The port of the application instance
-
getSecurePort
int getSecurePort()The secure port of the application instance.- Returns:
- The secure port
-
setSecurePort
void setSecurePort(int securePort) Sets the secure port of the application instance.- Parameters:
securePort- The secure port of the application instance
-
getApp
The application name.- Returns:
- The application name
-
getAppGroupName
String getAppGroupName()The application group name.- Returns:
- The application group name
-
setAppGroupName
Sets the application group name.- Parameters:
appGroupName- The application group name
-
getInstanceId
The instance id.- Returns:
- The instance id
-
setInstanceId
Sets the instance ID.- Parameters:
instanceId- The instance ID
-
getCountryId
@Min(1L) @jakarta.validation.constraints.Min(1L) int getCountryId()The country id.- Returns:
- The country id
-
setCountryId
void setCountryId(int countryId) Sets the country id.- Parameters:
countryId- The country id
-
getIpAddr
The IP address of the instance.- Returns:
- The IP address
-
setIpAddr
Sets the IP address of the instance.- Parameters:
ipAddr- The IP address of the instance
-
getStatus
- Returns:
- The application status
-
setStatus
Sets the application status.- Parameters:
status- The application status
-
getDataCenterInfo
TheDataCenterInfoinstance.- Returns:
- The data center info
-
setDataCenterInfo
Sets theDataCenterInfo.- Parameters:
dataCenterInfo- TheDataCenterInfo
-
getLeaseInfo
LeaseInfo getLeaseInfo()TheLeaseInfoinstance.- Returns:
- The lease info
-
setLeaseInfo
Sets theLeaseInfo.- Parameters:
leaseInfo- TheLeaseInfo
-
getMetadata
- Returns:
- The instance metadata
-
getStatusPageUrl
String getStatusPageUrl()- Returns:
- The status page URL
-
setStatusPageUrl
Sets the status page URL.- Parameters:
statusPageUrl- The status page URL
-
getHomePageUrl
String getHomePageUrl()- Returns:
- The home page URL
-
setHomePageUrl
Sets the home page URL.- Parameters:
homePageUrl- The home page URL
-
getHealthCheckUrl
String getHealthCheckUrl()- Returns:
- The health check URL
-
setHealthCheckUrl
Sets the health check URL.- Parameters:
healthCheckUrl- The health check URL
-
getVipAddress
String getVipAddress()- Returns:
- The Virtual Host Address for this instance (defaults to the app name).
-
setVipAddress
Sets the Virtual Host Address.- Parameters:
vipAddress- The Virtual Host Address
-
getSecureVipAddress
String getSecureVipAddress()- Returns:
- The Secure Virtual Host Address for this instance (defaults to the app name)
-
setSecureVipAddress
Sets the Secure Virtual Host Address.- Parameters:
secureVipAddress- The Secure Virtual Host Address
-
getSecureHealthCheckUrl
String getSecureHealthCheckUrl()- Returns:
- The secure health check URL
-
setSecureHealthCheckUrl
Sets the secure health check URL.- Parameters:
secureHealthCheckUrl- The secure health check URL
-
getAsgName
String getAsgName()- Returns:
- The amazon auto scaling group name
-
setAsgName
Sets the Amazon auto scaling group name to use.- Parameters:
asgName- The Amazon auto scaling group name to use
-