Module org.refcodes.rest.ext.eureka
Package org.refcodes.rest.ext.eureka
Interface EurekaServerDescriptorFactory
- All Superinterfaces:
org.refcodes.rest.HttpServerDescriptorFactory<EurekaServerDescriptor>
- All Known Subinterfaces:
EurekaRegistry<B>
,EurekaRestServer
- All Known Implementing Classes:
EurekaRegistrySidecar
,EurekaRestServerDecorator
,EurekaRestServerImpl
public interface EurekaServerDescriptorFactory
extends org.refcodes.rest.HttpServerDescriptorFactory<EurekaServerDescriptor>
Implementation of the
EurekaServerDescriptorFactory
.-
Method Summary
Modifier and TypeMethodDescriptiondefault EurekaServerDescriptor
toHttpServerDescriptor
(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath) toHttpServerDescriptor
(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, String aStatusPath, String aHomePath, EurekaDataCenterType aDataCenterType) Prepares theHttpServerDescriptor
by creating it from this instance's state and the provided arguments.default EurekaServerDescriptor
toHttpServerDescriptor
(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, EurekaDataCenterType aDataCenterType) Prepares theHttpServerDescriptor
by creating it from this instance's state and the provided arguments.Methods inherited from interface org.refcodes.rest.HttpServerDescriptorFactory
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
-
Method Details
-
toHttpServerDescriptor
default EurekaServerDescriptor toHttpServerDescriptor(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, EurekaDataCenterType aDataCenterType) Prepares theHttpServerDescriptor
by creating it from this instance's state and the provided arguments. The provided arguments can modify theinstance's state. TheHttpServerDescriptor
as finally used is returned. You may modify this context and use it after modification to initialize the server viaHttpRegistry.initialize(HttpServerDescriptor, Url)
orHttpRegistry.initialize(HttpServerDescriptor, Url, TrustStoreDescriptor)
.- Parameters:
aAlias
- The name ("alias") which identifies the server in the registry.aInstanceId
- The TID for the instance when being registered at the service registry. If omitted, then the host name is used.aScheme
- TheScheme
to which this server is being attached (HTTP or HTTPS).aHost
- The host name to be used to address this server. If omitted, then the system's host name should be used.aVirtualHost
- The virtual host name to be used for resolving.aIpAddress
- The IP-Address identifying the host.aPort
- The port of your service being registered. Make sure, you do notaPingPath
- The path to use as health-check end-point by this server.- Returns:
- The
HttpServerDescriptor
as would be used when initializing this instance viaHttpRegistry.initialize()
-
toHttpServerDescriptor
default EurekaServerDescriptor toHttpServerDescriptor(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath) - Specified by:
toHttpServerDescriptor
in interfaceorg.refcodes.rest.HttpServerDescriptorFactory<EurekaServerDescriptor>
-
toHttpServerDescriptor
EurekaServerDescriptor toHttpServerDescriptor(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, String aStatusPath, String aHomePath, EurekaDataCenterType aDataCenterType) Prepares theHttpServerDescriptor
by creating it from this instance's state and the provided arguments. The provided arguments can modify theinstance's state. TheHttpServerDescriptor
as finally used is returned. You may modify this context and use it after modification to initialize the server viaHttpRegistry.initialize(HttpServerDescriptor, Url)
orHttpRegistry.initialize(HttpServerDescriptor, Url, TrustStoreDescriptor)
.- Parameters:
aAlias
- The name ("alias") which identifies the server in the registry.aInstanceId
- The TID for the instance when being registered at the service registry. If omitted, then the host name is used.aScheme
- TheScheme
to which this server is being attached (HTTP or HTTPS).aHost
- The host name to be used to address this server. If omitted, then the system's host name should be used.aVirtualHost
- The virtual host name to be used for resolving.aIpAddress
- The IP-Address identifying the host.aPort
- The port of your service being registered. Make sure, you do notaPingPath
- The path to use as health-check end-point by this server.aStatusPath
- The path to use as status-page end-point by this server.aHomePath
- The path to use as home-page end-point by this server.aDataCenterType
- The data center type to be used.- Returns:
- The
HttpServerDescriptor
as would be used when initializing this instance viaHttpRegistry.initialize()
-