Package ch.rswk.meta.engine.rs
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final com.fasterxml.jackson.databind.ObjectReader
private static final com.fasterxml.jackson.databind.ObjectWriter
private final org.eclipse.jetty.util.thread.QueuedThreadPool
private final UserService
private final WatchdogService
-
Constructor Summary
ConstructorsConstructorDescriptionWatchdogStatusResource
(org.eclipse.jetty.util.thread.QueuedThreadPool threadPool, UserService userService, WatchdogService watchdogService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveStatus
(jakarta.ws.rs.container.AsyncResponse async, String content, jakarta.ws.rs.core.HttpHeaders headers, jakarta.servlet.http.HttpServletRequest request)
-
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
-
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)
-