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

Method Supply

src/java/frameworks/jmx.go:38–48  ·  view source on GitHub ↗

Supply performs JMX setup during supply phase

()

Source from the content-addressed store, hash-verified

36
37// Supply performs JMX setup during supply phase
38func (j *JmxFramework) Supply() error {
39 config, err := j.loadConfig()
40 if err != nil {
41 j.context.Log.Warning("Failed to load debug config: %s", err.Error())
42 return nil // Don't fail the build
43 }
44
45 port := config.getPort()
46 j.context.Log.BeginStep("JMX enabled on port %d", port)
47 return nil
48}
49
50// Finalize adds JMX options to JAVA_OPTS via profile.d script
51func (j *JmxFramework) Finalize() error {

Callers

nothing calls this directly

Calls 2

loadConfigMethod · 0.95
getPortMethod · 0.45

Tested by

no test coverage detected