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  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  void run(AgentBootstrapType type)
           
 
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(AgentBootstrapType type)

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()

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

getFingerprintRequestSuffix

protected java.lang.String getFingerprintRequestSuffix()


Copyright © 2012 Atlassian. All Rights Reserved.