Class AbstractRegistryStorage
- java.lang.Object
-
- io.apicurio.registry.storage.impl.AbstractRegistryStorage
-
- All Implemented Interfaces:
RegistryStorage
- Direct Known Subclasses:
AbstractSqlRegistryStorage
public abstract class AbstractRegistryStorage extends Object implements RegistryStorage
- Author:
- Ales Justin
-
-
Constructor Summary
Constructors Constructor Description AbstractRegistryStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createArtifactRule(String groupId, String artifactId, RuleType rule, RuleConfigurationDto config)
Creates an artifact rule for a specific Artifact.boolean
isAlive()
Is the artifactStore alive?boolean
isReady()
Is the artifactStore ready?-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apicurio.registry.storage.RegistryStorage
createArtifact, createArtifactRuleAsync, createArtifactWithMetadata, createGlobalRule, createGroup, deleteArtifact, deleteArtifactRule, deleteArtifactRules, deleteArtifacts, deleteArtifactVersion, deleteArtifactVersionMetaData, deleteGlobalRule, deleteGlobalRules, deleteGroup, exportData, getArtifact, getArtifactByContentHash, getArtifactByContentId, getArtifactIds, getArtifactMetaData, getArtifactMetaData, getArtifactRule, getArtifactRules, getArtifactVersion, getArtifactVersion, getArtifactVersionMetaData, getArtifactVersionMetaData, getArtifactVersions, getArtifactVersionsByContentId, getGlobalRule, getGlobalRules, getGroupIds, getGroupMetaData, getLogConfiguration, importData, listLogConfigurations, removeLogConfiguration, searchArtifacts, searchVersions, setLogConfiguration, storageName, supportsMultiTenancy, updateArtifact, updateArtifactMetaData, updateArtifactRule, updateArtifactState, updateArtifactState, updateArtifactVersionMetaData, updateArtifactWithMetadata, updateGlobalRule, updateGroupMetaData
-
-
-
-
Method Detail
-
isReady
public boolean isReady()
Description copied from interface:RegistryStorage
Is the artifactStore ready?By default we check if it can access list of global rules.
- Specified by:
isReady
in interfaceRegistryStorage
- Returns:
- true if yes, false if no
-
isAlive
public boolean isAlive()
Description copied from interface:RegistryStorage
Is the artifactStore alive?By default it's true.
- Specified by:
isAlive
in interfaceRegistryStorage
- Returns:
- true if yes, false if no
-
createArtifactRule
public void createArtifactRule(String groupId, String artifactId, RuleType rule, RuleConfigurationDto config) throws ArtifactNotFoundException, RuleAlreadyExistsException, RegistryStorageException
Description copied from interface:RegistryStorage
Creates an artifact rule for a specific Artifact. If the named rule already exists for the artifact, then this should fail.- Specified by:
createArtifactRule
in interfaceRegistryStorage
- Parameters:
groupId
- (optional)- Throws:
ArtifactNotFoundException
RuleAlreadyExistsException
RegistryStorageException
-
-