// NewNode returns a new instance of Node. func NewNode(ctx storage.StoreContext) *Node { return &Node{ ctx: ctx, status: status.NewNodeStatusMonitor(), stores: storage.NewStores(), } }
// NewNode returns a new instance of Node. func NewNode(ctx storage.StoreContext) *Node { return &Node{ ctx: ctx, status: status.NewNodeStatusMonitor(), lSender: kv.NewLocalSender(), } }
// 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), } }
// 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), } }
// 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{}), } }