Class TunnelAwareAdministrationConfigurationManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.client.TunnelAwareAdministrationConfigurationManagerImpl
-
- All Implemented Interfaces:
AdministrationConfigurationManager
public class TunnelAwareAdministrationConfigurationManagerImpl extends Object implements AdministrationConfigurationManager
Purpose of this class is to provide proper Bamboo server URL for elastic agents. Elastic agents use an encrypted tunnel to access Bamboo server, this fact is transparent for agent code. When Bamboo server URL has to be passed to external process, real URL is required. AdministrationConfiguration provides original URL not tunneled one - so there is a need to translate it.
-
-
Constructor Summary
Constructors Constructor Description TunnelAwareAdministrationConfigurationManagerImpl(AdministrationConfigurationManager administrationConfigurationManager, AgentContext agentContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AdministrationConfiguration
getAdministrationConfiguration()
Retrive theAdministrationConfiguration
@NotNull File
getConfigurationDirectoryFile()
Return the directory containing the administration.xml file.void
saveAdministrationConfiguration(@NotNull AdministrationConfiguration administrationConfiguration)
Save theAdministrationConfiguration
-
-
-
Constructor Detail
-
TunnelAwareAdministrationConfigurationManagerImpl
public TunnelAwareAdministrationConfigurationManagerImpl(AdministrationConfigurationManager administrationConfigurationManager, AgentContext agentContext)
-
-
Method Detail
-
getAdministrationConfiguration
@NotNull public @NotNull AdministrationConfiguration getAdministrationConfiguration()
Description copied from interface:AdministrationConfigurationManager
Retrive theAdministrationConfiguration
- Specified by:
getAdministrationConfiguration
in interfaceAdministrationConfigurationManager
- Returns:
- administrationConfiguration
-
saveAdministrationConfiguration
public void saveAdministrationConfiguration(@NotNull @NotNull AdministrationConfiguration administrationConfiguration)
Description copied from interface:AdministrationConfigurationManager
Save theAdministrationConfiguration
- Specified by:
saveAdministrationConfiguration
in interfaceAdministrationConfigurationManager
-
getConfigurationDirectoryFile
@NotNull public @NotNull File getConfigurationDirectoryFile()
Description copied from interface:AdministrationConfigurationManager
Return the directory containing the administration.xml file.- Specified by:
getConfigurationDirectoryFile
in interfaceAdministrationConfigurationManager
- Returns:
-
-