Package edu.ucsb.cs156.courses.jobs
Class TestJob
java.lang.Object
edu.ucsb.cs156.courses.jobs.TestJob
- All Implemented Interfaces:
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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.ucsb.cs156.jobs.services.JobContextConsumer
getJobName, getScopeId, getScopeType
-
Constructor Details
-
TestJob
public TestJob()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceedu.ucsb.cs156.jobs.services.JobContextConsumer- Throws:
Exception
-