Class MetricsWebsocketBroadcastHandler

  • All Implemented Interfaces:
    ratpack.handling.Handler

    public class MetricsWebsocketBroadcastHandler
    extends java.lang.Object
    implements ratpack.handling.Handler
    A Handler that broadcasts metric reports via web sockets.

    This handler should be bound to an application path, and most likely only for the GET method…

     import ratpack.dropwizard.metrics.MetricsWebsocketBroadcastHandler;
     import static org.junit.Assert.*;
    
     assertTrue(chain instanceof ratpack.handling.Chain);
     chain.get("admin/metrics", new MetricsWebsocketBroadcastHandler());
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(ratpack.handling.Context context)  
      • Methods inherited from class java.lang.Object

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

      • MetricsWebsocketBroadcastHandler

        public MetricsWebsocketBroadcastHandler()
    • Method Detail

      • handle

        public void handle​(ratpack.handling.Context context)
                    throws java.lang.Exception
        Specified by:
        handle in interface ratpack.handling.Handler
        Throws:
        java.lang.Exception