fix npe on problem report
meger the code
modify the code
add the event count function
refactor code
remove unused file
Merge pull request #636 from youyong205/master

refactor cat consumer