return this.topicAndGroupConsumeFailedTPS.getStatsDataInMinute(topic + "@" + group);
}
public ConsumeStatus consumeStatus(final String group, final String topic) {
ConsumeStatus cs = new ConsumeStatus();
{
StatsSnapshot ss = this.getPullRT(group, topic);
if (ss != null) {
cs.setPullRT(ss.getAvgpt());
}
}
{
StatsSnapshot ss = this.getPullTPS(group, topic);
if (ss != null) {
cs.setPullTPS(ss.getTps());
}
}
{
StatsSnapshot ss = this.getConsumeRT(group, topic);
if (ss != null) {
cs.setConsumeRT(ss.getAvgpt());
}
}
{
StatsSnapshot ss = this.getConsumeOKTPS(group, topic);
if (ss != null) {
cs.setConsumeOKTPS(ss.getTps());
}
}
{
StatsSnapshot ss = this.getConsumeFailedTPS(group, topic);
if (ss != null) {
cs.setConsumeFailedTPS(ss.getTps());
}
}
{
StatsSnapshot ss = this.topicAndGroupConsumeFailedTPS.getStatsDataInHour(topic + "@" + group);
if (ss != null) {
cs.setConsumeFailedMsgs(ss.getSum());
}
}
return cs;
}