|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.agent.bootstrap.AgentContext
public class AgentContext
Field Summary | |
---|---|
static java.lang.String |
BOOTSTRAP_VERSION
|
static java.lang.String |
DISABLE_BOOTSTRAP_UPDATE
|
static java.lang.String |
FINGERPRINT_PARAM
|
static java.lang.String |
SERVER_AUTH_POLL_INTERVAL
Server poll interval for authentication, in seconds. |
static java.lang.String |
UUID_PARAM
|
static java.lang.String |
VERSION_PARAM
|
Constructor Summary | |
---|---|
AgentContext(AgentContextData original)
This constructor is used to reconstruct the AgentContext when the runtime classpath becomes available for Remote Upgrade, Remote and Elastic agents. |
|
AgentContext(org.apache.commons.httpclient.HttpClient httpClient,
java.lang.String baseUrl,
java.lang.String fingerPrintRequestSuffix,
AgentBootstrapType agentBootstrapType)
|
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)
|
AgentBootstrapType |
getAgentBootstrapType()
|
java.util.UUID |
getAgentUuid()
Unique ID for authenticating the agent. |
java.lang.String |
getBaseUrl()
|
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.String reason)
Shutdown the AgentContext , as a unrecoverable error has occurred. |
java.lang.Error |
panic(java.lang.String reason,
java.lang.Throwable throwable)
Shutdown the AgentContext , as a unrecoverable error has occurred. |
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 |
---|
public static final java.lang.String SERVER_AUTH_POLL_INTERVAL
public static final java.lang.String FINGERPRINT_PARAM
public static final java.lang.String VERSION_PARAM
public static final java.lang.String UUID_PARAM
public static final java.lang.String DISABLE_BOOTSTRAP_UPDATE
public static final java.lang.String BOOTSTRAP_VERSION
Constructor Detail |
---|
public AgentContext(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String baseUrl, java.lang.String fingerPrintRequestSuffix, AgentBootstrapType agentBootstrapType)
public AgentContext(AgentContextData original) throws java.lang.Exception
original
- original agent context data to copy
java.lang.Exception
- if unable to clone for any reasonMethod Detail |
---|
protected void run() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public java.lang.String getFingerprint()
public java.lang.String getBaseUrl()
public java.lang.String getAbsoluteURL(java.lang.String relativeUrl)
public static java.lang.String addParameter(java.lang.String url, java.lang.String name, java.lang.String value)
public org.apache.commons.httpclient.HttpClient getHttpClient()
public java.util.Map<java.lang.String,java.lang.String> getUserProperties()
public AgentBootstrapType getAgentBootstrapType()
public java.util.UUID getAgentUuid()
public java.lang.Error panic(java.lang.Throwable throwable)
Shutdown the AgentContext
, as a unrecoverable error has occurred.
throwable
- The Throwable
that caused the panic.
public java.lang.Error panic(java.lang.String reason)
Shutdown the AgentContext
, as a unrecoverable error has occurred.
reason
- for panic
public java.lang.Error panic(java.lang.String reason, java.lang.Throwable throwable)
Shutdown the AgentContext
, as a unrecoverable error has occurred.
reason
- for panicthrowable
- The Throwable
that caused the panic.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |