Class TrafficThroughPrimaryNodeOnlyFilter

java.lang.Object
com.atlassian.bamboo.filter.TrafficThroughPrimaryNodeOnlyFilter
All Implemented Interfaces:
javax.servlet.Filter

public class TrafficThroughPrimaryNodeOnlyFilter extends Object implements javax.servlet.Filter
It ensures the secondary nodes don't get any traffic except the status endpoint. Only the primary node handles the requests. All the requests routed to the secondary nodes are either redirected to the informative page or responded to directly with a message, depending on the request's content type.
Since:
9.5
  • Constructor Details

    • TrafficThroughPrimaryNodeOnlyFilter

      public TrafficThroughPrimaryNodeOnlyFilter()
  • Method Details

    • doFilter

      public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException
    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter