Class WatchdogStatusResource

java.lang.Object
ch.rswk.meta.engine.rs.WatchdogStatusResource

@Path("watchdog/status") @Produces("application/json") public class WatchdogStatusResource extends Object
WatchdogStatusResource provides a REST-like API to receive status.

Delegates to WatchdogService.receiveStatus(WatchdogStatus).

  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • STATUS_READER

      private static final com.fasterxml.jackson.databind.ObjectReader STATUS_READER
    • STATUS_REPLY_WRITER

      private static final com.fasterxml.jackson.databind.ObjectWriter STATUS_REPLY_WRITER
    • threadPool

      private final org.eclipse.jetty.util.thread.QueuedThreadPool threadPool
    • userService

      private final UserService userService
    • watchdogService

      private final WatchdogService watchdogService
  • Constructor Details

    • WatchdogStatusResource

      @Inject public WatchdogStatusResource(org.eclipse.jetty.util.thread.QueuedThreadPool threadPool, UserService userService, WatchdogService watchdogService)
  • Method Details

    • receiveStatus

      @POST @Consumes("application/json") public void receiveStatus(@Suspended jakarta.ws.rs.container.AsyncResponse async, String content, @Context jakarta.ws.rs.core.HttpHeaders headers, @Context jakarta.servlet.http.HttpServletRequest request)