@Experimental public class Tracestate {
@Experimental public class Tracestate {
@Experimental public class Traceparent {
@Experimental public class Traceparent {
@Experimental private String extractNameFromTempPath(Path p, boolean addTaskID, String hostName) { LOG.trace("Extract name from {}", p.toString());
@Experimental private String extractNameFromTempPath(Path p, boolean addTaskID, String hostName) { LOG.trace("Extract name from {}", p.toString());
/** * Bulk delete API for all types * @param typesDef A composite object that captures all types to be deleted * @throws Exception * @HTTP 204 On successful deletion of the requested type definitions * @HTTP 400 On validation failure for any type definitions */ @DELETE @Path("/typedefs") @Experimental public void deleteAtlasTypeDefs(final AtlasTypesDef typesDef) throws AtlasBaseException { AtlasPerfTracer perf = null; try { if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "TypesREST.deleteAtlasTypeDefs(" + AtlasTypeUtil.toDebugString(typesDef) + ")"); } typeDefStore.deleteTypesDef(typesDef); } finally { AtlasPerfTracer.log(perf); } }
/** * Bulk update API for all types, changes detected in the type definitions would be persisted * @param typesDef A composite object that captures all type definition changes * @return A composite object with lists of type definitions that were updated * @throws Exception * @HTTP 200 On successful update of requested type definitions * @HTTP 400 On validation failure for any type definitions */ @PUT @Path("/typedefs") @Experimental public AtlasTypesDef updateAtlasTypeDefs(final AtlasTypesDef typesDef) throws AtlasBaseException { AtlasPerfTracer perf = null; try { if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) { perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "TypesREST.updateAtlasTypeDefs(" + AtlasTypeUtil.toDebugString(typesDef) + ")"); } return typeDefStore.updateTypesDef(typesDef); } finally { AtlasPerfTracer.log(perf); } }