Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net
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 Summary
 Member getOldestMember()
          Return the "most senior" Member that is running this Service.
 Member getServiceMember(int nId)
          Return the Member with the specified mini-id that is running this Service.
 java.util.Set getServiceMembers()
          Return a Set of Member objects, one for each Member that has registered this Service.
 java.lang.String getServiceName()
          Return the name of the Service.
 java.lang.String getServiceType()
          Return the type of the Service.
 java.lang.String getServiceVersion(Member member)
          Return a String with Service version for the specified service Member.

 

Method Detail

getServiceName

java.lang.String getServiceName()
Return the name of the Service.
Returns:
the name of the Service

getServiceType

java.lang.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

java.util.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

java.lang.String getServiceVersion(Member member)
Return a String with Service version for the specified service Member.
Parameters:
member - memeber of the service
Returns:
service version or null if the specified member does not run this service.
Throws:
java.lang.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()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.