com.atlassian.bamboo.agent.elastic.client
Class TunnelAwareAdministrationConfigurationManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.agent.elastic.client.TunnelAwareAdministrationConfigurationManagerImpl
All Implemented Interfaces:
AdministrationConfigurationManager

public class TunnelAwareAdministrationConfigurationManagerImpl
extends java.lang.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
TunnelAwareAdministrationConfigurationManagerImpl(AdministrationConfigurationManager administrationConfigurationManager, AgentContext agentContext)
           
 
Method Summary
 AdministrationConfiguration getAdministrationConfiguration()
          Retrive the AdministrationConfiguration
 java.io.File getConfigurationDirectoryFile()
          Return the directory containing the administration.xml file.
 void saveAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)
          Save the AdministrationConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelAwareAdministrationConfigurationManagerImpl

public TunnelAwareAdministrationConfigurationManagerImpl(AdministrationConfigurationManager administrationConfigurationManager,
                                                         AgentContext agentContext)
Method Detail

getAdministrationConfiguration

@NotNull
public AdministrationConfiguration getAdministrationConfiguration()
Description copied from interface: AdministrationConfigurationManager
Retrive the AdministrationConfiguration

Specified by:
getAdministrationConfiguration in interface AdministrationConfigurationManager
Returns:
administrationConfiguration

saveAdministrationConfiguration

public void saveAdministrationConfiguration(@NotNull
                                            AdministrationConfiguration administrationConfiguration)
Description copied from interface: AdministrationConfigurationManager
Save the AdministrationConfiguration

Specified by:
saveAdministrationConfiguration in interface AdministrationConfigurationManager

getConfigurationDirectoryFile

@NotNull
public java.io.File getConfigurationDirectoryFile()
Description copied from interface: AdministrationConfigurationManager
Return the directory containing the administration.xml file.

Specified by:
getConfigurationDirectoryFile in interface AdministrationConfigurationManager
Returns:


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