use of org.apache.hadoop.hdds.protocol.proto.StorageContainerLocationProtocolProtos.GetContainerTokenResponseProto in project ozone by apache.
the class StorageContainerLocationProtocolClientSideTranslatorPB method getContainerToken.
public Token<?> getContainerToken(ContainerID containerID) throws IOException {
GetContainerTokenRequestProto request = GetContainerTokenRequestProto.newBuilder().setContainerID(containerID.getProtobuf()).build();
GetContainerTokenResponseProto response = submitRequest(Type.GetContainerToken, builder -> builder.setContainerTokenRequest(request)).getContainerTokenResponse();
return OzonePBHelper.tokenFromProto(response.getToken());
}
Aggregations