Class AgentUuidInitializer
- java.lang.Object
-
- com.atlassian.bamboo.agent.bootstrap.AgentUuidInitializer
-
public final class AgentUuidInitializer extends Object
Utility to initialize agent UUID.- Since:
- 3.4
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_UUID
-
Constructor Summary
Constructors Constructor Description AgentUuidInitializer()
AgentUuidInitializer(File agentHome)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
initUuid()
Retrieve UUID from agent config file, or generate new random UUID if failed.String
readFromConfigFiles()
String
readFromTempUuidFile()
File
tempUuidFile()
-
-
-
Field Detail
-
PROPERTY_UUID
public static final String PROPERTY_UUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AgentUuidInitializer
public AgentUuidInitializer()
-
AgentUuidInitializer
public AgentUuidInitializer(File agentHome)
-
-
Method Detail
-
tempUuidFile
public File tempUuidFile()
-
initUuid
public UUID initUuid()
Retrieve UUID from agent config file, or generate new random UUID if failed.- Returns:
- existing or new UUID for the currently running agent
-
readFromConfigFiles
public String readFromConfigFiles()
-
readFromTempUuidFile
public String readFromTempUuidFile()
-
-