@Override protected void setEntityLoadingConfig() { fromChildren = true; fromMembers = true; // above sets default super.setEntityLoadingConfig(); if (isAggregatingMembers() && (!(entity instanceof Group))) { if (fromChildren) fromMembers=false; else throw new IllegalStateException("Cannot monitor only members for non-group entity "+entity+": "+this); } Preconditions.checkNotNull(getKeyForMapSensor()); }
protected void updateMapSensor(AttributeSensor<Map<String, Object>> sensor, Object value) { if (log.isTraceEnabled()) log.trace("{} updating map sensor {} with {}", new Object[] { this, sensor, value }); if (value!=null) { updateMapSensorEntry(entity, sensor, getKeyForMapSensor(), value); } else { clearMapSensorEntry(entity, sensor, getKeyForMapSensor()); } }