Class ArtifactStore
- java.lang.Object
-
- com.netflix.spinnaker.kork.artifacts.artifactstore.ArtifactStore
-
- All Implemented Interfaces:
ArtifactStoreGetter,ArtifactStoreStorer
public class ArtifactStore extends java.lang.Object implements ArtifactStoreGetter, ArtifactStoreStorer
ArtifactStore allows for different types of artifact storage to be used during runtime
-
-
Constructor Summary
Constructors Constructor Description ArtifactStore(ArtifactStoreGetter artifactStoreGetter, ArtifactStoreStorer artifactStoreStorer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifactget(ArtifactReferenceURI uri, ArtifactDecorator... decorators)get is used to return an artifact with some id, while also decorating that artifact with any necessary fields needed which should be then be returned by the artifact store.booleanisArtifactURI(java.lang.String value)static voidsetInstance(ArtifactStore storage)Artifactstore(Artifact artifact)Store an artifact in the artifact store
-
-
-
Constructor Detail
-
ArtifactStore
public ArtifactStore(ArtifactStoreGetter artifactStoreGetter, ArtifactStoreStorer artifactStoreStorer)
-
-
Method Detail
-
store
public Artifact store(Artifact artifact)
Store an artifact in the artifact store- Specified by:
storein interfaceArtifactStoreStorer
-
get
public Artifact get(ArtifactReferenceURI uri, ArtifactDecorator... decorators)
get is used to return an artifact with some id, while also decorating that artifact with any necessary fields needed which should be then be returned by the artifact store.- Specified by:
getin interfaceArtifactStoreGetter
-
setInstance
public static void setInstance(ArtifactStore storage)
-
isArtifactURI
public boolean isArtifactURI(java.lang.String value)
-
-