Class RemoteAgentBootstrap
java.lang.Object
com.atlassian.bamboo.agent.bootstrap.RemoteAgentBootstrap
- Direct Known Subclasses:
ElasticAgentBootstrap
An entry point for a Java process that loads its classes and resources from a server.
The intent of this class is to allow an architecture of distributed agents that can be upgraded, in most cases, by upgrading the server only.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
RemoteAgentBootstrap
(URL serverEndpointForAgents, @Nullable String securityToken) protected
RemoteAgentBootstrap
(URL serverEndpointForAgents, @Nullable String securityToken, AgentType agentType) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected AgentContext
createAgentContext
(AgentType type, URL endpointForAgents) protected final URL
protected String
protected URL
protected SchemeRegistryFactory
getSchemeRegistryDataFactory
(SchemeRegistryFactory remoteAgentSchemeRegistryFactory) protected boolean
static boolean
isUsingProxy
(URI currentUri) static void
protected void
protected void
setHttpClientFactoryParamaters
(RemoteAgentHttpClientFactory remoteAgentHttpClientFactory)
-
Field Details
-
agentType
-
declaredEndpointForAgents
-
securityToken
-
-
Constructor Details
-
RemoteAgentBootstrap
-
RemoteAgentBootstrap
-
-
Method Details
-
main
- Throws:
Exception
-
configureLogging
protected static void configureLogging() -
createAgentContext
protected AgentContext createAgentContext(AgentType type, URL endpointForAgents) throws MalformedURLException - Throws:
MalformedURLException
-
run
-
newHttpClientFactory
-
setHttpClientFactoryParamaters
protected void setHttpClientFactoryParamaters(RemoteAgentHttpClientFactory remoteAgentHttpClientFactory) -
isHttpsBaseURL
protected boolean isHttpsBaseURL() -
getDeclaredEndpointForAgents
-
getReachableEndpointForAgents
-
getSchemeRegistryDataFactory
protected SchemeRegistryFactory getSchemeRegistryDataFactory(SchemeRegistryFactory remoteAgentSchemeRegistryFactory) -
getFingerprintRequestSuffix
-
isUsingProxy
-