Class ReadinessEndpoint


  • @Path("readiness/datacenters")
    @Component
    public class ReadinessEndpoint
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<pl.allegro.tech.hermes.api.DatacenterReadiness> getReadiness()  
      javax.ws.rs.core.Response setReadiness​(java.lang.String datacenter, pl.allegro.tech.hermes.api.Readiness readiness)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReadinessEndpoint

        public ReadinessEndpoint​(ReadinessService readinessService)
    • Method Detail

      • setReadiness

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @RolesAllowed("admin")
        @Path("/{datacenter}")
        public javax.ws.rs.core.Response setReadiness​(@PathParam("datacenter")
                                                      java.lang.String datacenter,
                                                      pl.allegro.tech.hermes.api.Readiness readiness)
      • getReadiness

        @GET
        @Consumes("application/json")
        @Produces("application/json")
        @RolesAllowed("admin")
        public java.util.List<pl.allegro.tech.hermes.api.DatacenterReadiness> getReadiness()