com.atlassian.bamboo.agent.elastic
Class ElasticAgentUserDataImpl

java.lang.Object
  extended by com.atlassian.bamboo.agent.elastic.ElasticAgentUserDataImpl
All Implemented Interfaces:
ElasticAgentUserData

public class ElasticAgentUserDataImpl
extends java.lang.Object
implements ElasticAgentUserData


Field Summary
static int STARTUP_TIMEOUT_SECONDS_DEFAULT
           
 
Fields inherited from interface com.atlassian.bamboo.agent.elastic.ElasticAgentUserData
KEY_STORE_PASSWORD
 
Constructor Summary
ElasticAgentUserDataImpl()
          Google GSON needs a default ctor.
ElasticAgentUserDataImpl(java.lang.String baseURL, int startupTimeoutSeconds, java.lang.String keyManagerAlgorithmName, java.lang.String trustManagerAlgorithmName, java.security.KeyStore keyStore, java.util.Map<java.lang.String,java.lang.String> metaData, boolean useTunnel, boolean ignoreCertificateChecks, int tunnelPort, int httpProxyPort, int jmsProxyPort, long elasticImageConfigurationId, java.lang.String elasticImageConfigurationName)
           
 
Method Summary
 java.lang.String getBaseURL()
           
 long getElasticImageConfigurationId()
          Identifier of elastic configuration that could be used to identify elastic agent when registering at the server
 java.lang.String getElasticImageConfigurationName()
          Name of elastic configuration
 int getHTTPProxyPort()
           
 int getJMSProxyPort()
           
 java.lang.String getKeyManagerAlgorithmName()
           
 java.security.KeyStore getKeyStore()
           
 java.util.Map<java.lang.String,java.lang.String> getMetaData()
           
 int getStartupTimeoutSeconds()
           
 java.lang.String getTrustManagerAlgorithmName()
           
 int getTunnelPort()
           
 boolean isIgnoreCertificateChecks()
          If not using the tunnel, and is using HTTPS, should certificates be checked?
 boolean isUseTunnelForHttp()
          Whether to use Tunnelling for http* traffic between the agent and server or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STARTUP_TIMEOUT_SECONDS_DEFAULT

public static final int STARTUP_TIMEOUT_SECONDS_DEFAULT
See Also:
Constant Field Values
Constructor Detail

ElasticAgentUserDataImpl

public ElasticAgentUserDataImpl(java.lang.String baseURL,
                                int startupTimeoutSeconds,
                                java.lang.String keyManagerAlgorithmName,
                                java.lang.String trustManagerAlgorithmName,
                                java.security.KeyStore keyStore,
                                java.util.Map<java.lang.String,java.lang.String> metaData,
                                boolean useTunnel,
                                boolean ignoreCertificateChecks,
                                int tunnelPort,
                                int httpProxyPort,
                                int jmsProxyPort,
                                long elasticImageConfigurationId,
                                java.lang.String elasticImageConfigurationName)

ElasticAgentUserDataImpl

public ElasticAgentUserDataImpl()
Google GSON needs a default ctor. GSON is used for serialization as it has no dependencies and is quite small.

Method Detail

getBaseURL

public java.lang.String getBaseURL()
Specified by:
getBaseURL in interface ElasticAgentUserData

getStartupTimeoutSeconds

public int getStartupTimeoutSeconds()
Specified by:
getStartupTimeoutSeconds in interface ElasticAgentUserData

getKeyManagerAlgorithmName

public java.lang.String getKeyManagerAlgorithmName()
Specified by:
getKeyManagerAlgorithmName in interface ElasticAgentUserData

getTrustManagerAlgorithmName

public java.lang.String getTrustManagerAlgorithmName()
Specified by:
getTrustManagerAlgorithmName in interface ElasticAgentUserData

getKeyStore

public java.security.KeyStore getKeyStore()
Specified by:
getKeyStore in interface ElasticAgentUserData

getMetaData

public java.util.Map<java.lang.String,java.lang.String> getMetaData()
Specified by:
getMetaData in interface ElasticAgentUserData

getElasticImageConfigurationId

public long getElasticImageConfigurationId()
Description copied from interface: ElasticAgentUserData
Identifier of elastic configuration that could be used to identify elastic agent when registering at the server

Specified by:
getElasticImageConfigurationId in interface ElasticAgentUserData
Returns:
elasticImageConfiguratrionId

isUseTunnelForHttp

public boolean isUseTunnelForHttp()
Description copied from interface: ElasticAgentUserData
Whether to use Tunnelling for http* traffic between the agent and server or not.

Specified by:
isUseTunnelForHttp in interface ElasticAgentUserData
Returns:

isIgnoreCertificateChecks

public boolean isIgnoreCertificateChecks()
Description copied from interface: ElasticAgentUserData
If not using the tunnel, and is using HTTPS, should certificates be checked?

Specified by:
isIgnoreCertificateChecks in interface ElasticAgentUserData
Returns:

getTunnelPort

public int getTunnelPort()
Specified by:
getTunnelPort in interface ElasticAgentUserData

getHTTPProxyPort

public int getHTTPProxyPort()
Specified by:
getHTTPProxyPort in interface ElasticAgentUserData

getJMSProxyPort

public int getJMSProxyPort()
Specified by:
getJMSProxyPort in interface ElasticAgentUserData

getElasticImageConfigurationName

public java.lang.String getElasticImageConfigurationName()
Description copied from interface: ElasticAgentUserData
Name of elastic configuration

Specified by:
getElasticImageConfigurationName in interface ElasticAgentUserData
Returns:
elasticImageConfiguratrionNAme


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.