Module org.refcodes.rest.ext.eureka
Package org.refcodes.rest.ext.eureka
Class EurekaRestServerDecorator
java.lang.Object
org.refcodes.rest.AbstractRestfulHttpServerDecorator<B>
org.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,RestfulEurekaServer>
org.refcodes.rest.ext.eureka.EurekaRestServerDecorator
- All Implemented Interfaces:
org.refcodes.component.Closable
,org.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
,org.refcodes.rest.RestfulHttpServer>> org.refcodes.component.Configurable<org.refcodes.rest.HttpRegistryContext<EurekaServerDescriptor>>
,org.refcodes.component.ConnectionComponent<org.refcodes.web.HttpServerContext>
,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
,org.refcodes.rest.RestfulHttpServer> org.refcodes.component.ConnectionOpenable<org.refcodes.web.HttpServerContext>
,org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,
,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext, org.refcodes.rest.RestfulHttpServer>> org.refcodes.component.ConnectionStatusAccessor
,org.refcodes.component.Destroyable
,org.refcodes.component.Destroyable.DestroyAutomaton
,org.refcodes.component.Initializable
,org.refcodes.component.Initializable.InitializeAutomaton
,org.refcodes.component.InitializedAccessor
,org.refcodes.component.LifecycleComponent
,org.refcodes.component.LifecycleComponent.LifecycleAutomaton
,org.refcodes.component.LifecycleStatusAccessor
,org.refcodes.component.LinkComponent
,org.refcodes.component.Openable
,org.refcodes.component.OpenedAccessor
,org.refcodes.component.Pausable
,org.refcodes.component.Pausable.PauseAutomaton
,org.refcodes.component.Resumable
,org.refcodes.component.Resumable.ResumeAutomaton
,org.refcodes.component.RunningAccessor
,org.refcodes.component.Startable
,org.refcodes.component.Startable.StartAutomaton
,org.refcodes.component.Stoppable
,org.refcodes.component.Stoppable.StopAutomaton
,org.refcodes.io.MaxConnectionsAccessor
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.AliasAccessor.AliasBuilder<RestfulEurekaServer>
,org.refcodes.mixin.AliasAccessor.AliasMutator
,org.refcodes.mixin.AliasAccessor.AliasProperty
,org.refcodes.mixin.InstanceIdAccessor
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<RestfulEurekaServer>
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
,org.refcodes.mixin.PortAccessor
,org.refcodes.mixin.PortAccessor.PortBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.mixin.PortAccessor.PortMutator
,org.refcodes.mixin.PortAccessor.PortProperty
,org.refcodes.net.IpAddressAccessor
,org.refcodes.net.IpAddressAccessor.IpAddressBuilder<RestfulEurekaServer>
,org.refcodes.net.IpAddressAccessor.IpAddressMutator
,org.refcodes.net.IpAddressAccessor.IpAddressProperty
,org.refcodes.observer.Observable<org.refcodes.rest.RestEndpoint>
,org.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
,org.refcodes.rest.RestfulServer> EurekaDataCenterTypeAccessor
,EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<RestfulEurekaServer>
,EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator
,EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
,EurekaRegistry<RestfulEurekaServer>
,EurekaServerDescriptorFactory
,RestfulEurekaServer
,org.refcodes.rest.HomePathAccessor
,org.refcodes.rest.HomePathAccessor.HomePathBuilder<RestfulEurekaServer>
,org.refcodes.rest.HomePathAccessor.HomePathMutator
,org.refcodes.rest.HomePathAccessor.HomePathProperty
,org.refcodes.rest.HomeRequestObserver
,org.refcodes.rest.HomeRequestObserverAccessor
,org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<RestfulEurekaServer>
,org.refcodes.rest.HttpExceptionHandlerAccessor
,org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
,org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
,org.refcodes.rest.HttpExceptionHandlingAccessor
,org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
,org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
,org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
,RestfulEurekaServer> org.refcodes.rest.HttpRegistryUrlAccessor
,org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<RestfulEurekaServer>
,org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator
,org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
,org.refcodes.rest.HttpServerDescriptorAccessor<EurekaServerDescriptor>
,org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<EurekaServerDescriptor,
,RestfulEurekaServer> org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<EurekaServerDescriptor>
,org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<EurekaServerDescriptor>
,org.refcodes.rest.HttpServerDescriptorFactory<EurekaServerDescriptor>
,org.refcodes.rest.PingPathAccessor
,org.refcodes.rest.PingPathAccessor.PingPathBuilder<RestfulEurekaServer>
,org.refcodes.rest.PingPathAccessor.PingPathMutator
,org.refcodes.rest.PingPathAccessor.PingPathProperty
,org.refcodes.rest.PingRequestObserver
,org.refcodes.rest.PingRequestObserverAccessor
,org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<RestfulEurekaServer>
,org.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
,RestfulEurekaServer> org.refcodes.rest.RestfulHttpServer
,org.refcodes.rest.RestfulServer
,org.refcodes.rest.StatusPathAccessor
,org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<RestfulEurekaServer>
,org.refcodes.rest.StatusPathAccessor.StatusPathMutator
,org.refcodes.rest.StatusPathAccessor.StatusPathProperty
,org.refcodes.rest.StatusRequestObserver
,org.refcodes.rest.StatusRequestObserverAccessor
,org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<RestfulEurekaServer>
,org.refcodes.security.KeyStoreDescriptorAccessor
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
,org.refcodes.security.TrustStoreDescriptorAccessor
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<RestfulEurekaServer>
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
,org.refcodes.web.BaseLocatorAccessor
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<org.refcodes.rest.RestfulServer>
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
,org.refcodes.web.BasicAuthObservable<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.web.HostAccessor
,org.refcodes.web.HostAccessor.HostBuilder<RestfulEurekaServer>
,org.refcodes.web.HostAccessor.HostMutator
,org.refcodes.web.HostAccessor.HostProperty
,org.refcodes.web.HttpsConnectionRequestObservable<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.web.HttpServerInterceptable
,org.refcodes.web.MediaTypeFactoryLookup
,org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
,org.refcodes.web.PostHttpInterceptable<org.refcodes.web.PostHttpServerInterceptor>
,org.refcodes.web.PostHttpServerInterceptable
,org.refcodes.web.PreHttpInterceptable<org.refcodes.web.PreHttpServerInterceptor>
,org.refcodes.web.PreHttpServerInterceptable
,org.refcodes.web.RealmAccessor
,org.refcodes.web.RealmAccessor.RealmBuilder<org.refcodes.rest.RestfulServer>
,org.refcodes.web.RealmAccessor.RealmMutator
,org.refcodes.web.RealmAccessor.RealmProperty
,org.refcodes.web.SchemeAccessor
,org.refcodes.web.SchemeAccessor.SchemeBuilder<org.refcodes.rest.RestfulHttpServer>
,org.refcodes.web.SchemeAccessor.SchemeMutator
,org.refcodes.web.SchemeAccessor.SchemeProperty
,org.refcodes.web.VirtualHostAccessor
,org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<RestfulEurekaServer>
,org.refcodes.web.VirtualHostAccessor.VirtualHostMutator
,org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
- Direct Known Subclasses:
EurekaRestServer
public class EurekaRestServerDecorator
extends org.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,RestfulEurekaServer>
implements RestfulEurekaServer
The
EurekaRestServerDecorator
implements the RestfulEurekaServer
interface and decorates a given RestfulHttpServer
with functionality
such registering and unregistering from or to an Eureka discovery service.
Follow the documentation of the RestfulEurekaServer
in order to initiate
the states such as EurekaServiceStatus.UP
,
EurekaServiceStatus.DOWN
or
EurekaServiceStatus.OUT_OF_SERVICE
and unregistering.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.web.BaseLocatorAccessor
org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.component.Configurable
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>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionComponent
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,
B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,
B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomaton
Nested classes/interfaces inherited from interface org.refcodes.rest.ext.eureka.EurekaDataCenterTypeAccessor
EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<B extends EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<?>>, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HomePathAccessor
org.refcodes.rest.HomePathAccessor.HomePathBuilder<B extends org.refcodes.rest.HomePathAccessor.HomePathBuilder<?>>, org.refcodes.rest.HomePathAccessor.HomePathMutator, org.refcodes.rest.HomePathAccessor.HomePathProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HomeRequestObserverAccessor
org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<B extends org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<B>>, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverMutator, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverProperty
Nested classes/interfaces inherited from interface org.refcodes.web.HostAccessor
org.refcodes.web.HostAccessor.HostBuilder<B extends org.refcodes.web.HostAccessor.HostBuilder<?>>, org.refcodes.web.HostAccessor.HostMutator, org.refcodes.web.HostAccessor.HostProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor
org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor
org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor
org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor
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> Nested classes/interfaces inherited from interface org.refcodes.component.Initializable
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
Nested classes/interfaces inherited from interface org.refcodes.component.InitializedAccessor
org.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.InstanceIdAccessor
org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
Nested classes/interfaces inherited from interface org.refcodes.net.IpAddressAccessor
org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.net.IpAddressAccessor.IpAddressMutator, org.refcodes.net.IpAddressAccessor.IpAddressProperty
Nested classes/interfaces inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
Nested classes/interfaces inherited from interface org.refcodes.component.LifecycleComponent
org.refcodes.component.LifecycleComponent.LifecycleAutomaton, org.refcodes.component.LifecycleComponent.UncheckedLifecycleComponent
Nested classes/interfaces inherited from interface org.refcodes.component.LifecycleStatusAccessor
org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusBuilder<B extends org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusBuilder<B>>, org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusMutator, org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.component.LinkComponent
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.io.MaxConnectionsAccessor
org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
Nested classes/interfaces inherited from interface org.refcodes.web.MediaTypeFactoryLookup
org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
Nested classes/interfaces inherited from interface org.refcodes.component.Openable
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Pausable
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
Nested classes/interfaces inherited from interface org.refcodes.rest.PingPathAccessor
org.refcodes.rest.PingPathAccessor.PingPathBuilder<B extends org.refcodes.rest.PingPathAccessor.PingPathBuilder<?>>, org.refcodes.rest.PingPathAccessor.PingPathMutator, org.refcodes.rest.PingPathAccessor.PingPathProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.PingRequestObserverAccessor
org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<B extends org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<B>>, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.PortAccessor
org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
Nested classes/interfaces inherited from interface org.refcodes.web.RealmAccessor
org.refcodes.web.RealmAccessor.RealmBuilder<B extends org.refcodes.web.RealmAccessor.RealmBuilder<B>>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Resumable
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
Nested classes/interfaces inherited from interface org.refcodes.component.RunningAccessor
org.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningProperty
Nested classes/interfaces inherited from interface org.refcodes.web.SchemeAccessor
org.refcodes.web.SchemeAccessor.SchemeBuilder<B extends org.refcodes.web.SchemeAccessor.SchemeBuilder<B>>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Startable
org.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
Nested classes/interfaces inherited from interface org.refcodes.rest.StatusPathAccessor
org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<B extends org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<?>>, org.refcodes.rest.StatusPathAccessor.StatusPathMutator, org.refcodes.rest.StatusPathAccessor.StatusPathProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.StatusRequestObserverAccessor
org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<B extends org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<B>>, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverMutator, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Stoppable
org.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor
org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
Nested classes/interfaces inherited from interface org.refcodes.web.VirtualHostAccessor
org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
-
Field Summary
Fields inherited from class org.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator
_lifeCycleAutomaton, _pingRequestObserver
Fields inherited from class org.refcodes.rest.AbstractRestfulHttpServerDecorator
_server
Fields inherited from interface org.refcodes.rest.ext.eureka.EurekaRegistry
EUREKA_BASE_PATH
-
Constructor Summary
ConstructorDescriptionEurekaRestServerDecorator
(org.refcodes.rest.RestfulHttpServer aServer) Decorates the givenRestfulHttpServer
with discovery functionality.EurekaRestServerDecorator
(org.refcodes.rest.RestfulHttpServer aServer, ExecutorService aExecutorService) Decorates the givenRestfulHttpServer
with discovery functionality. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
Unregisters the given service at Eureka.protected void
doRegister
(EurekaServiceStatus aServiceStatus) Registers the given service at Eureka.protected void
doStatusUpdate
(EurekaServiceStatus aServiceStatus) Does a Eureka status update for the given service.org.refcodes.component.ConnectionStatus
Retrieves the Eureka data center type from the Eureka data center type property.org.refcodes.rest.RestRequestConsumer
org.refcodes.rest.HttpExceptionHandler
org.refcodes.rest.HttpExceptionHandling
org.refcodes.rest.RestRequestConsumer
void
initialize
(EurekaServerDescriptor aServerDescriptor, org.refcodes.rest.RestRequestConsumer aPingObserver, org.refcodes.rest.RestRequestConsumer aStatusObserver, org.refcodes.rest.RestRequestConsumer aHomeObserver, org.refcodes.web.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Initializes theRestfulHttpRegistryServer
by registering it at the service registry.boolean
void
pause()
void
resume()
void
setEurekaDataCenterType
(EurekaDataCenterType aDataCenterType) Sets the Eureka data center type for the Eureka data center type property.void
setHomePath
(String aHomePath) void
setHomeRequestConsumer
(org.refcodes.rest.RestRequestConsumer aRequestConsumer) void
setHttpExceptionHandler
(org.refcodes.rest.HttpExceptionHandler aHttpErrorHandler) void
setHttpExceptionHandling
(org.refcodes.rest.HttpExceptionHandling aHttpErrorHandling) void
setObserversActive
(boolean isActive) void
setStatusPath
(String aStatusPath) void
setStatusRequestConsumer
(org.refcodes.rest.RestRequestConsumer aRequestConsumer) void
start()
void
stop()
protected org.refcodes.rest.RestRequestConsumer
toHomeObserver
(org.refcodes.rest.RestRequestConsumer aHomeRequestObserver) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.protected org.refcodes.web.Url
toHttpRegistryUrl
(org.refcodes.web.Url aRegistryUrl) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.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.protected org.refcodes.rest.RestRequestConsumer
toStatusObserver
(org.refcodes.rest.RestRequestConsumer aStatusRequestObserver) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.withBaseLocator
(String aBaseLocator) withCidrNotation
(String aCidrNotation) withCloseIn
(int aCloseMillis) withEurekaDataCenterType
(EurekaDataCenterType aDataCenterType) Sets the Eureka data center type to use and returns this builder as of the builder pattern.withHomePath
(String aHomePath) withHomeRequestConsumer
(org.refcodes.rest.RestRequestConsumer aRequestConsumer) withHttpExceptionHandler
(org.refcodes.rest.HttpExceptionHandler aHttpErrorHandler) withHttpExceptionHandling
(org.refcodes.rest.HttpExceptionHandling aHttpErrorHandling) withHttpRegistryUrl
(org.refcodes.web.Url aUrl) withHttpServerDescriptor
(EurekaServerDescriptor aServerDescriptor) withInstanceId
(String aInstanceId) withIpAddress
(int[] aIpAddress) withKeyStoreDescriptor
(org.refcodes.security.KeyStoreDescriptor aKeyStoreDescriptor) withMaxConnections
(int aMaxConnections) withObserversActive
(boolean isActive) withOnHttpException
(org.refcodes.rest.HttpExceptionHandler aHttpExceptionHandler) withOpen
(int aPort) withOpen
(org.refcodes.web.HttpServerContext aConnection) withOpenUnchecked
(org.refcodes.web.HttpServerContext aConnection) withPingPath
(String aPingPath) withPort
(int aPort) withProtocol
(String aProtocol) withScheme
(org.refcodes.data.Scheme aScheme) withStatusPath
(String aStatusPath) withStatusRequestConsumer
(org.refcodes.rest.RestRequestConsumer aRequestConsumer) withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) withVirtualHost
(String aVirtualHost) Methods inherited from class org.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator
getAlias, getHost, getHttpRegistryUrl, getHttpServerDescriptor, getInstanceId, getIpAddress, getLifecycleStatus, getPingPath, getPingRequestObserver, getTrustStoreDescriptor, getVirtualHost, initialize, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, onPingRequest, setAlias, setHost, setHttpRegistryUrl, setHttpServerDescriptor, setInstanceId, setIpAddress, setPingPath, setTrustStoreDescriptor, setVirtualHost, toAlias, toHost, toHttpServerDescriptor, toInstanceId, toIpAddress, toPingObserver, toPingPath, toPort, toScheme, toTrustStoreDescriptor, toVirtualHost
Methods inherited from class org.refcodes.rest.AbstractRestfulHttpServerDecorator
addMediaTypeFactory, addPostHttpInterceptor, addPreHttpInterceptor, close, closeIn, closeQuietly, closeUnchecked, getBaseLocator, getFactoryMediaTypes, getKeyStoreDescriptor, getMaxConnections, getPort, getRealm, getScheme, hasMediaTypeFactory, hasObserver, hasPostHttpInterceptor, hasPreHttpInterceptor, observers, onBasicAuthRequest, onConnectionRequest, onDelete, onDelete, onGet, onGet, onPost, onPost, onPut, onPut, onRequest, onRequest, onRequest, onRequest, onRequest, open, open, open, open, openUnchecked, removePostHttpInterceptor, removePreHttpInterceptor, setBaseLocator, setKeyStoreDescriptor, setMaxConnections, setPort, setProtocol, setRealm, setScheme, subscribeObserver, toMediaTypeFactory, toProtocol, unsubscribeObserver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
Methods inherited from interface org.refcodes.mixin.AliasAccessor.AliasMutator
setAlias
Methods inherited from interface org.refcodes.mixin.AliasAccessor.AliasProperty
letAlias
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor
getBaseLocator
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
setBaseLocator
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
letBaseLocator
Methods inherited from interface org.refcodes.web.BasicAuthObservable
onBasicAuthRequest
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
Methods inherited from interface org.refcodes.component.Configurable
initializeUnchecked
Methods inherited from interface org.refcodes.component.ConnectionOpenable
openUnchecked
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
isOpened
Methods inherited from interface org.refcodes.component.Destroyable.DestroyAutomaton
isDestroyable, isDestroyed
Methods inherited from interface org.refcodes.rest.ext.eureka.EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
letEurekaDataCenterType
Methods inherited from interface org.refcodes.rest.ext.eureka.EurekaRegistry
initialize, initialize, initialize
Methods inherited from interface org.refcodes.rest.ext.eureka.EurekaServerDescriptorFactory
toHttpServerDescriptor, toHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.HomePathAccessor.HomePathProperty
letHomePath
Methods inherited from interface org.refcodes.web.HostAccessor
getHost
Methods inherited from interface org.refcodes.web.HostAccessor.HostMutator
setHost
Methods inherited from interface org.refcodes.web.HostAccessor.HostProperty
letHost
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
onHttpException
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
letHttpExceptionHandler
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
letHttpExceptionHandling
Methods inherited from interface org.refcodes.rest.HttpRegistry
initialize, initialize, initialize, initialize, initialize, initialize
Methods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor
getHttpRegistryUrl
Methods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator
setHttpRegistryUrl
Methods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
letHttpRegistryUrl
Methods inherited from interface org.refcodes.web.HttpsConnectionRequestObservable
onConnectionRequest
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor
getHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator
setHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty
letHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorFactory
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
Methods inherited from interface org.refcodes.web.HttpServerInterceptable
addHttpInterceptor, hasHttpInterceptor, removeHttpInterceptor
Methods inherited from interface org.refcodes.component.Initializable
initializeUnchecked
Methods inherited from interface org.refcodes.component.Initializable.InitializeAutomaton
isInitalizable
Methods inherited from interface org.refcodes.component.InitializedAccessor
isInitialized
Methods inherited from interface org.refcodes.mixin.InstanceIdAccessor
getInstanceId
Methods inherited from interface org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
setInstanceId
Methods inherited from interface org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
letInstanceId
Methods inherited from interface org.refcodes.net.IpAddressAccessor
getIpAddress, toCidrNotation
Methods inherited from interface org.refcodes.net.IpAddressAccessor.IpAddressMutator
fromCidrNotation, setIpAddress
Methods inherited from interface org.refcodes.net.IpAddressAccessor.IpAddressProperty
letIpAddress
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
getKeyStoreDescriptor
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
setKeyStoreDescriptor
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
letKeyStoreDescriptor
Methods inherited from interface org.refcodes.component.LifecycleStatusAccessor
getLifecycleStatus
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor
getMaxConnections
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
setMaxConnections
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
letMaxConnections
Methods inherited from interface org.refcodes.web.MediaTypeFactoryLookup
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
Methods inherited from interface org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
addMediaTypeFactory
Methods inherited from interface org.refcodes.observer.Observable
hasObserver, subscribeObserver, unsubscribeObserver
Methods inherited from interface org.refcodes.observer.Observers
disableObservers, enableObservers, observers
Methods inherited from interface org.refcodes.component.Openable
openUnchecked
Methods inherited from interface org.refcodes.component.Pausable
pauseUnchecked
Methods inherited from interface org.refcodes.component.Pausable.PauseAutomaton
isPausable, isPaused
Methods inherited from interface org.refcodes.rest.PingPathAccessor
getPingPath
Methods inherited from interface org.refcodes.rest.PingPathAccessor.PingPathMutator
setPingPath
Methods inherited from interface org.refcodes.rest.PingPathAccessor.PingPathProperty
letPingPath
Methods inherited from interface org.refcodes.rest.PingRequestObserver
onPingRequest
Methods inherited from interface org.refcodes.rest.PingRequestObserverAccessor
getPingRequestObserver
Methods inherited from interface org.refcodes.mixin.PortAccessor
getPort
Methods inherited from interface org.refcodes.mixin.PortAccessor.PortMutator
setPort
Methods inherited from interface org.refcodes.mixin.PortAccessor.PortProperty
letPort
Methods inherited from interface org.refcodes.web.PostHttpInterceptable
addPostHttpInterceptor, hasPostHttpInterceptor, removePostHttpInterceptor
Methods inherited from interface org.refcodes.web.PreHttpInterceptable
addPreHttpInterceptor, hasPreHttpInterceptor, removePreHttpInterceptor
Methods inherited from interface org.refcodes.web.RealmAccessor
getRealm
Methods inherited from interface org.refcodes.web.RealmAccessor.RealmMutator
setRealm
Methods inherited from interface org.refcodes.web.RealmAccessor.RealmProperty
letRealm
Methods inherited from interface org.refcodes.rest.ext.eureka.RestfulEurekaServer
initialize, initialize, initialize, initialize
Methods inherited from interface org.refcodes.rest.RestfulHttpRegistryServer
initialize, withPingRequestObserver
Methods inherited from interface org.refcodes.rest.RestfulHttpServer
open, open, open, open, open, open, open, open, open, open, open, open, open
Methods inherited from interface org.refcodes.rest.RestfulServer
onDelete, onDelete, onGet, onGet, onPost, onPost, onPut, onPut, onRequest, onRequest, onRequest, onRequest, onRequest
Methods inherited from interface org.refcodes.component.Resumable
resumeUnchecked
Methods inherited from interface org.refcodes.component.Resumable.ResumeAutomaton
isResumable
Methods inherited from interface org.refcodes.component.RunningAccessor
isRunning
Methods inherited from interface org.refcodes.web.SchemeAccessor
getScheme, toProtocol
Methods inherited from interface org.refcodes.web.SchemeAccessor.SchemeMutator
setProtocol, setScheme
Methods inherited from interface org.refcodes.web.SchemeAccessor.SchemeProperty
letProtocol, letScheme
Methods inherited from interface org.refcodes.component.Startable
startUnchecked
Methods inherited from interface org.refcodes.component.Startable.StartAutomaton
isStartable
Methods inherited from interface org.refcodes.rest.StatusPathAccessor.StatusPathProperty
letStatusPath
Methods inherited from interface org.refcodes.component.Stoppable
stopUnchecked
Methods inherited from interface org.refcodes.component.Stoppable.StopAutomaton
isStoppable, isStopped
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor
getTrustStoreDescriptor
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
setTrustStoreDescriptor
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
Methods inherited from interface org.refcodes.web.VirtualHostAccessor
getVirtualHost
Methods inherited from interface org.refcodes.web.VirtualHostAccessor.VirtualHostMutator
setVirtualHost
Methods inherited from interface org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
letVirtualHost
-
Constructor Details
-
EurekaRestServerDecorator
public EurekaRestServerDecorator(org.refcodes.rest.RestfulHttpServer aServer) Decorates the givenRestfulHttpServer
with discovery functionality. UseAbstractRestfulHttpRegistryServerDecorator.initialize()
,start()
,pause()
,resume()
,stop()
anddestroy()
for publishing status updates to Eureka. UseRestfulHttpServer.open(org.refcodes.web.HttpServerContext)
or similar to activate your server.- Parameters:
aServer
- TheRestfulHttpServer
to be decorated.
-
EurekaRestServerDecorator
public EurekaRestServerDecorator(org.refcodes.rest.RestfulHttpServer aServer, ExecutorService aExecutorService) Decorates the givenRestfulHttpServer
with discovery functionality. UseAbstractRestfulHttpRegistryServerDecorator.initialize()
,start()
,pause()
,resume()
,stop()
anddestroy()
for publishing status updates to Eureka. UseRestfulHttpServer.open(org.refcodes.web.HttpServerContext)
or similar to activate your server.- Parameters:
aServer
- TheRestfulHttpServer
to be decorated.aExecutorService
- An executor service to be used when creatingThread
s.
-
-
Method Details
-
initialize
public void initialize(EurekaServerDescriptor aServerDescriptor, org.refcodes.rest.RestRequestConsumer aPingObserver, org.refcodes.rest.RestRequestConsumer aStatusObserver, org.refcodes.rest.RestRequestConsumer aHomeObserver, org.refcodes.web.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException Initializes theRestfulHttpRegistryServer
by registering it at the service registry.- Specified by:
initialize
in interfaceRestfulEurekaServer
- Parameters:
aServerDescriptor
- The descriptor describing the server.aPingObserver
- The health-check request observer hook.aStatusObserver
- The status-page request observer hook.aHomeObserver
- The home-page request observer hook.aRegistryUrl
- The registry server where to register.aStoreDescriptor
- The descriptor describing the truststore for (optionally) opening an HTTPS connection to the registry server.- Throws:
org.refcodes.component.InitializeException
- thrown in case initializing a component caused problems. Usually a method similar to "initialize()" throws such an exception.
-
start
public void start() throws org.refcodes.component.StartException- Specified by:
start
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
start
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
start
in interfaceorg.refcodes.component.Startable
- Overrides:
start
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer> - Throws:
org.refcodes.component.StartException
-
pause
public void pause() throws org.refcodes.component.PauseException- Specified by:
pause
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
pause
in interfaceorg.refcodes.component.Pausable
- Specified by:
pause
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Overrides:
pause
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer> - Throws:
org.refcodes.component.PauseException
-
resume
public void resume() throws org.refcodes.component.ResumeException- Specified by:
resume
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
resume
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
resume
in interfaceorg.refcodes.component.Resumable
- Overrides:
resume
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer> - Throws:
org.refcodes.component.ResumeException
-
stop
public void stop() throws org.refcodes.component.StopException- Specified by:
stop
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
stop
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
stop
in interfaceorg.refcodes.component.Stoppable
- Overrides:
stop
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer> - Throws:
org.refcodes.component.StopException
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.refcodes.component.Destroyable
- Specified by:
destroy
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
destroy
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Overrides:
destroy
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer>
-
getHomePath
- Specified by:
getHomePath
in interfaceorg.refcodes.rest.HomePathAccessor
-
setHomePath
- Specified by:
setHomePath
in interfaceorg.refcodes.rest.HomePathAccessor.HomePathMutator
-
getStatusPath
- Specified by:
getStatusPath
in interfaceorg.refcodes.rest.StatusPathAccessor
-
setStatusPath
- Specified by:
setStatusPath
in interfaceorg.refcodes.rest.StatusPathAccessor.StatusPathMutator
-
getConnectionStatus
public org.refcodes.component.ConnectionStatus getConnectionStatus()- Specified by:
getConnectionStatus
in interfaceorg.refcodes.component.ConnectionStatusAccessor
-
setObserversActive
public void setObserversActive(boolean isActive) - Specified by:
setObserversActive
in interfaceorg.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
org.refcodes.rest.RestfulServer>
-
isObserversActive
public boolean isObserversActive()- Specified by:
isObserversActive
in interfaceorg.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
org.refcodes.rest.RestfulServer>
-
setHttpExceptionHandler
public void setHttpExceptionHandler(org.refcodes.rest.HttpExceptionHandler aHttpErrorHandler) - Specified by:
setHttpExceptionHandler
in interfaceorg.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
-
getHttpExceptionHandler
public org.refcodes.rest.HttpExceptionHandler getHttpExceptionHandler()- Specified by:
getHttpExceptionHandler
in interfaceorg.refcodes.rest.HttpExceptionHandlerAccessor
-
setHttpExceptionHandling
public void setHttpExceptionHandling(org.refcodes.rest.HttpExceptionHandling aHttpErrorHandling) - Specified by:
setHttpExceptionHandling
in interfaceorg.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
-
getHttpExceptionHandling
public org.refcodes.rest.HttpExceptionHandling getHttpExceptionHandling()- Specified by:
getHttpExceptionHandling
in interfaceorg.refcodes.rest.HttpExceptionHandlingAccessor
-
getEurekaDataCenterType
Retrieves the Eureka data center type from the Eureka data center type property.- Specified by:
getEurekaDataCenterType
in interfaceEurekaDataCenterTypeAccessor
- Returns:
- The Eureka data center type stored by the Eureka data center type property.
-
setEurekaDataCenterType
Sets the Eureka data center type for the Eureka data center type property.- Specified by:
setEurekaDataCenterType
in interfaceEurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator
- Parameters:
aDataCenterType
- The Eureka data center type to be stored by the Eureka data center type property.
-
setHomeRequestConsumer
public void setHomeRequestConsumer(org.refcodes.rest.RestRequestConsumer aRequestConsumer) - Specified by:
setHomeRequestConsumer
in interfaceorg.refcodes.rest.HomeRequestObserver
-
getHomeRequestConsumer
public org.refcodes.rest.RestRequestConsumer getHomeRequestConsumer()- Specified by:
getHomeRequestConsumer
in interfaceorg.refcodes.rest.HomeRequestObserverAccessor
-
setStatusRequestConsumer
public void setStatusRequestConsumer(org.refcodes.rest.RestRequestConsumer aRequestConsumer) - Specified by:
setStatusRequestConsumer
in interfaceorg.refcodes.rest.StatusRequestObserver
-
getStatusRequestConsumer
public org.refcodes.rest.RestRequestConsumer getStatusRequestConsumer()- Specified by:
getStatusRequestConsumer
in interfaceorg.refcodes.rest.StatusRequestObserverAccessor
-
withRealm
- Specified by:
withRealm
in interfaceorg.refcodes.web.RealmAccessor.RealmBuilder<org.refcodes.rest.RestfulServer>
- Specified by:
withRealm
in interfaceorg.refcodes.rest.RestfulHttpServer
- Specified by:
withRealm
in interfaceorg.refcodes.rest.RestfulServer
- Overrides:
withRealm
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withCloseUnchecked
- Specified by:
withCloseUnchecked
in interfaceorg.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.rest.RestfulHttpServer>> - Overrides:
withCloseUnchecked
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withObserversActive
- Specified by:
withObserversActive
in interfaceorg.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
org.refcodes.rest.RestfulServer> - Specified by:
withObserversActive
in interfaceorg.refcodes.rest.RestfulServer
-
withEnableObservers
- Specified by:
withEnableObservers
in interfaceorg.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
org.refcodes.rest.RestfulServer> - Specified by:
withEnableObservers
in interfaceorg.refcodes.rest.RestfulServer
-
withDisableObservers
- Specified by:
withDisableObservers
in interfaceorg.refcodes.observer.Observers<org.refcodes.rest.RestEndpoint,
org.refcodes.rest.RestfulServer> - Specified by:
withDisableObservers
in interfaceorg.refcodes.rest.RestfulServer
-
withOnHttpException
public EurekaRestServerDecorator withOnHttpException(org.refcodes.rest.HttpExceptionHandler aHttpExceptionHandler) - Specified by:
withOnHttpException
in interfaceorg.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<org.refcodes.rest.RestfulHttpServer>
-
withOpenUnchecked
- Specified by:
withOpenUnchecked
in interfaceorg.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext, org.refcodes.rest.RestfulHttpServer>> - Overrides:
withOpenUnchecked
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withHttpExceptionHandler
public EurekaRestServerDecorator withHttpExceptionHandler(org.refcodes.rest.HttpExceptionHandler aHttpErrorHandler) - Specified by:
withHttpExceptionHandler
in interfaceorg.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<org.refcodes.rest.RestfulHttpServer>
- Specified by:
withHttpExceptionHandler
in interfaceorg.refcodes.rest.RestfulHttpServer
-
withHttpExceptionHandling
public EurekaRestServerDecorator withHttpExceptionHandling(org.refcodes.rest.HttpExceptionHandling aHttpErrorHandling) - Specified by:
withHttpExceptionHandling
in interfaceorg.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<org.refcodes.rest.RestfulHttpServer>
- Specified by:
withHttpExceptionHandling
in interfaceorg.refcodes.rest.RestfulHttpServer
-
withBaseLocator
- Specified by:
withBaseLocator
in interfaceorg.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<org.refcodes.rest.RestfulServer>
- Specified by:
withBaseLocator
in interfaceorg.refcodes.rest.RestfulHttpServer
- Specified by:
withBaseLocator
in interfaceorg.refcodes.rest.RestfulServer
- Overrides:
withBaseLocator
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withClose
- Specified by:
withClose
in interfaceorg.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.rest.RestfulHttpServer>> - Specified by:
withClose
in interfaceorg.refcodes.rest.RestfulHttpServer
- Overrides:
withClose
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
- Throws:
IOException
-
withCloseQuietly
- Specified by:
withCloseQuietly
in interfaceorg.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.rest.RestfulHttpServer>> - Specified by:
withCloseQuietly
in interfaceorg.refcodes.rest.RestfulHttpServer
- Overrides:
withCloseQuietly
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withCloseIn
- Specified by:
withCloseIn
in interfaceorg.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.rest.RestfulHttpServer>> - Specified by:
withCloseIn
in interfaceorg.refcodes.rest.RestfulHttpServer
- Overrides:
withCloseIn
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
-
withOpen
public EurekaRestServerDecorator withOpen(org.refcodes.web.HttpServerContext aConnection) throws IOException - Specified by:
withOpen
in interfaceorg.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,
org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext, org.refcodes.rest.RestfulHttpServer>> - Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpServer
- Overrides:
withOpen
in classorg.refcodes.rest.AbstractRestfulHttpServerDecorator<RestfulEurekaServer>
- Throws:
IOException
-
withOpen
- Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpServer
- Throws:
IOException
-
withPort
- Specified by:
withPort
in interfaceorg.refcodes.mixin.PortAccessor.PortBuilder<org.refcodes.rest.RestfulHttpServer>
- Specified by:
withPort
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withPort
in interfaceorg.refcodes.rest.RestfulHttpServer
-
withScheme
- Specified by:
withScheme
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withScheme
in interfaceorg.refcodes.rest.RestfulHttpServer
- Specified by:
withScheme
in interfaceorg.refcodes.web.SchemeAccessor.SchemeBuilder<org.refcodes.rest.RestfulHttpServer>
-
withProtocol
- Specified by:
withProtocol
in interfaceorg.refcodes.rest.RestfulHttpRegistryServer<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withProtocol
in interfaceorg.refcodes.rest.RestfulHttpServer
- Specified by:
withProtocol
in interfaceorg.refcodes.web.SchemeAccessor.SchemeBuilder<org.refcodes.rest.RestfulHttpServer>
-
withKeyStoreDescriptor
public EurekaRestServerDecorator withKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aKeyStoreDescriptor) - Specified by:
withKeyStoreDescriptor
in interfaceorg.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<org.refcodes.rest.RestfulHttpServer>
- Specified by:
withKeyStoreDescriptor
in interfaceorg.refcodes.rest.RestfulHttpServer
-
withMaxConnections
- Specified by:
withMaxConnections
in interfaceorg.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<org.refcodes.rest.RestfulHttpServer>
- Specified by:
withMaxConnections
in interfaceorg.refcodes.rest.RestfulHttpServer
-
withEurekaDataCenterType
Sets the Eureka data center type to use and returns this builder as of the builder pattern.- Specified by:
withEurekaDataCenterType
in interfaceEurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<RestfulEurekaServer>
- Specified by:
withEurekaDataCenterType
in interfaceEurekaRegistry<RestfulEurekaServer>
- Parameters:
aDataCenterType
- The Eureka data center type to be stored by the Eureka data center type property.- Returns:
- This
EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder
instance to continue configuration.
-
withHomePath
- Specified by:
withHomePath
in interfaceEurekaRegistry<RestfulEurekaServer>
- Specified by:
withHomePath
in interfaceorg.refcodes.rest.HomePathAccessor.HomePathBuilder<RestfulEurekaServer>
-
withStatusPath
- Specified by:
withStatusPath
in interfaceEurekaRegistry<RestfulEurekaServer>
- Specified by:
withStatusPath
in interfaceorg.refcodes.rest.StatusPathAccessor.StatusPathBuilder<RestfulEurekaServer>
-
withAlias
- Specified by:
withAlias
in interfaceorg.refcodes.mixin.AliasAccessor.AliasBuilder<RestfulEurekaServer>
- Specified by:
withAlias
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer>
-
withPingPath
- Specified by:
withPingPath
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withPingPath
in interfaceorg.refcodes.rest.PingPathAccessor.PingPathBuilder<RestfulEurekaServer>
-
withHttpRegistryUrl
- Specified by:
withHttpRegistryUrl
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withHttpRegistryUrl
in interfaceorg.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<RestfulEurekaServer>
-
withHttpServerDescriptor
- Specified by:
withHttpServerDescriptor
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withHttpServerDescriptor
in interfaceorg.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<EurekaServerDescriptor,
RestfulEurekaServer>
-
withHost
- Specified by:
withHost
in interfaceorg.refcodes.web.HostAccessor.HostBuilder<RestfulEurekaServer>
- Specified by:
withHost
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer>
-
withVirtualHost
- Specified by:
withVirtualHost
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withVirtualHost
in interfaceorg.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<RestfulEurekaServer>
-
withIpAddress
- Specified by:
withIpAddress
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withIpAddress
in interfaceorg.refcodes.net.IpAddressAccessor.IpAddressBuilder<RestfulEurekaServer>
-
withCidrNotation
- Specified by:
withCidrNotation
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withCidrNotation
in interfaceorg.refcodes.net.IpAddressAccessor.IpAddressBuilder<RestfulEurekaServer>
-
withTrustStoreDescriptor
public EurekaRestServerDecorator withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) - Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<RestfulEurekaServer>
-
withInstanceId
- Specified by:
withInstanceId
in interfaceorg.refcodes.rest.HttpRegistry<EurekaServerDescriptor,
RestfulEurekaServer> - Specified by:
withInstanceId
in interfaceorg.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<RestfulEurekaServer>
-
withStatusRequestConsumer
public EurekaRestServerDecorator withStatusRequestConsumer(org.refcodes.rest.RestRequestConsumer aRequestConsumer) - Specified by:
withStatusRequestConsumer
in interfaceRestfulEurekaServer
- Specified by:
withStatusRequestConsumer
in interfaceorg.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<RestfulEurekaServer>
-
withHomeRequestConsumer
public EurekaRestServerDecorator withHomeRequestConsumer(org.refcodes.rest.RestRequestConsumer aRequestConsumer) - Specified by:
withHomeRequestConsumer
in interfaceorg.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<RestfulEurekaServer>
- Specified by:
withHomeRequestConsumer
in interfaceRestfulEurekaServer
-
toHttpServerDescriptor
public 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)
.- Specified by:
toHttpServerDescriptor
in interfaceEurekaServerDescriptorFactory
- 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()
-
doRegister
protected void doRegister(EurekaServiceStatus aServiceStatus) throws org.refcodes.web.HttpStatusException, IOException Registers the given service at Eureka.- Parameters:
aServiceStatus
- TheEurekaServiceStatus
to be set.- Throws:
org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an erroneous status.tIOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
doStatusUpdate
protected void doStatusUpdate(EurekaServiceStatus aServiceStatus) throws IOException, UnknownHostException, org.refcodes.web.HttpStatusException Does a Eureka status update for the given service.- Parameters:
aServiceStatus
- TheEurekaServiceStatus
to be set.- Throws:
org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an erroneous status.tIOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.UnknownHostException
- Thrown in case the targeted host is unknown.
-
doDeregister
Unregisters the given service at Eureka.- Throws:
org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an erroneous status.tIOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
toHttpRegistryUrl
protected org.refcodes.web.Url toHttpRegistryUrl(org.refcodes.web.Url aRegistryUrl) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.- Overrides:
toHttpRegistryUrl
in classorg.refcodes.rest.AbstractRestfulHttpRegistryServerDecorator<EurekaServerDescriptor,
RestfulEurekaServer> - Parameters:
aRegistryUrl
- The value to be used when not null.- Returns:
- The value when not null, else the value of the provided property.
-
toHomeObserver
protected org.refcodes.rest.RestRequestConsumer toHomeObserver(org.refcodes.rest.RestRequestConsumer aHomeRequestObserver) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.- Parameters:
aHomeRequestObserver
- The value to be used when not null.- Returns:
- The value when not null, else the value of the provided property.
-
toStatusObserver
protected org.refcodes.rest.RestRequestConsumer toStatusObserver(org.refcodes.rest.RestRequestConsumer aStatusRequestObserver) Resolves the property from the provided value and this instance and sets the property in case the provided value is not null.- Parameters:
aStatusRequestObserver
- The value to be used when not null.- Returns:
- The value when not null, else the value of the provided property.
-