com.atlassian.bamboo.agent.bootstrap
Class AgentContext

java.lang.Object
  extended by com.atlassian.bamboo.agent.bootstrap.AgentContext

public class AgentContext
extends java.lang.Object


Field Summary
static java.lang.String FINGERPRINT_PARAM
           
 
Constructor Summary
AgentContext(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String baseUrl, java.lang.String fingerPrintRequestSuffix)
           
 
Method Summary
static java.lang.String addParameter(java.lang.String url, java.lang.String name, java.lang.String value)
           
 java.lang.String getAbsoluteURL(java.lang.String relativeUrl)
           
 java.lang.String getFingerprint()
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 java.util.Map<java.lang.String,java.lang.String> getUserProperties()
           
 java.lang.Error panic(java.lang.Throwable throwable)
          Shutdown the AgentContext, as a unrecoverable error has occurred.
protected  void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FINGERPRINT_PARAM

public static final java.lang.String FINGERPRINT_PARAM
See Also:
Constant Field Values
Constructor Detail

AgentContext

public AgentContext(org.apache.commons.httpclient.HttpClient httpClient,
                    java.lang.String baseUrl,
                    java.lang.String fingerPrintRequestSuffix)
             throws java.io.IOException,
                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

getFingerprint

public java.lang.String getFingerprint()

run

protected void run()

getAbsoluteURL

public java.lang.String getAbsoluteURL(java.lang.String relativeUrl)

addParameter

public static java.lang.String addParameter(java.lang.String url,
                                            java.lang.String name,
                                            java.lang.String value)

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

getUserProperties

public java.util.Map<java.lang.String,java.lang.String> getUserProperties()

panic

public java.lang.Error panic(java.lang.Throwable throwable)

Shutdown the AgentContext, as a unrecoverable error has occurred.

Parameters:
throwable - The Throwable that caused the panic.
Returns:
Never returns; Declared as returning Error so that callers can throw result to indicate to compiler that subsequent code is unreachable.


Copyright © 2011 Atlassian. All Rights Reserved.