Class NodeTracker

  • All Implemented Interfaces:
    org.jgroups.MembershipListener, org.jgroups.MessageListener, org.jgroups.Receiver, org.jgroups.StateListener

    public abstract class NodeTracker
    extends org.jgroups.ReceiverAdapter
    • Constructor Detail

      • NodeTracker

        public NodeTracker​(org.jgroups.JChannel channel,
                           String nodeName)
                    throws Exception
        Throws:
        Exception
    • Method Detail

      • addNodeListener

        public void addNodeListener​(NodeListener nodeListener)
      • removeNodeListener

        public void removeNodeListener​(NodeListener nodeListener)
      • isNodeAlive

        public boolean isNodeAlive​(String nodeName)
      • viewAccepted

        public void viewAccepted​(org.jgroups.View view)
        Specified by:
        viewAccepted in interface org.jgroups.MembershipListener
        Overrides:
        viewAccepted in class org.jgroups.ReceiverAdapter
      • receive

        public void receive​(org.jgroups.Message msg)
        Specified by:
        receive in interface org.jgroups.MessageListener
        Overrides:
        receive in class org.jgroups.ReceiverAdapter