Class TestJob

java.lang.Object
edu.ucsb.cs156.courses.jobs.TestJob
All Implemented Interfaces:
edu.ucsb.cs156.jobs.services.JobContextConsumer

public class TestJob extends Object implements edu.ucsb.cs156.jobs.services.JobContextConsumer
A trivial job for testing the jobs infrastructure from the admin console: logs a line, sleeps, then either fails or logs a goodbye. The admin frontend already has a form wired up to launch this (TestJobForm/SingleButtonJobForm), but this app had no backend endpoint to receive it.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(edu.ucsb.cs156.jobs.services.JobContext ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface edu.ucsb.cs156.jobs.services.JobContextConsumer

    getJobName, getScopeId, getScopeType
  • Constructor Details

    • TestJob

      public TestJob()
  • 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