B
- In order to implement the builder pattern with a coherent type
hierarchy.org.refcodes.mixin.AliasAccessor
, org.refcodes.mixin.AliasAccessor.AliasBuilder<B>
, org.refcodes.mixin.AliasAccessor.AliasMutator
, org.refcodes.mixin.AliasAccessor.AliasProperty
, org.refcodes.component.Configurable<B>
, org.refcodes.component.Destroyable
, org.refcodes.component.Destroyable.DestroyAutomaton
, EurekaDataCenterTypeAccessor
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<B>
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
, EurekaServerDescriptorFactory
, org.refcodes.rest.HomePathAccessor
, org.refcodes.rest.HomePathAccessor.HomePathBuilder<B>
, org.refcodes.rest.HomePathAccessor.HomePathMutator
, org.refcodes.rest.HomePathAccessor.HomePathProperty
, org.refcodes.net.HostAccessor
, org.refcodes.net.HostAccessor.HostBuilder<B>
, org.refcodes.net.HostAccessor.HostMutator
, org.refcodes.net.HostAccessor.HostProperty
, org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B>
, org.refcodes.rest.HttpRegistryUrlAccessor
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
, org.refcodes.rest.HttpServerDescriptorAccessor<B>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<B>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<B>
, org.refcodes.rest.HttpServerDescriptorFactory<B>
, org.refcodes.component.Initializable
, org.refcodes.component.Initializable.InitializeAutomaton
, org.refcodes.component.InitializedAccessor
, org.refcodes.mixin.InstanceIdAccessor
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
, org.refcodes.net.IpAddressAccessor
, org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>
, org.refcodes.net.IpAddressAccessor.IpAddressMutator
, org.refcodes.net.IpAddressAccessor.IpAddressProperty
, org.refcodes.component.LifeCycleComponent
, org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton
, org.refcodes.component.LifeCycleStatusAccessor
, org.refcodes.component.Pausable
, org.refcodes.component.Pausable.PauseAutomaton
, org.refcodes.rest.PingPathAccessor
, org.refcodes.rest.PingPathAccessor.PingPathBuilder<B>
, org.refcodes.rest.PingPathAccessor.PingPathMutator
, org.refcodes.rest.PingPathAccessor.PingPathProperty
, org.refcodes.component.Resumable
, org.refcodes.component.Resumable.ResumeAutomaton
, org.refcodes.component.RunningAccessor
, org.refcodes.component.Startable
, org.refcodes.component.Startable.StartAutomaton
, org.refcodes.rest.StatusPathAccessor
, org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<B>
, org.refcodes.rest.StatusPathAccessor.StatusPathMutator
, org.refcodes.rest.StatusPathAccessor.StatusPathProperty
, org.refcodes.component.Stoppable
, org.refcodes.component.Stoppable.StopAutomaton
, org.refcodes.security.TrustStoreDescriptorAccessor
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
, org.refcodes.net.VirtualHostAccessor
, org.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<B>
, org.refcodes.net.VirtualHostAccessor.VirtualHostMutator
, org.refcodes.net.VirtualHostAccessor.VirtualHostProperty
EurekaRegistrySidecar
, EurekaRestServer
EurekaRegistrySidecarImpl
, EurekaRestServerDecorator
, EurekaRestServerImpl
public interface EurekaRegistry<B extends EurekaRegistry<B>> extends org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B>, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<B>, org.refcodes.rest.HomePathAccessor.HomePathProperty, org.refcodes.rest.HomePathAccessor.HomePathBuilder<B>, org.refcodes.rest.StatusPathAccessor.StatusPathProperty, org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<B>, EurekaServerDescriptorFactory
EurekaRegistry
describes the functionality required in
order to register a service at a service registry and discovery service.
This type is intended to be used by different separate hierarchy branches by
providing the generic type <B>, ensuring a coherent type hierarchy for
each branch.org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
org.refcodes.component.Configurable.ConfigureAutomaton<CTX extends Object>, org.refcodes.component.Configurable.ConfigureBuilder<CTX extends Object,B extends org.refcodes.component.Configurable.ConfigureBuilder<CTX,B>>
org.refcodes.component.Destroyable.DestroyAutomaton
EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<B extends EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<?>>, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
org.refcodes.rest.HomePathAccessor.HomePathBuilder<B extends org.refcodes.rest.HomePathAccessor.HomePathBuilder<?>>, org.refcodes.rest.HomePathAccessor.HomePathMutator, org.refcodes.rest.HomePathAccessor.HomePathProperty
org.refcodes.net.HostAccessor.HostBuilder<B extends org.refcodes.net.HostAccessor.HostBuilder<?>>, org.refcodes.net.HostAccessor.HostMutator, org.refcodes.net.HostAccessor.HostProperty
org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends org.refcodes.rest.HttpServerDescriptor,B extends org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends org.refcodes.rest.HttpServerDescriptor>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC extends org.refcodes.rest.HttpServerDescriptor>
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
org.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedProperty
org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.net.IpAddressAccessor.IpAddressMutator, org.refcodes.net.IpAddressAccessor.IpAddressProperty
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusMutator, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusProperty
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
org.refcodes.rest.PingPathAccessor.PingPathBuilder<B extends org.refcodes.rest.PingPathAccessor.PingPathBuilder<?>>, org.refcodes.rest.PingPathAccessor.PingPathMutator, org.refcodes.rest.PingPathAccessor.PingPathProperty
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
org.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningProperty
org.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<B extends org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<?>>, org.refcodes.rest.StatusPathAccessor.StatusPathMutator, org.refcodes.rest.StatusPathAccessor.StatusPathProperty
org.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
org.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.net.VirtualHostAccessor.VirtualHostMutator, org.refcodes.net.VirtualHostAccessor.VirtualHostProperty
Modifier and Type | Field | Description |
---|---|---|
static String |
EUREKA_BASE_PATH |
Modifier and Type | Method | Description |
---|---|---|
default void |
initialize(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,
org.refcodes.net.Url aRegistryUrl,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) |
Initializes the
HttpRegistryRestServer by registering it at the
service registry. |
default void |
initialize(String aAlias,
String aInstanceId,
org.refcodes.data.Scheme aScheme,
String aHost,
String aVirtualHost,
int[] aIpAddress,
int aPort,
String aPingPath,
org.refcodes.net.Url aRegistryUrl) |
|
default void |
initialize(String aAlias,
String aInstanceId,
org.refcodes.data.Scheme aScheme,
String aHost,
String aVirtualHost,
int[] aIpAddress,
int aPort,
String aPingPath,
EurekaDataCenterType aDataCenterType,
org.refcodes.net.Url aRegistryUrl) |
Initializes the
HttpRegistryRestServer by registering it at the
service registry. |
default B |
withEurekaDataCenterType(EurekaDataCenterType aDataCenterType) |
Sets the Eureka data center type to use and returns this builder as
of the builder pattern.
|
default B |
withHomePath(String aHomePath) |
|
default B |
withStatusPath(String aStatusPath) |
isDestroyable, isDestroyed
getEurekaDataCenterType
setEurekaDataCenterType
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
destroy, initialize, initialize, initialize, initialize, initialize, initialize, initialize, pause, resume, start, stop, withAlias, withCidrNotation, withHost, withHttpRegistryUrl, withHttpServerDescriptor, withInstanceId, withIpAddress, withPingPath, withTrustStoreDescriptor, withVirtualHost
setHttpRegistryUrl
getHttpServerDescriptor
setHttpServerDescriptor
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
isInitalizable
setInstanceId
fromCidrNotation, setIpAddress
isPausable, isPaused
setStatusPath
isStoppable, isStopped
getTrustStoreDescriptor
static final String EUREKA_BASE_PATH
default B withEurekaDataCenterType(EurekaDataCenterType aDataCenterType)
withEurekaDataCenterType
in interface EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<B extends EurekaRegistry<B>>
aDataCenterType
- The Eureka data center type to be stored
by the Eureka data center type property.EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder
instance to continue
configuration.default B withHomePath(String aHomePath)
withHomePath
in interface org.refcodes.rest.HomePathAccessor.HomePathBuilder<B extends EurekaRegistry<B>>
default B withStatusPath(String aStatusPath)
withStatusPath
in interface org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<B extends EurekaRegistry<B>>
default void initialize(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, org.refcodes.net.Url aRegistryUrl) throws org.refcodes.component.InitializeException
initialize
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
org.refcodes.component.InitializeException
default void initialize(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, EurekaDataCenterType aDataCenterType, org.refcodes.net.Url aRegistryUrl) throws org.refcodes.component.InitializeException
HttpRegistryRestServer
by registering it at the
service registry.aAlias
- The name ("alias") which identifies the server in the
registry.aInstanceId
- The ID for the instance when being registered at the
service registry. If omitted, then the host name is used.aScheme
- The Scheme
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.aRegistryUrl
- The registry server where to register.aDataCenterType
- The type of the data center your
EurekaRestServer
is running in.org.refcodes.component.InitializeException
- thrown in case initializing a component
caused problems. Usually a method similar to "initialize()"
throws such an exception.default void initialize(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, org.refcodes.net.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException
HttpRegistryRestServer
by registering it at the
service registry.aAlias
- The name ("alias") which identifies the server in the
registry.aInstanceId
- The ID for the instance when being registered at the
service registry. If omitted, then the host name is used.aScheme
- The Scheme
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 thisaHomePath
- The path to use as home-page end-point by thisaDataCenterType
- The type of the data center your
EurekaRestServer
is running in.aRegistryUrl
- The registry server where to register.aStoreDescriptor
- The descriptor describing the truststore for
(optionally) opening an HTTPS connection to the registry server.org.refcodes.component.InitializeException
- thrown in case initializing a component
caused problems. Usually a method similar to "initialize()"
throws such an exception.Copyright © 2018. All rights reserved.