Documentation ¶
Overview ¶
- Copyright (c) 2018 VMware, Inc. *
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
- associated documentation files (the "Software"), to deal in the Software without restriction, including
- without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is furnished to do
- so, subject to the following conditions: *
- The above copyright notice and this permission notice shall be included in all copies or substantial
- portions of the Software. *
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
- NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The implementation is derived from https://github.com/patrobinson/gokini
Copyright 2018 Patrick robinson ¶
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- type MonitoringService
- type NoopMonitoringService
- func (NoopMonitoringService) IncrBytesProcessed(shard string, count int64)
- func (NoopMonitoringService) IncrRecordsProcessed(shard string, count int)
- func (NoopMonitoringService) Init(appName, streamName, workerID string) error
- func (NoopMonitoringService) LeaseGained(shard string)
- func (NoopMonitoringService) LeaseLost(shard string)
- func (NoopMonitoringService) LeaseRenewed(shard string)
- func (NoopMonitoringService) MillisBehindLatest(shard string, millSeconds float64)
- func (NoopMonitoringService) RecordGetRecordsTime(shard string, time float64)
- func (NoopMonitoringService) RecordProcessRecordsTime(shard string, time float64)
- func (NoopMonitoringService) Shutdown()
- func (NoopMonitoringService) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonitoringService ¶
type MonitoringService interface { Init(appName, streamName, workerID string) error Start() error IncrRecordsProcessed(string, int) IncrBytesProcessed(string, int64) MillisBehindLatest(string, float64) LeaseGained(string) LeaseLost(string) LeaseRenewed(string) RecordGetRecordsTime(string, float64) RecordProcessRecordsTime(string, float64) Shutdown() }
type NoopMonitoringService ¶ added in v1.1.0
type NoopMonitoringService struct{}
NoopMonitoringService implements MonitoringService by does nothing.
func (NoopMonitoringService) IncrBytesProcessed ¶ added in v1.1.0
func (NoopMonitoringService) IncrBytesProcessed(shard string, count int64)
func (NoopMonitoringService) IncrRecordsProcessed ¶ added in v1.1.0
func (NoopMonitoringService) IncrRecordsProcessed(shard string, count int)
func (NoopMonitoringService) Init ¶ added in v1.1.0
func (NoopMonitoringService) Init(appName, streamName, workerID string) error
func (NoopMonitoringService) LeaseGained ¶ added in v1.1.0
func (NoopMonitoringService) LeaseGained(shard string)
func (NoopMonitoringService) LeaseLost ¶ added in v1.1.0
func (NoopMonitoringService) LeaseLost(shard string)
func (NoopMonitoringService) LeaseRenewed ¶ added in v1.1.0
func (NoopMonitoringService) LeaseRenewed(shard string)
func (NoopMonitoringService) MillisBehindLatest ¶ added in v1.1.0
func (NoopMonitoringService) MillisBehindLatest(shard string, millSeconds float64)
func (NoopMonitoringService) RecordGetRecordsTime ¶ added in v1.1.0
func (NoopMonitoringService) RecordGetRecordsTime(shard string, time float64)
func (NoopMonitoringService) RecordProcessRecordsTime ¶ added in v1.1.0
func (NoopMonitoringService) RecordProcessRecordsTime(shard string, time float64)
func (NoopMonitoringService) Shutdown ¶ added in v1.1.0
func (NoopMonitoringService) Shutdown()
func (NoopMonitoringService) Start ¶ added in v1.1.0
func (NoopMonitoringService) Start() error
Directories ¶
Path | Synopsis |
---|---|
* Copyright (c) 2018 VMware, Inc.
|
* Copyright (c) 2018 VMware, Inc. |
* Copyright (c) 2018 VMware, Inc.
|
* Copyright (c) 2018 VMware, Inc. |