MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / getPort

Method getPort

src/java/frameworks/jmx.go:115–125  ·  view source on GitHub ↗

getPort returns the JMX port

()

Source from the content-addressed store, hash-verified

113
114// getPort returns the JMX port
115func (j *jmxConfig) getPort() int {
116 // Check BPL_JMX_PORT first (Cloud Native Buildpacks convention)
117 bplPort := os.Getenv("BPL_JMX_PORT")
118 if bplPort != "" {
119 if port, err := strconv.Atoi(bplPort); err == nil && port > 0 {
120 return port
121 }
122 }
123
124 return j.Port
125}
126
127type jmxConfig struct {
128 Enabled bool `yaml:"enabled"`

Callers 2

SupplyMethod · 0.45
FinalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected