Class ElasticAgentUserDataImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.ElasticAgentUserDataImpl
-
- All Implemented Interfaces:
ElasticAgentUserData
public class ElasticAgentUserDataImpl extends Object implements ElasticAgentUserData
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.agent.elastic.ElasticAgentUserData
KEY_STORE_PASSWORD
-
-
Constructor Summary
Constructors Constructor Description ElasticAgentUserDataImpl()
Google GSON needs a default ctor.ElasticAgentUserDataImpl(String baseURL, int startupTimeoutSeconds, String keyManagerAlgorithmName, String trustManagerAlgorithmName, KeyStore keyStore, Map<String,String> metaData, boolean useTunnelForHttp, boolean useTunnelForJms, boolean ignoreCertificateChecks, int tunnelPort, int httpProxyPort, int jmsProxyPort, long elasticImageConfigurationId, String elasticImageConfigurationName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseURL()
long
getElasticImageConfigurationId()
Identifier of elastic configuration that could be used to identify elastic agent when registering at the serverString
getElasticImageConfigurationName()
Name of elastic configurationint
getHTTPProxyPort()
int
getJMSProxyPort()
String
getKeyManagerAlgorithmName()
KeyStore
getKeyStore()
Map<String,String>
getMetaData()
int
getStartupTimeoutSeconds()
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.boolean
shouldUseTunnelForJms()
Whether to use Tunnelling for JMS traffic between the agent and server or not.
-
-
-
Constructor Detail
-
ElasticAgentUserDataImpl
public ElasticAgentUserDataImpl(String baseURL, int startupTimeoutSeconds, String keyManagerAlgorithmName, String trustManagerAlgorithmName, KeyStore keyStore, Map<String,String> metaData, boolean useTunnelForHttp, boolean useTunnelForJms, boolean ignoreCertificateChecks, int tunnelPort, int httpProxyPort, int jmsProxyPort, long elasticImageConfigurationId, String elasticImageConfigurationName)
-
ElasticAgentUserDataImpl
public ElasticAgentUserDataImpl()
Google GSON needs a default ctor.
-
-
Method Detail
-
getBaseURL
public String getBaseURL()
- Specified by:
getBaseURL
in interfaceElasticAgentUserData
-
getStartupTimeoutSeconds
public int getStartupTimeoutSeconds()
- Specified by:
getStartupTimeoutSeconds
in interfaceElasticAgentUserData
-
getKeyManagerAlgorithmName
public String getKeyManagerAlgorithmName()
- Specified by:
getKeyManagerAlgorithmName
in interfaceElasticAgentUserData
-
getTrustManagerAlgorithmName
public String getTrustManagerAlgorithmName()
- Specified by:
getTrustManagerAlgorithmName
in interfaceElasticAgentUserData
-
getKeyStore
public KeyStore getKeyStore()
- Specified by:
getKeyStore
in interfaceElasticAgentUserData
-
getMetaData
public Map<String,String> getMetaData()
- Specified by:
getMetaData
in interfaceElasticAgentUserData
-
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 interfaceElasticAgentUserData
- 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 interfaceElasticAgentUserData
- Returns:
-
shouldUseTunnelForJms
public boolean shouldUseTunnelForJms()
Description copied from interface:ElasticAgentUserData
Whether to use Tunnelling for JMS traffic between the agent and server or not.- Specified by:
shouldUseTunnelForJms
in interfaceElasticAgentUserData
- 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 interfaceElasticAgentUserData
- Returns:
-
getTunnelPort
public int getTunnelPort()
- Specified by:
getTunnelPort
in interfaceElasticAgentUserData
-
getHTTPProxyPort
public int getHTTPProxyPort()
- Specified by:
getHTTPProxyPort
in interfaceElasticAgentUserData
-
getJMSProxyPort
public int getJMSProxyPort()
- Specified by:
getJMSProxyPort
in interfaceElasticAgentUserData
-
getElasticImageConfigurationName
public String getElasticImageConfigurationName()
Description copied from interface:ElasticAgentUserData
Name of elastic configuration- Specified by:
getElasticImageConfigurationName
in interfaceElasticAgentUserData
- Returns:
- elasticImageConfiguratrionNAme
-
-