fixed static tagging
This commit is contained in:
parent
49b2ffe338
commit
873391394a
2 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,7 @@ import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import ch.ethz.seb.sebserver.gbl.api.API;
|
import ch.ethz.seb.sebserver.gbl.api.API;
|
||||||
|
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator;
|
||||||
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType;
|
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType;
|
||||||
import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType;
|
import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType;
|
||||||
import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper;
|
import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper;
|
||||||
|
@ -28,6 +29,12 @@ public class BatteryStatusIndicator extends AbstractLogNumberIndicator {
|
||||||
super.tags = new String[] { API.LOG_EVENT_TAG_BATTERY_STATUS };
|
super.tags = new String[] { API.LOG_EVENT_TAG_BATTERY_STATUS };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(final Indicator indicatorDefinition, final Long connectionId, final boolean cachingEnabled) {
|
||||||
|
super.init(indicatorDefinition, connectionId, cachingEnabled);
|
||||||
|
super.tags = new String[] { API.LOG_EVENT_TAG_BATTERY_STATUS };
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IndicatorType getType() {
|
public IndicatorType getType() {
|
||||||
return IndicatorType.BATTERY_STATUS;
|
return IndicatorType.BATTERY_STATUS;
|
||||||
|
|
|
@ -14,6 +14,7 @@ import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import ch.ethz.seb.sebserver.gbl.api.API;
|
import ch.ethz.seb.sebserver.gbl.api.API;
|
||||||
|
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator;
|
||||||
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType;
|
import ch.ethz.seb.sebserver.gbl.model.exam.Indicator.IndicatorType;
|
||||||
import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType;
|
import ch.ethz.seb.sebserver.gbl.model.session.ClientEvent.EventType;
|
||||||
import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper;
|
import ch.ethz.seb.sebserver.webservice.datalayer.batis.mapper.ClientEventRecordMapper;
|
||||||
|
@ -28,6 +29,12 @@ public class WLANStatusIndicator extends AbstractLogNumberIndicator {
|
||||||
super.tags = new String[] { API.LOG_EVENT_TAG_WLAN_STATUS };
|
super.tags = new String[] { API.LOG_EVENT_TAG_WLAN_STATUS };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(final Indicator indicatorDefinition, final Long connectionId, final boolean cachingEnabled) {
|
||||||
|
super.init(indicatorDefinition, connectionId, cachingEnabled);
|
||||||
|
super.tags = new String[] { API.LOG_EVENT_TAG_WLAN_STATUS };
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IndicatorType getType() {
|
public IndicatorType getType() {
|
||||||
return IndicatorType.WLAN_STATUS;
|
return IndicatorType.WLAN_STATUS;
|
||||||
|
|
Loading…
Reference in a new issue