Event Feed module

From PC2wiki
Revision as of 11:03, 7 November 2016 by Doug Lane (talk | contribs) (Startup: added info about pc2ws.properties)
Jump to: navigation, search

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

Startup

  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.

bin/pc2ef

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
enableScoreboard=yes
port=50443
enableTeams=yes
enableLanguage=yes
enableStartTime=yes
enableProblem=yes

Each web server service defaults to not enabled.

Features

GUI

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

EventFeedTab.png

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


WebServicesTab.png

See Also