controlproxy

package
v0.16.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

http://www.apache.org/licenses/LICENSE-2.0.txt

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	MAX_CONNECTION_TIMEOUT = 10 * time.Second
)

Functions

This section is empty.

Types

type ControlProxy

type ControlProxy struct {
	Client rpc.MetricManagerClient
}

Implements managesMetrics interface provided by scheduler and proxies those calls to the grpc client.

func New

func New(addr string, port int) (ControlProxy, error)

func (ControlProxy) CollectMetrics

func (c ControlProxy) CollectMetrics(taskID string, AllTags map[string]map[string]string) ([]core.Metric, []error)

func (ControlProxy) GetAutodiscoverPaths

func (c ControlProxy) GetAutodiscoverPaths() []string

func (ControlProxy) ProcessMetrics

func (c ControlProxy) ProcessMetrics(metrics []core.Metric,
	config map[string]ctypes.ConfigValue,
	taskId string,
	pluginName string,
	pluginVersion int) ([]core.Metric, []error)

func (ControlProxy) PublishMetrics

func (c ControlProxy) PublishMetrics(metrics []core.Metric,
	config map[string]ctypes.ConfigValue,
	taskId string,
	pluginName string,
	pluginVersion int) []error

func (ControlProxy) SubscribeDeps

func (c ControlProxy) SubscribeDeps(taskID string, requested []core.RequestedMetric, plugins []core.SubscribedPlugin, configTree *cdata.ConfigDataTree) []serror.SnapError

func (ControlProxy) UnsubscribeDeps

func (c ControlProxy) UnsubscribeDeps(taskID string) []serror.SnapError

func (ControlProxy) ValidateDeps

Directories

Path Synopsis
Package rpc is a generated protocol buffer package.
Package rpc is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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