Class RemoteAgentBootstrap
- java.lang.Object
-
- com.atlassian.bamboo.agent.bootstrap.RemoteAgentBootstrap
-
- Direct Known Subclasses:
ElasticAgentBootstrap
public class RemoteAgentBootstrap extends Object
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
Fields Modifier and Type Field Description protected AgentTypeagentTypeprotected URLdeclaredEndpointForAgentsprotected @Nullable StringsecurityToken
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken)protectedRemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken, AgentType agentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidconfigureLogging()protected AgentContextcreateAgentContext(AgentType type, URL endpointForAgents)protected URLgetDeclaredEndpointForAgents()protected StringgetFingerprintRequestSuffix()protected URLgetReachableEndpointForAgents()protected SchemeRegistryFactorygetSchemeRegistryDataFactory(SchemeRegistryFactory remoteAgentSchemeRegistryFactory)protected booleanisHttpsBaseURL()static booleanisUsingProxy(URI currentUri)static voidmain(String[] arguments)RemoteAgentHttpClientFactorynewHttpClientFactory()protected voidrun(AgentType type)protected voidsetHttpClientFactoryParamaters(RemoteAgentHttpClientFactory remoteAgentHttpClientFactory)
-
-
-
Method Detail
-
configureLogging
protected static void configureLogging()
-
createAgentContext
protected AgentContext createAgentContext(AgentType type, URL endpointForAgents) throws MalformedURLException
- Throws:
MalformedURLException
-
run
protected void run(AgentType type)
-
newHttpClientFactory
public RemoteAgentHttpClientFactory newHttpClientFactory()
-
setHttpClientFactoryParamaters
protected void setHttpClientFactoryParamaters(RemoteAgentHttpClientFactory remoteAgentHttpClientFactory)
-
isHttpsBaseURL
protected boolean isHttpsBaseURL()
-
getDeclaredEndpointForAgents
protected final URL getDeclaredEndpointForAgents()
-
getReachableEndpointForAgents
protected URL getReachableEndpointForAgents()
-
getSchemeRegistryDataFactory
protected SchemeRegistryFactory getSchemeRegistryDataFactory(SchemeRegistryFactory remoteAgentSchemeRegistryFactory)
-
getFingerprintRequestSuffix
protected String getFingerprintRequestSuffix()
-
isUsingProxy
public static boolean isUsingProxy(URI currentUri)
-
-