powertac/powertac-server — Issue #495: Modify sample broker to login via the tournament scheduler
Author: eonarheim
Created: 2012-02-22 17:55:56+00:00
State: open

We need to modify the sample broker so that it will follow this https://github.com/powertac/powertac-server/wiki/figures/server-control.png sequence diagram for the login process. Essentially we must add the http rest calls to the broker start-up process.

There are three messages that can be sent by the tournament scheduler retry, login, and done. On "retry", the broker should retry logging into the tournament scheduler after the amount of time specified in the retry message On "login", the broker will receive its game token, and jmsUrl location to connect to. On "done", the broker is directed to shut down.