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 AgentType
agentType
protected URL
declaredEndpointForAgents
protected @Nullable String
securityToken
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken)
protected
RemoteAgentBootstrap(URL serverEndpointForAgents, @Nullable String securityToken, AgentType agentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
configureLogging()
protected AgentContext
createAgentContext(AgentType type, URL endpointForAgents)
protected URL
getDeclaredEndpointForAgents()
protected String
getFingerprintRequestSuffix()
protected URL
getReachableEndpointForAgents()
protected SchemeRegistryFactory
getSchemeRegistryDataFactory(SchemeRegistryFactory remoteAgentSchemeRegistryFactory)
protected boolean
isHttpsBaseURL()
static boolean
isUsingProxy(URI currentUri)
static void
main(String[] arguments)
RemoteAgentHttpClientFactory
newHttpClientFactory()
protected void
run(AgentType type)
protected void
setHttpClientFactoryParamaters(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)
-
-