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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken) protectedRemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken, AgentType agentType) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected AgentContextcreateAgentContext(AgentType type, URL endpointForAgents) protected final URLprotected Stringprotected URLprotected SchemeRegistryFactorygetSchemeRegistryDataFactory(SchemeRegistryFactory remoteAgentSchemeRegistryFactory) protected static booleanisHttpException(Throwable throwable) protected booleanstatic booleanisUsingProxy(URI currentUri) static voidprotected voidprotected voidsetHttpClientFactoryParamaters(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) -
isHttpException
-
getFingerprintRequestSuffix
-
isUsingProxy
-