Supply performs JMX setup during supply phase
()
| 36 | |
| 37 | // Supply performs JMX setup during supply phase |
| 38 | func (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 |
| 51 | func (j *JmxFramework) Finalize() error { |
nothing calls this directly
no test coverage detected