java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.balancer.Balancer
All Implemented Interfaces:
XMLElement

public class Balancer extends AbstractXmlElement
  • Field Details

  • Constructor Details

    • Balancer

      public Balancer()
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getSessionTimeout

      public long getSessionTimeout()
    • setSessionTimeout

      public void setSessionTimeout(long sessionTimeout)
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • getClusters

      public List<Cluster> getClusters()
    • addCluster

      public boolean addCluster(String name)
    • setClusters

      public void setClusters(List<Cluster> clusters)
      Description
      A list of clusters.
    • up

      public void up(String cName, String host, int port)
    • down

      public void down(String cName, String host, int port)
    • takeout

      public void takeout(String cName, String host, int port)
    • getAllNodesByCluster

      public List<Node> getAllNodesByCluster(String cName)
    • getAvailableNodesByCluster

      public List<Node> getAvailableNodesByCluster(String cName)
    • addSession2Cluster

      public void addSession2Cluster(String sessionId, String cName, Node n)
    • removeNode

      public void removeNode(String cluster, String host, int port)
    • getNode

      public Node getNode(String cluster, String host, int port)
    • getSessions

      public Map<String,Session> getSessions(String cluster)
    • getSessionsByNode

      public List<Session> getSessionsByNode(String cName, Node node)
    • getName

      public String getName()
    • setName

      public void setName(String name)