use of org.apache.hadoop.hdds.protocol.proto.StorageContainerLocationProtocolProtos.SCMCloseContainerRequestProto in project ozone by apache.
the class StorageContainerLocationProtocolClientSideTranslatorPB method closeContainer.
/**
* Close a container.
*
* @param containerID ID of the container to close
* @throws IOException in case of any Exception
*/
@Override
public void closeContainer(long containerID) throws IOException {
Preconditions.checkState(containerID >= 0, "Container ID cannot be negative");
SCMCloseContainerRequestProto request = SCMCloseContainerRequestProto.newBuilder().setTraceID(TracingUtil.exportCurrentSpan()).setContainerID(containerID).build();
submitRequest(Type.CloseContainer, builder -> builder.setScmCloseContainerRequest(request));
}
Aggregations