@ApplicationScoped @Counted(name="rest_request_count", description="Total number of REST requests.", tags={"group=REST","metric=rest_request_count"}, reusable=true) @ConcurrentGauge(name="concurrent_request_count", description="Number of concurrent REST requests.", tags={"group=REST","metric=concurrent_request_count"}, reusable=true) @Timed(name="rest_response_time", description="Time of a request-response interval.", tags={"group=REST","metric=rest_response_time"}, unit="milliseconds", reusable=true) public class IdsResourceImpl extends Object implements IdsResource, Headers
ARTIFACT_ID, DEPRECATED, VERSION
Constructor and Description |
---|
IdsResourceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkIfDeprecated(Supplier<ArtifactState> stateSupplier,
String artifactId,
Number version,
javax.ws.rs.core.Response.ResponseBuilder builder) |
javax.ws.rs.core.Response |
getArtifactByGlobalId(long globalId) |
ArtifactMetaData |
getArtifactMetaDataByGlobalId(long globalId) |
public void checkIfDeprecated(Supplier<ArtifactState> stateSupplier, String artifactId, Number version, javax.ws.rs.core.Response.ResponseBuilder builder)
checkIfDeprecated
in interface Headers
public javax.ws.rs.core.Response getArtifactByGlobalId(long globalId)
getArtifactByGlobalId
in interface IdsResource
IdsResource.getArtifactByGlobalId(long)
public ArtifactMetaData getArtifactMetaDataByGlobalId(long globalId)
getArtifactMetaDataByGlobalId
in interface IdsResource
IdsResource.getArtifactMetaDataByGlobalId(long)
Copyright © 2020 Red Hat. All rights reserved.