| 1 | //go:build !cgo |
| 2 | |
| 3 | package jmx |
| 4 | |
| 5 | import ( |
| 6 | "context" |
| 7 | "errors" |
| 8 | |
| 9 | "github.com/netdata/netdata/go/plugins/plugin/ibm.d/protocols/jmxbridge" |
| 10 | ) |
| 11 | |
| 12 | func NewClient(Config, jmxbridge.Logger, ...Option) (*Client, error) { |
| 13 | return nil, errors.New("websphere jmx protocol requires CGO support") |
| 14 | } |
| 15 | |
| 16 | func (c *Client) Start(context.Context) error { |
| 17 | return errors.New("websphere jmx protocol requires CGO support") |
| 18 | } |
| 19 | |
| 20 | func (c *Client) Shutdown() {} |
| 21 | |
| 22 | func (c *Client) FetchJVM(context.Context) (*JVMStats, error) { |
| 23 | return nil, errors.New("websphere jmx protocol requires CGO support") |
| 24 | } |
| 25 | |
| 26 | func (c *Client) FetchThreadPools(context.Context, int) ([]ThreadPool, error) { |
| 27 | return nil, errors.New("websphere jmx protocol requires CGO support") |
| 28 | } |