use of co.cask.cdap.proto.id.StreamViewId in project cdap by caskdata.
the class MetadataHttpHandler method removeViewProperty.
@DELETE
@Path("/namespaces/{namespace-id}/streams/{stream-id}/views/{view-id}/metadata/properties/{property}")
public void removeViewProperty(HttpRequest request, HttpResponder responder, @PathParam("namespace-id") String namespaceId, @PathParam("stream-id") String streamId, @PathParam("view-id") String viewId, @PathParam("property") String property) throws NotFoundException {
StreamViewId view = new StreamViewId(namespaceId, streamId, viewId);
metadataAdmin.removeProperties(view, property);
responder.sendString(HttpResponseStatus.OK, String.format("Metadata property %s for view %s deleted successfully.", property, view));
}
use of co.cask.cdap.proto.id.StreamViewId in project cdap by caskdata.
the class InMemoryViewStore method list.
@Override
public List<StreamViewId> list(StreamId streamId) {
Lock lock = viewsLock.readLock();
lock.lock();
try {
return ImmutableList.<StreamViewId>builder().addAll(views.column(streamId).keySet()).build();
} finally {
lock.unlock();
}
}
Aggregations