com.atlassian.bamboo.agent.bootstrap
Class AgentUuidInitializer
java.lang.Object
com.atlassian.bamboo.agent.bootstrap.AgentUuidInitializer
public final class AgentUuidInitializer
- extends java.lang.Object
Utility to initialize agent UUID.
- Since:
- 3.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_UUID
public static final java.lang.String PROPERTY_UUID
- See Also:
- Constant Field Values
AgentUuidInitializer
public AgentUuidInitializer()
AgentUuidInitializer
public AgentUuidInitializer(java.io.File agentHome)
tempUuidFile
public java.io.File tempUuidFile()
initUuid
public java.util.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 java.lang.String readFromConfigFiles()
readFromTempUuidFile
public java.lang.String readFromTempUuidFile()
Copyright © 2012 Atlassian. All Rights Reserved.