}
@Override
public synchronized Integer getDebugPort() {
if (dynamicDebugPort == null) {
ContainerLiveNodeData liveData = controller.getLiveNodeData();
if (liveData != null && liveData.getDebugPort() != null) {
try {
dynamicDebugPort = Integer.parseInt(liveData.getDebugPort());
} catch (NumberFormatException e) {
LOG.warn("Live data for {} has debug port of '{}' which cannot be parsed as a number",
getContainerId(), liveData.getDebugPort());
}
}
}
return dynamicDebugPort;
}