org.refcodes.component.Closable
, org.refcodes.component.Configurable<HttpDiscoveryContext>
, org.refcodes.component.ConnectionComponent<org.refcodes.net.HttpClientContext>
, org.refcodes.component.ConnectionOpenable<org.refcodes.net.HttpClientContext>
, 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.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.net.BaseUrlAccessor
, org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<HttpRestClient>
, org.refcodes.net.BaseUrlAccessor.BaseUrlMutator
, org.refcodes.net.BaseUrlAccessor.BaseUrlProperty
, org.refcodes.net.LoadBalancingStrategyAccessor
, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B>
, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
, org.refcodes.net.MediaTypeFactoryLookup
, org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
, org.refcodes.net.UserAgentAccessor
, org.refcodes.net.UserAgentAccessor.UserAgentBuilder<RestClient>
, org.refcodes.net.UserAgentAccessor.UserAgentMutator
, org.refcodes.net.UserAgentAccessor.UserAgentProperty
, HttpDiscovery<B>
, HttpDiscoveryRestClient<B>
, HttpDiscoveryUrlAccessor
, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B>
, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
, HttpRestClient
, RestClient
, RestDeleteClient
, RestGetClient
, RestPostClient
, RestPutClient
, RestRequestClient
, org.refcodes.runtime.RequestCorrelation<RestClient>
, org.refcodes.runtime.SessionCorrelation<RestClient>
, org.refcodes.security.TrustStoreDescriptorAccessor
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpRestClient>
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
public abstract class AbstractHttpDiscoveryRestClientDecorator<B extends HttpDiscoveryRestClient<B>> extends AbstractHttpRestClientDecorator<B> implements HttpDiscoveryRestClient<B>
HttpDiscoveryRestClient
.org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B>>, org.refcodes.net.BaseUrlAccessor.BaseUrlMutator, org.refcodes.net.BaseUrlAccessor.BaseUrlProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
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.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
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>>
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.component.Destroyable.DestroyAutomaton
HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B extends HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B>>, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
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.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.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B extends org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B>>, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
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.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.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.UserAgentAccessor.UserAgentBuilder<B extends org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B>>, org.refcodes.net.UserAgentAccessor.UserAgentMutator, org.refcodes.net.UserAgentAccessor.UserAgentProperty
Modifier and Type | Field | Description |
---|---|---|
protected org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl |
_lifeCycleAutomaton |
DEFAULT_KEYSTORE_TYPE, DEFAULT_SSL_PROTOCOL
Constructor | Description |
---|---|
AbstractHttpDiscoveryRestClientDecorator(HttpRestClient aClient) |
Decorates the given
HttpRestClient with discovery functionality. |
Modifier and Type | Method | Description |
---|---|---|
void |
destroy() |
Stops resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
org.refcodes.net.Url |
getHttpDiscoveryUrl() |
Retrieves the URL from the URL property locating the service discovery
discovery.
|
org.refcodes.component.LifeCycleStatus |
getLifeCycleStatus() |
|
org.refcodes.net.LoadBalancingStrategy |
getLoadBalancingStrategy() |
|
void |
initialize() |
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
boolean |
isDestroyable() |
|
boolean |
isDestroyed() |
|
boolean |
isInitalizable() |
|
boolean |
isInitialized() |
|
boolean |
isPausable() |
|
boolean |
isPaused() |
|
boolean |
isResumable() |
|
boolean |
isRunning() |
|
boolean |
isStartable() |
|
boolean |
isStoppable() |
|
boolean |
isStopped() |
|
void |
pause() |
Pauses the resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
resume() |
Resumes the resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
setHttpDiscoveryUrl(org.refcodes.net.Url aUrl) |
Sets the URL for the URL property locating the service discovery
discovery.
|
void |
setLoadBalancingStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy) |
|
void |
start() |
Starts resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
stop() |
Stops resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
protected org.refcodes.net.Url |
toHttpDiscoveryUrl(org.refcodes.net.Url aDiscoveryUrl) |
|
protected org.refcodes.net.LoadBalancingStrategy |
toLoadBalancerStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy) |
|
protected org.refcodes.security.TrustStoreDescriptor |
toTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) |
|
abstract org.refcodes.net.Url |
toUrl(org.refcodes.net.Url aUrl) |
Hook for sub-classes to modify the request URL.
|
addMediaTypeFactory, buildRequest, close, closeIn, closeQuietly, closeUnchecked, disableRequestCorrelation, disableSessionCorrelation, doRequest, doRequest, enableRequestCorrelation, enableSessionCorrelation, getBaseUrl, getConnectionStatus, getFactoryMediaTypes, getTrustStoreDescriptor, getUserAgent, hasMediaTypeFactory, hasRequestCorrelation, hasSessionCorrelation, open, open, openUnchecked, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setRequestCorrelation, setSessionCorrelation, setTrustStoreDescriptor, setUserAgent, toMediaTypeFactory, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withDisableRequestCorrelation, withDisableSessionCorrelation, withEnableRequestCorrelation, withEnableSessionCorrelation, withRequestCorrelation, withSessionCorrelation, withUserAgent
withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl
setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl
close, closeIn, closeQuietly, closeUnchecked
getConnectionStatus, isConnectionOpened
initialize, initialize, initialize, initialize, initialize, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, withHttpDiscoveryUrl, withLoadBalancingStrategy
withTrustStoreDescriptor
open, open, open, open, open, withDisableRequestCorrelation, withDisableSessionCorrelation, withEnableRequestCorrelation, withEnableSessionCorrelation, withRequestCorrelation, withSessionCorrelation, withUserAgent
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
addMediaTypeFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelation
buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete
buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet
buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost
buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut
buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest
disableSessionCorrelation, enableSessionCorrelation, hasSessionCorrelation, setSessionCorrelation
getTrustStoreDescriptor
protected org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl _lifeCycleAutomaton
public AbstractHttpDiscoveryRestClientDecorator(HttpRestClient aClient)
HttpRestClient
with discovery functionality.aClient
- The HttpRestClient
to be decorated.public boolean isRunning()
isRunning
in interface org.refcodes.component.RunningAccessor
public boolean isInitialized()
isInitialized
in interface org.refcodes.component.InitializedAccessor
public org.refcodes.component.LifeCycleStatus getLifeCycleStatus()
getLifeCycleStatus
in interface org.refcodes.component.LifeCycleStatusAccessor
public void pause() throws org.refcodes.component.PauseException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service.
pause
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
pause
in interface org.refcodes.component.Pausable
org.refcodes.component.PauseException
public void stop() throws org.refcodes.component.StopException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Does not update the list of available services and
their accordingly associated Url
from the discovery service. This
may be achieved by canceling a scheduler.
stop
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
stop
in interface org.refcodes.component.Stoppable
org.refcodes.component.StopException
public void start() throws org.refcodes.component.StartException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Takes care to update the list of available services
and their accordingly associated Url
from the discovery service.
This may be achieved by starting a scheduler. If necessary, the
connection is opened.
start
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
start
in interface org.refcodes.component.Startable
org.refcodes.component.StartException
public void resume() throws org.refcodes.component.ResumeException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service.
resume
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
resume
in interface org.refcodes.component.Resumable
org.refcodes.component.ResumeException
public void initialize() throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state when invoking
HttpDiscovery.initialize(Url, LoadBalancingStrategy, TrustStoreDescriptor)
.
initialize
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
initialize
in interface org.refcodes.component.Initializable
org.refcodes.component.InitializeException
public boolean isStoppable()
isStoppable
in interface org.refcodes.component.Stoppable.StopAutomaton
public boolean isPausable()
isPausable
in interface org.refcodes.component.Pausable.PauseAutomaton
public boolean isStartable()
isStartable
in interface org.refcodes.component.Startable.StartAutomaton
public boolean isResumable()
isResumable
in interface org.refcodes.component.Resumable.ResumeAutomaton
public boolean isStopped()
isStopped
in interface org.refcodes.component.Stoppable.StopAutomaton
public boolean isPaused()
isPaused
in interface org.refcodes.component.Pausable.PauseAutomaton
public boolean isInitalizable()
isInitalizable
in interface org.refcodes.component.Initializable.InitializeAutomaton
public void destroy()
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Does not update the list of available services and
their accordingly associated Url
from the discovery service. This
may be achieved by canceling a scheduler. Finally the connection is
closed.
destroy
in interface org.refcodes.component.Destroyable
destroy
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
public boolean isDestroyable()
isDestroyable
in interface org.refcodes.component.Destroyable.DestroyAutomaton
public boolean isDestroyed()
isDestroyed
in interface org.refcodes.component.Destroyable.DestroyAutomaton
public abstract org.refcodes.net.Url toUrl(org.refcodes.net.Url aUrl)
toUrl
in interface HttpDiscovery<B extends HttpDiscoveryRestClient<B>>
toUrl
in class AbstractHttpRestClientDecorator<B extends HttpDiscoveryRestClient<B>>
aUrl
- The Url
for the request.Url
, by default it returns the provided
Url
unmodified.public void setLoadBalancingStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy)
setLoadBalancingStrategy
in interface org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
public org.refcodes.net.LoadBalancingStrategy getLoadBalancingStrategy()
getLoadBalancingStrategy
in interface org.refcodes.net.LoadBalancingStrategyAccessor
public org.refcodes.net.Url getHttpDiscoveryUrl()
getHttpDiscoveryUrl
in interface HttpDiscoveryUrlAccessor
public void setHttpDiscoveryUrl(org.refcodes.net.Url aUrl)
setHttpDiscoveryUrl
in interface HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
aUrl
- The service discovery discovery URL to be stored by the
URL property.protected org.refcodes.security.TrustStoreDescriptor toTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
protected org.refcodes.net.Url toHttpDiscoveryUrl(org.refcodes.net.Url aDiscoveryUrl)
protected org.refcodes.net.LoadBalancingStrategy toLoadBalancerStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy)
Copyright © 2018. All rights reserved.