@ApplicationScoped @Counted(name="storage_operation_count", description="Total number of storage operations.", tags={"group=STORAGE","metric=storage_operation_count"}) @ConcurrentGauge(name="concurrent_operation_count", description="Number of concurrent storage operations.", tags={"group=STORAGE","metric=concurrent_operation_count"}) @Timed(name="storage_operation_time", description="Time for a storage operation to process.", tags={"group=STORAGE","metric=storage_operation_time"}, unit="milliseconds") public class JPARegistryStorage extends AbstractRegistryStorage
Constructor and Description |
---|
JPARegistryStorage() |
createArtifactRule, isReady
public boolean isAlive()
isAlive
in interface RegistryStorage
isAlive
in class AbstractRegistryStorage
public void updateArtifactState(String artifactId, ArtifactState state)
public void updateArtifactState(String artifactId, ArtifactState state, Integer version)
public CompletionStage<ArtifactMetaDataDto> createArtifact(String artifactId, ArtifactType artifactType, ContentHandle content) throws ArtifactAlreadyExistsException, RegistryStorageException
public CompletionStage<ArtifactMetaDataDto> createArtifactWithMetadata(String artifactId, ArtifactType artifactType, ContentHandle content, EditableArtifactMetaDataDto metaData) throws ArtifactAlreadyExistsException, RegistryStorageException
public SortedSet<Long> deleteArtifact(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public StoredArtifact getArtifact(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public CompletionStage<ArtifactMetaDataDto> updateArtifact(String artifactId, ArtifactType artifactType, ContentHandle content) throws ArtifactNotFoundException, RegistryStorageException
public CompletionStage<ArtifactMetaDataDto> updateArtifactWithMetadata(String artifactId, ArtifactType artifactType, ContentHandle content, EditableArtifactMetaDataDto metaData) throws ArtifactNotFoundException, RegistryStorageException
public io.apicurio.registry.rest.beans.ArtifactSearchResults searchArtifacts(String search, int offset, int limit, io.apicurio.registry.rest.beans.SearchOver searchOver, io.apicurio.registry.rest.beans.SortOrder sortOrder)
public ArtifactMetaDataDto getArtifactMetaData(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public ArtifactMetaDataDto getArtifactMetaData(String artifactId, ContentHandle content) throws ArtifactNotFoundException, RegistryStorageException
public ArtifactMetaDataDto getArtifactMetaData(long id) throws ArtifactNotFoundException, RegistryStorageException
public void updateArtifactMetaData(String artifactId, EditableArtifactMetaDataDto metaData) throws ArtifactNotFoundException, RegistryStorageException
public List<RuleType> getArtifactRules(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public CompletionStage<Void> createArtifactRuleAsync(String artifactId, RuleType rule, RuleConfigurationDto config) throws ArtifactNotFoundException, RuleAlreadyExistsException, RegistryStorageException
public void deleteArtifactRules(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public RuleConfigurationDto getArtifactRule(String artifactId, RuleType rule) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
public void updateArtifactRule(String artifactId, RuleType rule, RuleConfigurationDto config) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
public void deleteArtifactRule(String artifactId, RuleType rule) throws ArtifactNotFoundException, RuleNotFoundException, RegistryStorageException
public SortedSet<Long> getArtifactVersions(String artifactId) throws ArtifactNotFoundException, RegistryStorageException
public io.apicurio.registry.rest.beans.VersionSearchResults searchVersions(String artifactId, int offset, int limit)
public StoredArtifact getArtifactVersion(long id) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public StoredArtifact getArtifactVersion(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public void deleteArtifactVersion(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public ArtifactVersionMetaDataDto getArtifactVersionMetaData(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public void updateArtifactVersionMetaData(String artifactId, long version, EditableArtifactMetaDataDto metaData) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public void deleteArtifactVersionMetaData(String artifactId, long version) throws ArtifactNotFoundException, VersionNotFoundException, RegistryStorageException
public List<RuleType> getGlobalRules() throws RegistryStorageException
RegistryStorageException
public void createGlobalRule(RuleType rule, RuleConfigurationDto config) throws RuleAlreadyExistsException, RegistryStorageException
public void deleteGlobalRules() throws RegistryStorageException
RegistryStorageException
public RuleConfigurationDto getGlobalRule(RuleType rule) throws RuleNotFoundException, RegistryStorageException
public void updateGlobalRule(RuleType rule, RuleConfigurationDto config) throws RuleNotFoundException, RegistryStorageException
public void deleteGlobalRule(RuleType rule) throws RuleNotFoundException, RegistryStorageException
Copyright © 2020 Red Hat. All rights reserved.