MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / Detect

Method Detect

src/java/frameworks/jmx.go:23–35  ·  view source on GitHub ↗

Detect checks if JMX should be enabled

()

Source from the content-addressed store, hash-verified

21
22// Detect checks if JMX should be enabled
23func (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
38func (j *JmxFramework) Supply() error {

Callers

nothing calls this directly

Calls 2

loadConfigMethod · 0.95
isEnabledMethod · 0.45

Tested by

no test coverage detected