"Fossies" - the Fresh Open Source Software Archive  

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

StatusResource.java  (moskito-moskito-2.9.3):StatusResource.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.webui.threshold.resource; package net.anotheria.moskito.webui.threshold.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.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.POST; import javax.ws.rs.POST;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
/** /**
* Returns the status of the application. * Returns the status of the application.
* *
* @author lrosenberg * @author lrosenberg
* @since 14.04.15 18:09 * @since 14.04.15 18:09
*/ */
@Path("status") @Path("status")
@Server(url = "/moskito-inspect-rest/") //@Server(url = "/moskito-inspect-rest/")
public class StatusResource extends AbstractResource { public class StatusResource extends AbstractResource {
@GET @GET
public ReplyObject getWorstStatus(){ public ReplyObject getWorstStatus(){
try{ try{
return ReplyObject.success("status", getThresholdAPI().ge tWorstStatus().name()); return ReplyObject.success("status", getThresholdAPI().ge tWorstStatus().name());
}catch(APIException e){ }catch(APIException e){
throw new WebApplicationException(e); throw new WebApplicationException(e);
} }
} }
 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)