|
||||||||||
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(org.apache.commons.httpclient.HttpClient httpClient,
java.net.URL baseUrl,
java.lang.String fingerPrintRequestSuffix,
AgentType 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)
|
AgentType |
getAgentBootstrapType()
|
java.util.UUID |
getAgentUuid()
Unique ID for authenticating the agent. |
java.net.URL |
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.net.URL baseUrl, java.lang.String fingerPrintRequestSuffix, AgentType agentBootstrapType) throws java.net.MalformedURLException
java.net.MalformedURLException
Method Detail |
---|
protected void run() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public java.lang.String getFingerprint()
public java.net.URL 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 AgentType 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 |