com.atlassian.bamboo.agent.bootstrap
Class AgentBootstrap

java.lang.Object
  extended by com.atlassian.bamboo.agent.bootstrap.AgentBootstrap
Direct Known Subclasses:
ElasticAgentBootstrap

public class AgentBootstrap
extends java.lang.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
protected  java.lang.String baseUrl
           
 
Constructor Summary
protected AgentBootstrap(java.lang.String baseUrl)
           
 
Method Summary
protected static void configureLogging()
           
protected static void ensureClassIsLoaded(java.lang.Class<?> anyClazz)
          Due to our class loading wizardy, we may need to occasionally ensure that a class is loaded at given point in time
protected  java.lang.String getFingerprintRequestSuffix()
           
protected  org.apache.commons.httpclient.HttpClient getHttpClient()
           
protected  java.lang.String getProxyBaseURL()
           
protected  int getStartupTimeoutSeconds()
           
protected  boolean isHttpsBaseURL()
           
static void main(java.lang.String[] arguments)
           
protected  org.apache.commons.httpclient.HttpClient newHttpClient()
           
protected static org.apache.commons.httpclient.HttpClient newHttpClient(int timeoutSeconds, int retries)
           
protected  void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseUrl

protected final java.lang.String baseUrl
Constructor Detail

AgentBootstrap

protected AgentBootstrap(java.lang.String baseUrl)
Method Detail

main

public static void main(java.lang.String[] arguments)

configureLogging

protected static void configureLogging()

run

protected void run()

isHttpsBaseURL

protected boolean isHttpsBaseURL()
                          throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getProxyBaseURL

protected java.lang.String getProxyBaseURL()
                                    throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getStartupTimeoutSeconds

protected int getStartupTimeoutSeconds()

ensureClassIsLoaded

protected static void ensureClassIsLoaded(java.lang.Class<?> anyClazz)
                                   throws java.lang.ClassNotFoundException
Due to our class loading wizardy, we may need to occasionally ensure that a class is loaded at given point in time

Parameters:
anyClazz - The class to load.
Throws:
java.lang.ClassNotFoundException - If the class cannot be found.

getHttpClient

protected org.apache.commons.httpclient.HttpClient getHttpClient()
                                                          throws java.lang.ClassNotFoundException,
                                                                 java.security.NoSuchAlgorithmException,
                                                                 java.security.KeyManagementException,
                                                                 java.net.MalformedURLException
Throws:
java.lang.ClassNotFoundException
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.net.MalformedURLException

newHttpClient

protected org.apache.commons.httpclient.HttpClient newHttpClient()
                                                          throws java.lang.ClassNotFoundException,
                                                                 java.net.MalformedURLException
Throws:
java.lang.ClassNotFoundException
java.net.MalformedURLException

newHttpClient

protected static org.apache.commons.httpclient.HttpClient newHttpClient(int timeoutSeconds,
                                                                        int retries)

getFingerprintRequestSuffix

protected java.lang.String getFingerprintRequestSuffix()


Copyright © 2011 Atlassian. All Rights Reserved.