public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized(this) { if (variables == null) { if (parent != null) { variables = parent.getAllVariables(); } else { // this case should only be true for mock groups variables = new HashMap<>(); } } } } return variables; }
@Override public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized (this) { if (variables == null) { if (parent != null) { variables = parent.getAllVariables(); } else { // this case should only be true for mock groups variables = new ConcurrentHashMap<>(); } } } } return variables; }
public Map<String, String> getAllVariables() { if (variables == null) { Map<String, String> tmpVariables = new HashMap<>(); putVariables(tmpVariables); if (parent != null) { // not true for Job-/TaskManagerMetricGroup tmpVariables.putAll(parent.getAllVariables()); } variables = tmpVariables; } return variables; }
@Override public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized (this) { if (variables == null) { variables = new ConcurrentHashMap<>(); putVariables(variables); if (parent != null) { // not true for Job-/TaskManagerMetricGroup variables.putAll(parent.getAllVariables()); } } } } return variables; }
@Override public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized (this) { if (variables == null) { variables = new HashMap<>(); putVariables(variables); if (parent != null) { // not true for Job-/TaskManagerMetricGroup variables.putAll(parent.getAllVariables()); } } } } return variables; }
public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized (this) { if (variables == null) { Map<String, String> tmpVariables = new HashMap<>(); putVariables(tmpVariables); if (parent != null) { // not true for Job-/TaskManagerMetricGroup tmpVariables.putAll(parent.getAllVariables()); } variables = tmpVariables; } } } return variables; }
public Map<String, String> getAllVariables() { if (variables == null) { // avoid synchronization for common case synchronized (this) { if (variables == null) { Map<String, String> tmpVariables = new HashMap<>(); putVariables(tmpVariables); if (parent != null) { // not true for Job-/TaskManagerMetricGroup tmpVariables.putAll(parent.getAllVariables()); } variables = tmpVariables; } } } return variables; }