stats

package
v0.0.0-...-0a980e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerStats

type BrokerStats struct {
	MsgPutTotalTodayMorning     int64
	MsgPutTotalYesterdayMorning int64
	MsgGetTotalTodayMorning     int64
	MsgGetTotalYesterdayMorning int64
	DefaultMessageStore         *stgstorelog.DefaultMessageStore
}

BrokerStats broker统计的数据(昨天和今天的Get、Put数据量) Author rongzhihong Since 2017/9/12

func NewBrokerStats

func NewBrokerStats(defaultMessageStore *stgstorelog.DefaultMessageStore) *BrokerStats

NewBrokerStats 初始化broker统计 Author rongzhihong Since 2017/9/12

func (*BrokerStats) GetMsgGetTotalTodayNow

func (bs *BrokerStats) GetMsgGetTotalTodayNow() int64

GetMsgGetTotalTodayNow 获得当前get消息的次数 Author rongzhihong Since 2017/9/12

func (*BrokerStats) GetMsgPutTotalTodayNow

func (bs *BrokerStats) GetMsgPutTotalTodayNow() int64

GetMsgPutTotalTodayNow 获得当前put消息的次数 Author rongzhihong Since 2017/9/12

func (*BrokerStats) Record

func (bs *BrokerStats) Record()

NewBrokerStats 初始化broker统计 Author rongzhihong Since 2017/9/12

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL