"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/producers/resource/ProducerResource.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

ProducerResource.java  (moskito-moskito-2.9.3):ProducerResource.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.webui.producers.resource; package net.anotheria.moskito.webui.producers.resource;
import io.swagger.v3.oas.annotations.servers.Server;
import net.anotheria.anoplass.api.APIException; import net.anotheria.anoplass.api.APIException;
import net.anotheria.anoplass.api.APIFinder; import net.anotheria.anoplass.api.APIFinder;
import net.anotheria.moskito.core.registry.NoSuchProducerException; import net.anotheria.moskito.core.registry.NoSuchProducerException;
import net.anotheria.moskito.core.stats.TimeUnit; import net.anotheria.moskito.core.stats.TimeUnit;
import net.anotheria.moskito.webui.producers.api.ProducerAPI; import net.anotheria.moskito.webui.producers.api.ProducerAPI;
import net.anotheria.moskito.webui.shared.resource.AbstractResource; import net.anotheria.moskito.webui.shared.resource.AbstractResource;
import net.anotheria.moskito.webui.shared.resource.ReplyObject; import net.anotheria.moskito.webui.shared.resource.ReplyObject;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.PathParam; import javax.ws.rs.PathParam;
/** /**
* Resource for producer related resources. * Resource for producer related resources.
* *
* @author lrosenberg * @author lrosenberg
* @since 14.02.13 09:51 * @since 14.02.13 09:51
*/ */
@Path("producers") @Path("producers")
@Server(url = "/moskito-inspect-rest/") //@Server(url = "/moskito-inspect-rest/")
public class ProducerResource extends AbstractResource { public class ProducerResource extends AbstractResource {
/** /**
* ProducerAPI. * ProducerAPI.
*/ */
private ProducerAPI producerAPI = APIFinder.findAPI(ProducerAPI.class); private ProducerAPI producerAPI = APIFinder.findAPI(ProducerAPI.class);
@GET @Path("{interval}/{timeunit}") @GET @Path("{interval}/{timeunit}")
public ReplyObject getProducers(@PathParam("interval") String intervalNam e, @PathParam("timeunit") String timeUnitParam){ public ReplyObject getProducers(@PathParam("interval") String intervalNam e, @PathParam("timeunit") String timeUnitParam){
TimeUnit unit = TimeUnit.fromString(timeUnitParam); TimeUnit unit = TimeUnit.fromString(timeUnitParam);
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)