Search in sources :

Example 71 with Timed

use of org.apache.atlas.annotation.Timed in project atlas by apache.

the class TypesREST method getEnumDefByGuid.

/**
 * Get the enum definition for the given guid
 * @param guid enum guid
 * @return enum definition
 * @throws AtlasBaseException
 * @HTTP 200 On successful lookup of the the enum definition by it's guid
 * @HTTP 404 On Failed lookup for the given guid
 */
@GET
@Path("/enumdef/guid/{guid}")
@Timed
public AtlasEnumDef getEnumDefByGuid(@PathParam("guid") String guid) throws AtlasBaseException {
    Servlets.validateQueryParamLength("guid", guid);
    AtlasEnumDef ret = typeDefStore.getEnumDefByGuid(guid);
    return ret;
}
Also used : AtlasEnumDef(org.apache.atlas.model.typedef.AtlasEnumDef) Path(javax.ws.rs.Path) Timed(org.apache.atlas.annotation.Timed) GET(javax.ws.rs.GET)

Example 72 with Timed

use of org.apache.atlas.annotation.Timed in project atlas by apache.

the class TypesREST method getBusinessMetadataDefByGuid.

/**
 * Get the businessMetadata definition for the given guid
 * @param guid businessMetadata guid
 * @return businessMetadata definition
 * @throws AtlasBaseException
 * @HTTP 200 On successful lookup of the the businessMetadata definition by it's guid
 * @HTTP 404 On Failed lookup for the given guid
 */
@GET
@Path("/businessmetadatadef/guid/{guid}")
@Timed
public AtlasBusinessMetadataDef getBusinessMetadataDefByGuid(@PathParam("guid") String guid) throws AtlasBaseException {
    Servlets.validateQueryParamLength("guid", guid);
    AtlasBusinessMetadataDef ret = typeDefStore.getBusinessMetadataDefByGuid(guid);
    return ret;
}
Also used : AtlasBusinessMetadataDef(org.apache.atlas.model.typedef.AtlasBusinessMetadataDef) Path(javax.ws.rs.Path) Timed(org.apache.atlas.annotation.Timed) GET(javax.ws.rs.GET)

Example 73 with Timed

use of org.apache.atlas.annotation.Timed in project atlas by apache.

the class TypesREST method getEntityDefByGuid.

/**
 * Get the Entity definition for the given guid
 * @param guid entity guid
 * @return Entity definition
 * @throws AtlasBaseException
 * @HTTP 200 On successful lookup of the the entity definition by it's guid
 * @HTTP 404 On Failed lookup for the given guid
 */
@GET
@Path("/entitydef/guid/{guid}")
@Timed
public AtlasEntityDef getEntityDefByGuid(@PathParam("guid") String guid) throws AtlasBaseException {
    Servlets.validateQueryParamLength("guid", guid);
    AtlasEntityDef ret = typeDefStore.getEntityDefByGuid(guid);
    return ret;
}
Also used : AtlasEntityDef(org.apache.atlas.model.typedef.AtlasEntityDef) Path(javax.ws.rs.Path) Timed(org.apache.atlas.annotation.Timed) GET(javax.ws.rs.GET)

Example 74 with Timed

use of org.apache.atlas.annotation.Timed in project atlas by apache.

the class TypesREST method getStructDefByName.

/**
 * Get the struct definition by it's name (unique)
 * @param name struct name
 * @return struct definition
 * @throws AtlasBaseException
 * @HTTP 200 On successful lookup of the the struct definition by it's name
 * @HTTP 404 On Failed lookup for the given name
 */
@GET
@Path("/structdef/name/{name}")
@Timed
public AtlasStructDef getStructDefByName(@PathParam("name") String name) throws AtlasBaseException {
    Servlets.validateQueryParamLength("name", name);
    AtlasStructDef ret = typeDefStore.getStructDefByName(name);
    return ret;
}
Also used : AtlasStructDef(org.apache.atlas.model.typedef.AtlasStructDef) Path(javax.ws.rs.Path) Timed(org.apache.atlas.annotation.Timed) GET(javax.ws.rs.GET)

Aggregations

Timed (org.apache.atlas.annotation.Timed)74 Path (javax.ws.rs.Path)72 AtlasPerfTracer (org.apache.atlas.utils.AtlasPerfTracer)58 GET (javax.ws.rs.GET)45 AtlasBaseException (org.apache.atlas.exception.AtlasBaseException)23 AtlasEntityType (org.apache.atlas.type.AtlasEntityType)14 PUT (javax.ws.rs.PUT)12 DELETE (javax.ws.rs.DELETE)9 POST (javax.ws.rs.POST)6 Map (java.util.Map)5 AtlasGlossary (org.apache.atlas.model.glossary.AtlasGlossary)3 HashMap (java.util.HashMap)2 Produces (javax.ws.rs.Produces)2 SearchFilter (org.apache.atlas.model.SearchFilter)2 AtlasGlossaryCategory (org.apache.atlas.model.glossary.AtlasGlossaryCategory)2 AtlasGlossaryTerm (org.apache.atlas.model.glossary.AtlasGlossaryTerm)2 AtlasUserSavedSearch (org.apache.atlas.model.profile.AtlasUserSavedSearch)2 AtlasBaseTypeDef (org.apache.atlas.model.typedef.AtlasBaseTypeDef)2 AtlasBusinessMetadataDef (org.apache.atlas.model.typedef.AtlasBusinessMetadataDef)2 AtlasClassificationDef (org.apache.atlas.model.typedef.AtlasClassificationDef)2