code cleanup and adapt demo properties
This commit is contained in:
parent
daafb7a64b
commit
70094a5a60
5 changed files with 7 additions and 26 deletions
|
@ -1,13 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package ch.ethz.seb.sebserver.webservice.servicelayer.session;
|
|
||||||
|
|
||||||
public interface ClientIndicatorService {
|
|
||||||
|
|
||||||
}
|
|
|
@ -20,8 +20,8 @@ public interface EventHandlingStrategy extends Consumer<ClientEvent> {
|
||||||
String EVENT_CONSUMER_STRATEGY_SINGLE_EVENT_STORE = "SINGLE_EVENT_STORE_STRATEGY";
|
String EVENT_CONSUMER_STRATEGY_SINGLE_EVENT_STORE = "SINGLE_EVENT_STORE_STRATEGY";
|
||||||
String EVENT_CONSUMER_STRATEGY_ASYNC_BATCH_STORE = "ASYNC_BATCH_STORE_STRATEGY";
|
String EVENT_CONSUMER_STRATEGY_ASYNC_BATCH_STORE = "ASYNC_BATCH_STORE_STRATEGY";
|
||||||
|
|
||||||
|
/** This enables a certain EventHandlingStrategy to be the executing and EventHandlingStrategy
|
||||||
|
* and will be re-initialized on server restart */
|
||||||
void enable();
|
void enable();
|
||||||
|
|
||||||
void disable();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,11 +82,6 @@ public class AsyncBatchEventSaveStrategy implements EventHandlingStrategy {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void disable() {
|
|
||||||
this.enabled = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventListener(ApplicationReadyEvent.class)
|
@EventListener(ApplicationReadyEvent.class)
|
||||||
protected void recover() {
|
protected void recover() {
|
||||||
if (this.enabled) {
|
if (this.enabled) {
|
||||||
|
|
|
@ -49,11 +49,6 @@ public class SingleEventSaveStrategy implements EventHandlingStrategy {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void disable() {
|
|
||||||
this.enabled = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isEnabled() {
|
public boolean isEnabled() {
|
||||||
return this.enabled;
|
return this.enabled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ spring.datasource.url=jdbc:h2:mem:demo;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_
|
||||||
spring.datasource.driver-class-name=org.h2.Driver
|
spring.datasource.driver-class-name=org.h2.Driver
|
||||||
spring.datasource.platform=demo
|
spring.datasource.platform=demo
|
||||||
|
|
||||||
management.endpoints.web.base-path=/actuator
|
logging.file=log/sebserver.log
|
||||||
|
|
||||||
sebserver.webservice.http.scheme=http
|
sebserver.webservice.http.scheme=http
|
||||||
sebserver.webservice.api.admin.clientId=guiClient
|
sebserver.webservice.api.admin.clientId=guiClient
|
||||||
|
@ -27,6 +27,10 @@ sebserver.webservice.api.pagination.maxPageSize=500
|
||||||
# comma separated list of known possible OpenEdX API access token request endpoints
|
# comma separated list of known possible OpenEdX API access token request endpoints
|
||||||
sebserver.webservice.lms.openedx.api.token.request.paths=/oauth2/access_token
|
sebserver.webservice.lms.openedx.api.token.request.paths=/oauth2/access_token
|
||||||
|
|
||||||
|
# actuator configuration
|
||||||
|
management.endpoints.web.base-path=/actuator
|
||||||
|
management.endpoints.web.exposure.include=logfile,loggers
|
||||||
|
|
||||||
sebserver.gui.entrypoint=/gui
|
sebserver.gui.entrypoint=/gui
|
||||||
sebserver.gui.webservice.protocol=http
|
sebserver.gui.webservice.protocol=http
|
||||||
sebserver.gui.webservice.address=0.0.0.0
|
sebserver.gui.webservice.address=0.0.0.0
|
||||||
|
|
Loading…
Reference in a new issue