Class RecordGameStatsJob

java.lang.Object
edu.ucsb.cs156.happiercows.jobs.RecordGameStatsJob
All Implemented Interfaces:
edu.ucsb.cs156.jobs.services.JobContextConsumer

public class RecordGameStatsJob extends Object implements edu.ucsb.cs156.jobs.services.JobContextConsumer
This job computes the stats for all games in progress and creates one new row in the GameStats table for each game. It uses the Average Cow Health Service to compute the cowhealth for each game.
  • Constructor Details

    • RecordGameStatsJob

      public RecordGameStatsJob()
  • Method Details

    • accept

      public void accept(edu.ucsb.cs156.jobs.services.JobContext ctx) throws Exception
      Specified by:
      accept in interface edu.ucsb.cs156.jobs.services.JobContextConsumer
      Throws:
      Exception