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
ConstructorDescriptionTunnelAwareAdministrationConfigurationManagerImpl
(AdministrationConfigurationManager administrationConfigurationManager, AgentContext agentContext) -
Method Summary
Modifier and TypeMethodDescription@NotNull AdministrationConfiguration
Retrive theAdministrationConfiguration
@NotNull File
Return the directory containing the administration.xml file.void
saveAdministrationConfiguration
(@NotNull AdministrationConfiguration administrationConfiguration) Save theAdministrationConfiguration
-
Constructor Details
-
TunnelAwareAdministrationConfigurationManagerImpl
public TunnelAwareAdministrationConfigurationManagerImpl(AdministrationConfigurationManager administrationConfigurationManager, AgentContext agentContext)
-
-
Method Details
-
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
Description copied from interface:AdministrationConfigurationManager
Return the directory containing the administration.xml file.- Specified by:
getConfigurationDirectoryFile
in interfaceAdministrationConfigurationManager
- Returns:
-