Detect checks if JMX should be enabled
()
| 21 | |
| 22 | // Detect checks if JMX should be enabled |
| 23 | func (j *JmxFramework) Detect() (string, error) { |
| 24 | // Check if JMX is enabled in configuration |
| 25 | config, err := j.loadConfig() |
| 26 | if err != nil { |
| 27 | j.context.Log.Warning("Failed to load jmx config: %s", err.Error()) |
| 28 | return "", nil // Don't fail the build |
| 29 | } |
| 30 | if !config.isEnabled() { |
| 31 | return "", nil |
| 32 | } |
| 33 | |
| 34 | return "JMX", nil |
| 35 | } |
| 36 | |
| 37 | // Supply performs JMX setup during supply phase |
| 38 | func (j *JmxFramework) Supply() error { |
nothing calls this directly
no test coverage detected