Difference between revisions of "Event Feed module"

From PC2wiki
Jump to: navigation, search
m (Sample pc2ws.properties file: added sample log for web services start)
m (See also: rename cat)
Line 79: Line 79:
* [[Event Feed Server]]
* [[Event Feed Server]]
[[Category:Version 9.3]]
[[Category:Version 9.3]]
[[Category:Import and Export]]
[[Category:Import and Export]]

Revision as of 10:24, 3 December 2016

The Event Feed module provides Event Feed and PC² REST services for a programming contest.


  1. Create a FEEDER pc2 account.
  2. Use the pc2ef script to start the Event Feed module

This command will bring up the event feed server and REST web service server GUI. The event feed server will not be started by default.


This command will start the event feed server non-GUI. The event feed server will be started by default.

bin/pc2ef --login feeder1 --password feeder1 --nogui

Non-gui startup options

On the machine where the feeder/board will be started the web services can be enabled and disable using settings found in pc2ws.properties.

Sample pc2ws.properties file

#Sample PC^2 Web Server properties 
#Mon Nov 07 10:02:33 PST 2016

Each web server service defaults to not enabled.

Here is a sample of the output to the pc2 log:

161028 195432.544|INFO|Thread-3|showMessage|Event Feed server listening on port 4713
161028 195432.544|INFO|Thread-3|showMessage|Found web server properties file pc2ws.properties loading...
161028 195432.545|INFO|Thread-3|showMessage|Loaded {enableScoreboard=yes, port=50443, enableTeams=yes, enableLanguage=yes, enableStartTime=yes, enableProblem=yes}
161028 195432.545|INFO|Thread-3|showMessage|Starting Web Server
161028 195432.643|INFO|Thread-3|showMessage|Starting /scoreboard web service
161028 195432.644|INFO|Thread-3|showMessage|Starting /problem web service
161028 195432.645|INFO|Thread-3|showMessage|Starting /languages web service
161028 195432.647|INFO|Thread-3|showMessage|Starting /starttime web service
161028 195432.648|INFO|Thread-3|showMessage|Starting /teams web service
161028 195432.671|INFO|Thread-3|showMessage|Loading /root/contest/csus-f2016/ef/realm.properties
161028 195433.088|INFO|Thread-3|showMessage|Started web server on port 50443



Event Feed Tab

  • Event feed port field - port number to use, default 4713
  • View button - show a snapshot of the current event feed
  • Start - start Event Feed Server
  • Stop - stop Event Feed Server


Web Services Tab

PC² REST services control

  • Web server port field - port number to use, default 50443
  • Enable Web Services
    • /scoreboard
    • /teams
    • /problems
    • /languages
  • Start - start serving PC² REST services
  • Stop - stop serving PC² REST services


See Also