Interface ServiceInfo


  • public interface ServiceInfo
    The ServiceInfo represents information about a Service that operates in a clustered network environment. A ServiceInfo may be available for a Service that is not running on the local cluster member.
    Since:
    Coherence 1.1
    Author:
    gg 2002.02.08
    • Method Detail

      • getServiceName

        String getServiceName()
        Return the name of the Service.
        Returns:
        the name of the Service
      • getServiceMembers

        Set getServiceMembers()
        Return a Set of Member objects, one for each Member that has registered this Service.
        Returns:
        Set of cluster members for this service (could be empty)
      • getServiceVersion

        String getServiceVersion​(Member member)
        Return a String with Service version for the specified service Member.
        Parameters:
        member - member of the service
        Returns:
        service version or null if the specified member does not run this service.
        Throws:
        IllegalStateException - thrown if the service is not running or has stopped
      • getOldestMember

        Member getOldestMember()
        Return the "most senior" Member that is running this Service.
        Returns:
        the senior Member
        Since:
        Coherence 2.0
      • getServiceMember

        Member getServiceMember​(int nId)
        Return the Member with the specified mini-id that is running this Service.
        Parameters:
        nId - the member mini-id
        Returns:
        the Member with the specified id or null
        Since:
        Coherence 2.4
        See Also:
        Member.getId()