All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.peterphi.std.guice.web.rest.service.daemons.GuiceRestDaemonsService Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
package com.peterphi.std.guice.web.rest.service.daemons;

import com.google.inject.ImplementedBy;
import com.peterphi.std.annotation.Doc;
import com.peterphi.std.annotation.ServiceName;

import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;

@Path("/guice/threads")
@ServiceName("Threads")
@Doc("Indexes all guice daemons and centrally-launched threads")
@ImplementedBy(GuiceRestDaemonsServiceImpl.class)
public interface GuiceRestDaemonsService
{
	@GET
	@Path("/")
	@Produces("text/html")
	public String getIndex(@QueryParam("message") @Doc("for internal use") String message);

	@POST
	@Path("/trigger")
	@Produces("text/html")
	@Doc("Trigger a recurring daemon to run immediately")
	Response trigger(@FormParam("name") final String name);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy