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;
}
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;
}
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;
}
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;
}
Aggregations