本文整理汇总了Golang中github.com/cockroachdb/cockroach/server/status.NewNodeStatusMonitor函数的典型用法代码示例。如果您正苦于以下问题:Golang NewNodeStatusMonitor函数的具体用法?Golang NewNodeStatusMonitor怎么用?Golang NewNodeStatusMonitor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewNodeStatusMonitor函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: NewNode
// NewNode returns a new instance of Node.
func NewNode(ctx storage.StoreContext) *Node {
return &Node{
ctx: ctx,
status: status.NewNodeStatusMonitor(),
stores: storage.NewStores(),
}
}
示例2: NewNode
// NewNode returns a new instance of Node.
func NewNode(ctx storage.StoreContext) *Node {
return &Node{
ctx: ctx,
status: status.NewNodeStatusMonitor(),
lSender: kv.NewLocalSender(),
}
}
示例3: NewNode
// NewNode returns a new instance of Node.
func NewNode(ctx storage.StoreContext, metaRegistry *metric.Registry, stopper *stop.Stopper) *Node {
return &Node{
ctx: ctx,
stopper: stopper,
status: status.NewNodeStatusMonitor(metaRegistry),
stores: storage.NewStores(ctx.Clock),
}
}
示例4: NewNode
// NewNode returns a new instance of Node.
func NewNode(ctx storage.StoreContext, registry *metric.Registry, stopper *stop.Stopper, subRegistries []status.NodeSubregistry) *Node {
return &Node{
ctx: ctx,
stopper: stopper,
status: status.NewNodeStatusMonitor(registry, subRegistries),
stores: storage.NewStores(ctx.Clock),
}
}
示例5: NewNode
// NewNode returns a new instance of Node.
func NewNode(ctx storage.StoreContext) *Node {
return &Node{
ctx: ctx,
status: status.NewNodeStatusMonitor(),
lSender: kv.NewLocalSender(),
completedScan: sync.NewCond(&sync.Mutex{}),
}
}