Package org.apache.storm.scheduler.utils
Class ArtifactoryConfigLoader
java.lang.Object
org.apache.storm.scheduler.utils.ArtifactoryConfigLoader
- All Implemented Interfaces:
- IConfigLoader
A dynamic loader that can load scheduler configurations for user resource guarantees from Artifactory (an artifact repository manager).
 This is not thread-safe.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
LOCAL_ARTIFACT_DIR- See Also:
 
 
- 
- 
Constructor Details- 
ArtifactoryConfigLoader
 
- 
- 
Method Details- 
loadLoad the configs associated with the configKey from the targetURI.- Specified by:
- loadin interface- IConfigLoader
- Parameters:
- configKey- The key from which we want to get the scheduler config.
- Returns:
- The scheduler configuration if exists; null otherwise.
 
- 
doGetProtected so we can override this in unit tests.- Parameters:
- api- null if we are trying to download artifact, otherwise a string to call REST api, e.g. "/api/storage"
- artifact- location of artifact
- host- Artifactory hostname
- port- Artifactory port
- Returns:
- null on failure or the response string if return code is in 200 range
 
 
-