docu
This commit is contained in:
parent
87951bdaaa
commit
65e63c8446
2 changed files with 21 additions and 2 deletions
|
@ -8,12 +8,31 @@
|
||||||
|
|
||||||
package ch.ethz.seb.sebserver.webservice.servicelayer.dao;
|
package ch.ethz.seb.sebserver.webservice.servicelayer.dao;
|
||||||
|
|
||||||
|
/** Data access object for webservice info data.
|
||||||
|
* This info is used to verify parallel running webservices and nominate one as master.
|
||||||
|
* It shows also the history of SEB webservice registrations that has not been correctly shot down and still remain in
|
||||||
|
* the persistent data table. */
|
||||||
public interface WebserviceInfoDAO {
|
public interface WebserviceInfoDAO {
|
||||||
|
|
||||||
|
/** Register a SEB webservice within the persistent storage
|
||||||
|
*
|
||||||
|
* @param uuid A unique identifier that was generated by the webservice on startup
|
||||||
|
* @param address the IP address of the webservice
|
||||||
|
* @return true if registration was successful */
|
||||||
boolean register(String uuid, String address);
|
boolean register(String uuid, String address);
|
||||||
|
|
||||||
|
/** This can periodically be called by a specific running webservice to verify whether the webservice is (still) the
|
||||||
|
* master or a slave
|
||||||
|
*
|
||||||
|
* @param uuid The unique identifier of the webservice generated on startup
|
||||||
|
* @return true if the calling webservice is (still) the master service */
|
||||||
boolean isMaster(String uuid);
|
boolean isMaster(String uuid);
|
||||||
|
|
||||||
|
/** When a webservice has a controlled shout down, it unregister itself within this method.
|
||||||
|
* This removes the data entry of the webservice from persistent storage.
|
||||||
|
*
|
||||||
|
* @param uuid he unique identifier of the webservice generated on startup
|
||||||
|
* @return true when the unregistering was successful */
|
||||||
boolean unregister(String uuid);
|
boolean unregister(String uuid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
server.address=localhost
|
server.address=localhost
|
||||||
server.port=8080
|
server.port=8081
|
||||||
|
|
||||||
sebserver.gui.http.external.scheme=http
|
sebserver.gui.http.external.scheme=http
|
||||||
sebserver.gui.entrypoint=/gui
|
sebserver.gui.entrypoint=/gui
|
||||||
sebserver.gui.webservice.protocol=http
|
sebserver.gui.webservice.protocol=http
|
||||||
sebserver.gui.webservice.address=localhost
|
sebserver.gui.webservice.address=localhost
|
||||||
sebserver.gui.webservice.port=8080
|
sebserver.gui.webservice.port=8081
|
||||||
sebserver.gui.webservice.apipath=/admin-api/v1
|
sebserver.gui.webservice.apipath=/admin-api/v1
|
||||||
# defines the polling interval that is used to poll the webservice for client connection data on a monitored exam page
|
# defines the polling interval that is used to poll the webservice for client connection data on a monitored exam page
|
||||||
sebserver.gui.webservice.poll-interval=1000
|
sebserver.gui.webservice.poll-interval=1000
|
||||||
|
|
Loading…
Add table
Reference in a new issue