Package com.tangosol.net
Interface ServiceInfo
-
public interface ServiceInfoThe 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MembergetOldestMember()Return the "most senior" Member that is running this Service.MembergetServiceMember(int nId)Return the Member with the specified mini-id that is running this Service.SetgetServiceMembers()Return a Set of Member objects, one for each Member that has registered this Service.StringgetServiceName()Return the name of the Service.StringgetServiceType()Return the type of the Service.StringgetServiceVersion(Member member)Return a String with Service version for the specified service Member.
-
-
-
Method Detail
-
getServiceName
String getServiceName()
Return the name of the Service.- Returns:
- the name of the Service
-
getServiceType
String getServiceType()
Return the type of the Service.- Returns:
- the type of the Service
- Since:
- Coherence 2.0
- See Also:
Cluster.ensureService(String, String)
-
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()
-
-