org.refcodes.component.Configurable<EurekaRegistrySidecar>
, 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.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.mixin.AliasAccessor
, org.refcodes.mixin.AliasAccessor.AliasBuilder<EurekaRegistrySidecar>
, org.refcodes.mixin.AliasAccessor.AliasMutator
, org.refcodes.mixin.AliasAccessor.AliasProperty
, org.refcodes.mixin.InstanceIdAccessor
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<EurekaRegistrySidecar>
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
, org.refcodes.mixin.PortAccessor
, org.refcodes.mixin.PortAccessor.PortBuilder<EurekaRegistrySidecar>
, org.refcodes.mixin.PortAccessor.PortMutator
, org.refcodes.mixin.PortAccessor.PortProperty
, EurekaDataCenterTypeAccessor
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeBuilder<EurekaRegistrySidecar>
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator
, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty
, EurekaRegistry<EurekaRegistrySidecar>
, EurekaServerDescriptorFactory
, org.refcodes.rest.HomePathAccessor
, org.refcodes.rest.HomePathAccessor.HomePathBuilder<EurekaRegistrySidecar>
, org.refcodes.rest.HomePathAccessor.HomePathMutator
, org.refcodes.rest.HomePathAccessor.HomePathProperty
, org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B>
, org.refcodes.rest.HttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
, org.refcodes.rest.HttpRegistryUrlAccessor
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<EurekaRegistrySidecar>
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator
, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
, org.refcodes.rest.HttpServerDescriptorAccessor<EurekaRegistrySidecar>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<EurekaServerDescriptor,B>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<EurekaRegistrySidecar>
, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<EurekaRegistrySidecar>
, org.refcodes.rest.HttpServerDescriptorFactory<EurekaRegistrySidecar>
, org.refcodes.rest.PingPathAccessor
, org.refcodes.rest.PingPathAccessor.PingPathBuilder<EurekaRegistrySidecar>
, org.refcodes.rest.PingPathAccessor.PingPathMutator
, org.refcodes.rest.PingPathAccessor.PingPathProperty
, org.refcodes.rest.StatusPathAccessor
, org.refcodes.rest.StatusPathAccessor.StatusPathBuilder<EurekaRegistrySidecar>
, org.refcodes.rest.StatusPathAccessor.StatusPathMutator
, org.refcodes.rest.StatusPathAccessor.StatusPathProperty
, org.refcodes.security.TrustStoreDescriptorAccessor
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<EurekaRegistrySidecar>
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
, org.refcodes.web.HostAccessor
, org.refcodes.web.HostAccessor.HostBuilder<EurekaRegistrySidecar>
, org.refcodes.web.HostAccessor.HostMutator
, org.refcodes.web.HostAccessor.HostProperty
, org.refcodes.web.IpAddressAccessor
, org.refcodes.web.IpAddressAccessor.IpAddressBuilder<EurekaRegistrySidecar>
, org.refcodes.web.IpAddressAccessor.IpAddressMutator
, org.refcodes.web.IpAddressAccessor.IpAddressProperty
, org.refcodes.web.SchemeAccessor
, org.refcodes.web.SchemeAccessor.SchemeBuilder<EurekaRegistrySidecar>
, org.refcodes.web.SchemeAccessor.SchemeMutator
, org.refcodes.web.SchemeAccessor.SchemeProperty
, org.refcodes.web.VirtualHostAccessor
, org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<EurekaRegistrySidecar>
, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator
, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
public class EurekaRegistrySidecar extends org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar> implements EurekaRegistry<EurekaRegistrySidecar>, org.refcodes.rest.HttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
EurekaRegistrySidecar
provides you with a library for registering
your web-services at Eureka service registry and discovery.Modifier and Type | Class | Description |
---|---|---|
static class |
EurekaRegistrySidecar.HeartBeatDaemon |
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.web.HostAccessor.HostBuilder<B extends org.refcodes.web.HostAccessor.HostBuilder<?>>, org.refcodes.web.HostAccessor.HostMutator, org.refcodes.web.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.web.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.web.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.web.IpAddressAccessor.IpAddressMutator, org.refcodes.web.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.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
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.web.SchemeAccessor.SchemeBuilder<B extends org.refcodes.web.SchemeAccessor.SchemeBuilder<B>>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
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.web.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
Modifier and Type | Field | Description |
---|---|---|
static String |
EUREKA_BASE_PATH |
Constructor | Description |
---|---|
EurekaRegistrySidecar(ExecutorService aExecutorService) |
Instantiates a new eureka registry sidecar.
|
Modifier and Type | Method | Description |
---|---|---|
void |
destroy() |
|
protected void |
doDeregister() |
Unregisters the given service at Eureka.
|
protected static void |
doDeregister(EurekaRegistry<?> aRegistryService,
ExecutorService aExecutorService) |
Unregisters the given service at Eureka.
|
protected void |
doRegister(EurekaServiceStatus aServiceStatus) |
Registers the given service at Eureka.
|
protected static void |
doRegister(EurekaServiceStatus aServiceStatus,
EurekaRegistry<?> aRegistryService,
ExecutorService aExecutorService) |
Registers the given service at Eureka.
|
protected void |
doStatusUpdate(EurekaServiceStatus aServiceStatus) |
Does a Eureka status update for the given service.
|
protected static void |
doStatusUpdate(EurekaServiceStatus aServiceStatus,
EurekaRegistry<?> aRegistryService,
ExecutorService aExecutorService) |
Does a Eureka status update for the given service.
|
EurekaDataCenterType |
getEurekaDataCenterType() |
Retrieves the Eureka data center type from the Eureka data center type
property.
|
String |
getHomePath() |
|
int |
getPort() |
|
org.refcodes.data.Scheme |
getScheme() |
|
String |
getStatusPath() |
|
void |
initialize(EurekaServerDescriptor aServerDescriptor,
org.refcodes.web.Url aRegistryUrl,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) |
|
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 |
setPort(int aPort) |
|
void |
setProtocol(String aProtocol) |
|
void |
setScheme(org.refcodes.data.Scheme aScheme) |
|
void |
setStatusPath(String aStatusPath) |
|
void |
start() |
|
void |
stop() |
|
protected static AmazonMetaData |
toAmazonMetaData() |
Constructs the Amazon Meta-Data from the Machine's network and AWS
settings.
|
protected static EurekaDataCenterType |
toDataCenterType(EurekaDataCenterType aDataCenterType,
EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty aProperty) |
Resolves the property from the provided value and the provided property
and sets the property in case the provided value is not null.
|
protected static String |
toHomePath(String aHomePath,
String aDefaultHomePath,
org.refcodes.rest.HomePathAccessor.HomePathProperty aProperty) |
Resolves the property from the provided value and the provided property
and sets the property in case the provided value is not null.
|
protected static org.refcodes.web.Url |
toHttpRegistryUrl(org.refcodes.web.Url aRegistryUrl,
org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty aProperty) |
Resolves the property from the provided value and the provided property
and sets the property in case the provided value is not null.
|
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 the
HttpServerDescriptor by creating it from this
instance's state and the provided arguments. |
protected static String |
toInstanceId(String aInstanceId,
String aHost,
org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty aProperty) |
Resolves the property from the provided value and the provided property
and sets the property in case the provided value is not null.
|
String |
toProtocol() |
|
protected static String |
toStatusPath(String aStatusPath,
String aDefaultStatusPath,
org.refcodes.rest.StatusPathAccessor.StatusPathProperty aProperty) |
Resolves the property from the provided value and the provided property
and sets the property in case the provided value is not null.
|
getAlias, getHost, getHttpRegistryUrl, getHttpServerDescriptor, getInstanceId, getIpAddress, getLifeCycleStatus, getPingPath, getTrustStoreDescriptor, getVirtualHost, initialize, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, setAlias, setHost, setHttpRegistryUrl, setHttpServerDescriptor, setInstanceId, setIpAddress, setPingPath, setTrustStoreDescriptor, setVirtualHost, toAlias, toHost, toHttpServerDescriptor, toIpAddress, toPingPath, toPort, toScheme, toTrustStoreDescriptor, toVirtualHost
isDestroyable, isDestroyed
letEurekaDataCenterType
initialize, initialize, initialize, withEurekaDataCenterType, withHomePath, withStatusPath
toHttpServerDescriptor, toHttpServerDescriptor
initialize, initialize, initialize, initialize, initialize, initialize, withAlias, withCidrNotation, withHost, withHttpRegistryUrl, withHttpServerDescriptor, withInstanceId, withIpAddress, withPingPath, withTrustStoreDescriptor, withVirtualHost
withPort, withProtocol, withScheme
setHttpRegistryUrl
letHttpRegistryUrl
getHttpServerDescriptor
setHttpServerDescriptor
letHttpServerDescriptor
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
isInitalizable
setInstanceId
letInstanceId
fromCidrNotation, setIpAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPausable, isPaused
letProtocol, letScheme
letStatusPath
isStoppable, isStopped
getTrustStoreDescriptor
setTrustStoreDescriptor
letTrustStoreDescriptor
public static final String EUREKA_BASE_PATH
public EurekaRegistrySidecar(ExecutorService aExecutorService)
aExecutorService
- An executor service to be used when creating
Thread
s.public void initialize(EurekaServerDescriptor aServerDescriptor, org.refcodes.web.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException
initialize
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
org.refcodes.component.InitializeException
public void start() throws org.refcodes.component.StartException
start
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
start
in interface org.refcodes.component.Startable
start
in class org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
org.refcodes.component.StartException
public void pause() throws org.refcodes.component.PauseException
pause
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
pause
in interface org.refcodes.component.Pausable
pause
in class org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
org.refcodes.component.PauseException
public void resume() throws org.refcodes.component.ResumeException
resume
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
resume
in interface org.refcodes.component.Resumable
resume
in class org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
org.refcodes.component.ResumeException
public void stop() throws org.refcodes.component.StopException
stop
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
stop
in interface org.refcodes.component.Stoppable
stop
in class org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
org.refcodes.component.StopException
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
destroy
in interface org.refcodes.rest.HttpRegistry<EurekaServerDescriptor,B extends EurekaRegistry<B>>
destroy
in class org.refcodes.rest.AbstractHttpRegistrySidecar<EurekaServerDescriptor,EurekaRegistrySidecar>
public void setPort(int aPort)
setPort
in interface org.refcodes.mixin.PortAccessor.PortMutator
public int getPort()
getPort
in interface org.refcodes.mixin.PortAccessor
public String toProtocol()
toProtocol
in interface org.refcodes.web.SchemeAccessor
public void setProtocol(String aProtocol)
setProtocol
in interface org.refcodes.web.SchemeAccessor.SchemeMutator
public void setScheme(org.refcodes.data.Scheme aScheme)
setScheme
in interface org.refcodes.web.SchemeAccessor.SchemeMutator
public org.refcodes.data.Scheme getScheme()
getScheme
in interface org.refcodes.web.SchemeAccessor
public String getHomePath()
getHomePath
in interface org.refcodes.rest.HomePathAccessor
public void setHomePath(String aHomePath)
setHomePath
in interface org.refcodes.rest.HomePathAccessor.HomePathMutator
public String getStatusPath()
getStatusPath
in interface org.refcodes.rest.StatusPathAccessor
public void setStatusPath(String aStatusPath)
setStatusPath
in interface org.refcodes.rest.StatusPathAccessor.StatusPathMutator
public EurekaDataCenterType getEurekaDataCenterType()
getEurekaDataCenterType
in interface EurekaDataCenterTypeAccessor
public void setEurekaDataCenterType(EurekaDataCenterType aDataCenterType)
setEurekaDataCenterType
in interface EurekaDataCenterTypeAccessor.EurekaDataCenterTypeMutator
aDataCenterType
- The Eureka data center type to be stored by
the Eureka data center type property.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)
HttpServerDescriptor
by creating it from this
instance's state and the provided arguments. The provided arguments can
modify theinstance's state. The HttpServerDescriptor
as finally
used is returned. You may modify this context and use it after
modification to initialize the server via
HttpRegistry.initialize(HttpServerDescriptor, Url)
or
HttpRegistry.initialize(HttpServerDescriptor, Url, TrustStoreDescriptor)
.
toHttpServerDescriptor
in interface EurekaServerDescriptorFactory
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
- 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 this
server.aHomePath
- The path to use as home-page end-point by this server.aDataCenterType
- The data center type to be used.HttpServerDescriptor
as would be used when
initializing this instance via
HttpRegistry.initialize()
protected static String toHomePath(String aHomePath, String aDefaultHomePath, org.refcodes.rest.HomePathAccessor.HomePathProperty aProperty)
aHomePath
- The value to be used when not null.aDefaultHomePath
- The value to be used when instance TID is null.aProperty
- The property to be used when the value is null and which
is to be set when the value is not null.protected static String toStatusPath(String aStatusPath, String aDefaultStatusPath, org.refcodes.rest.StatusPathAccessor.StatusPathProperty aProperty)
aStatusPath
- The value to be used when not null.aDefaultStatusPath
- The value to be used when instance TID is null.aProperty
- The property to be used when the value is null and which
is to be set when the value is not null.protected static String toInstanceId(String aInstanceId, String aHost, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty aProperty)
aInstanceId
- The value to be used when not null.aHost
- The value to be used when instance TID is null.aProperty
- The property to be used when the value is null and which
is to be set when the value is not null.protected void doRegister(EurekaServiceStatus aServiceStatus) throws org.refcodes.web.HttpStatusException, IOException
aServiceStatus
- The EurekaServiceStatus
to be set.org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an
erroneous status.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.protected static void doRegister(EurekaServiceStatus aServiceStatus, EurekaRegistry<?> aRegistryService, ExecutorService aExecutorService) throws org.refcodes.web.HttpStatusException, IOException
aServiceStatus
- The EurekaServiceStatus
to be set.aRegistryService
- The registry service to be used for registering.aExecutorService
- The ExecutorService
used to create
threads.org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an
erroneous status.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.protected void doStatusUpdate(EurekaServiceStatus aServiceStatus) throws IOException, UnknownHostException, org.refcodes.web.HttpStatusException
aServiceStatus
- The EurekaServiceStatus
to be set.org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an
erroneous status.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.UnknownHostException
- Thrown in case the targeted host is unknown.protected static void doStatusUpdate(EurekaServiceStatus aServiceStatus, EurekaRegistry<?> aRegistryService, ExecutorService aExecutorService) throws IOException, UnknownHostException, org.refcodes.web.HttpStatusException
aServiceStatus
- The EurekaServiceStatus
to be set.aRegistryService
- The registry service to be used for registering.aExecutorService
- The ExecutorService
used to create
threads.org.refcodes.web.HttpStatusException
- Thrown in case a HTTP response was of an
erroneous status.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.UnknownHostException
- Thrown in case the targeted host is unknown.protected void doDeregister() throws IOException, org.refcodes.web.HttpStatusException
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.protected static void doDeregister(EurekaRegistry<?> aRegistryService, ExecutorService aExecutorService) throws IOException, org.refcodes.web.HttpStatusException
aRegistryService
- The registry service to be used for registering.aExecutorService
- The ExecutorService
used to create
threads.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.protected static org.refcodes.web.Url toHttpRegistryUrl(org.refcodes.web.Url aRegistryUrl, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty aProperty)
aRegistryUrl
- The value to be used when not null.aProperty
- The property to be used when the value is null and which
is to be set when the value is not null.protected static EurekaDataCenterType toDataCenterType(EurekaDataCenterType aDataCenterType, EurekaDataCenterTypeAccessor.EurekaDataCenterTypeProperty aProperty)
aDataCenterType
- The value to be used when not null.aProperty
- The property to be used when the value is null and which
is to be set when the value is not null.protected static AmazonMetaData toAmazonMetaData()
Copyright © 2021. All rights reserved.