Class AgentConfigurationStatePersistenceManager
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.config.AgentConfigurationStatePersistenceManager
-
public class AgentConfigurationStatePersistenceManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
STATE_DIRECTORY_KEY
static String
STATE_FILE
-
Constructor Summary
Constructors Constructor Description AgentConfigurationStatePersistenceManager(BuildAgentConfigurablePaths myConfigurablePaths, ExtensionHolder extensionHolder, AgentVersionController agentVersionController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
fetchConfiguration()
Map<String,String>
getCachedConfiguration()
File
probeAndSaveConfiguration()
Prepares and stores the configuration parameters that can be probed from the agent and its plugins.
-
-
-
Field Detail
-
STATE_DIRECTORY_KEY
public static final String STATE_DIRECTORY_KEY
- See Also:
- Constant Field Values
-
STATE_FILE
public static final String STATE_FILE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AgentConfigurationStatePersistenceManager
public AgentConfigurationStatePersistenceManager(@NotNull BuildAgentConfigurablePaths myConfigurablePaths, @NotNull ExtensionHolder extensionHolder, @NotNull AgentVersionController agentVersionController)
-
-
Method Detail
-
probeAndSaveConfiguration
@NotNull public File probeAndSaveConfiguration() throws IOException
Prepares and stores the configuration parameters that can be probed from the agent and its plugins.- Returns:
- file, if the configuration was saved
- Throws:
IOException
- if there has been any issue saving the configuration
-
-