"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/accumulators/resource/AccumulatorResource.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.

AccumulatorResource.java  (moskito-moskito-2.9.3):AccumulatorResource.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.webui.accumulators.resource; package net.anotheria.moskito.webui.accumulators.resource;
import io.swagger.v3.oas.annotations.servers.Server;
import net.anotheria.anoplass.api.APIException; import net.anotheria.anoplass.api.APIException;
import net.anotheria.moskito.webui.accumulators.api.AccumulatorDefinitionAO; import net.anotheria.moskito.webui.accumulators.api.AccumulatorDefinitionAO;
import net.anotheria.moskito.webui.accumulators.api.AccumulatorPO; import net.anotheria.moskito.webui.accumulators.api.AccumulatorPO;
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.DELETE; import javax.ws.rs.DELETE;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.POST; import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
skipping to change at line 25 skipping to change at line 24
import javax.ws.rs.QueryParam; import javax.ws.rs.QueryParam;
import java.util.List; import java.util.List;
/** /**
* JAX-RS Resource that serves requests to accumulators. * JAX-RS Resource that serves requests to accumulators.
* *
* @author lrosenberg * @author lrosenberg
* @since 13.02.13 22:44 * @since 13.02.13 22:44
*/ */
@Path("accumulators") @Path("accumulators")
@Server(url = "/moskito-inspect-rest/") //@Server(url = "/moskito-inspect-rest/")
public class AccumulatorResource extends AbstractResource{ public class AccumulatorResource extends AbstractResource{
/** /**
* Returns all accumulators. * Returns all accumulators.
* @return * @return
*/ */
@GET @GET
public ReplyObject getAccumulators(){ public ReplyObject getAccumulators(){
try{ try{
return ReplyObject.success("accumulators", getAccumulator API().getAccumulatorDefinitions() ); return ReplyObject.success("accumulators", getAccumulator API().getAccumulatorDefinitions() );
 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)