Class AbstractServiceLoadBalancer<S extends Service,​T extends ServiceLoad>

    • Field Detail

      • m_service

        protected S extends Service m_service
        The containing Service.
    • Constructor Detail

      • AbstractServiceLoadBalancer

        public AbstractServiceLoadBalancer()
    • Method Detail

      • init

        public void init​(S service)
        Called by the Service exactly once on this object as part of its initialization.
        Specified by:
        init in interface ServiceLoadBalancer<S extends Service,​T extends ServiceLoad>
        Parameters:
        service - the containing Service
      • getLocalMember

        protected Member getLocalMember()
        Return the Member object representing the local cluster member.
        Returns:
        the Member object representing the local cluster member
      • isLocalMember

        protected boolean isLocalMember​(Member member)
        Check whether the specified Member object represents the local member of the cluster.
        Parameters:
        member - the Member object in question
        Returns:
        true iff the Member object represents the local cluster member
      • getService

        public S getService()
        Obtain the containing Service.
        Returns:
        the containing Service