in hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java [803:830]
private static DNAction getAuditAction(Type cmdType) {
switch (cmdType) {
case CreateContainer : return DNAction.CREATE_CONTAINER;
case ReadContainer : return DNAction.READ_CONTAINER;
case UpdateContainer : return DNAction.UPDATE_CONTAINER;
case DeleteContainer : return DNAction.DELETE_CONTAINER;
case ListContainer : return DNAction.LIST_CONTAINER;
case PutBlock : return DNAction.PUT_BLOCK;
case GetBlock : return DNAction.GET_BLOCK;
case DeleteBlock : return DNAction.DELETE_BLOCK;
case ListBlock : return DNAction.LIST_BLOCK;
case ReadChunk : return DNAction.READ_CHUNK;
case DeleteChunk : return DNAction.DELETE_CHUNK;
case WriteChunk : return DNAction.WRITE_CHUNK;
case ListChunk : return DNAction.LIST_CHUNK;
case CompactChunk : return DNAction.COMPACT_CHUNK;
case PutSmallFile : return DNAction.PUT_SMALL_FILE;
case GetSmallFile : return DNAction.GET_SMALL_FILE;
case CloseContainer : return DNAction.CLOSE_CONTAINER;
case GetCommittedBlockLength : return DNAction.GET_COMMITTED_BLOCK_LENGTH;
case StreamInit : return DNAction.STREAM_INIT;
case FinalizeBlock : return DNAction.FINALIZE_BLOCK;
case Echo : return DNAction.ECHO;
default :
LOG.debug("Invalid command type - {}", cmdType);
return null;
}
}