diff options
author | mkuppe | 2008-02-08 13:37:46 +0000 |
---|---|---|
committer | mkuppe | 2008-02-08 13:37:46 +0000 |
commit | 78ea1f62004b3bea5225ae104af28aeb9e49aeda (patch) | |
tree | 97c3becd0c5a61f823c4db80e83e71e45b16b3a4 | |
parent | f783aee3b3644e131113f01569df6f8ff6665393 (diff) | |
download | org.eclipse.ecf-78ea1f62004b3bea5225ae104af28aeb9e49aeda.tar.gz org.eclipse.ecf-78ea1f62004b3bea5225ae104af28aeb9e49aeda.tar.xz org.eclipse.ecf-78ea1f62004b3bea5225ae104af28aeb9e49aeda.zip |
ASSIGNED - bug 218142: Add documentation/javadoc for service priority and weight
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218142
-rw-r--r-- | framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java index facc746b2..08c9496f0 100644 --- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java +++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java @@ -17,6 +17,9 @@ import org.eclipse.ecf.discovery.identity.IServiceID; * Service information contract. Defines the information associated with a * remotely discoverable service * + * @see "http://www.dns-sd.org/ServiceTypes.html" + * @see "http://www.ietf.org/rfc/rfc2782.txt" + * */ public interface IServiceInfo extends IAdaptable { /** @@ -37,6 +40,9 @@ public interface IServiceInfo extends IAdaptable { /** * The priority for the service * + * Priority: The priority of this target host. A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; + * target hosts with the same priority SHOULD be tried in an order defined by the weight field. + * * @return int the priority. Zero if no priority information for service. */ public int getPriority(); @@ -44,6 +50,11 @@ public interface IServiceInfo extends IAdaptable { /** * The weight for the service. Zero if no weight information for service. * + * Weight: A server selection mechanism. The weight field specifies a relative weight for entries with the same priority. + * Larger weights SHOULD be given a proportionately higher probability of being selected. + * Domain administrators SHOULD use Weight 0 when there isn't any server selection to do. + * In the presence of records containing weights greater than 0, records with weight 0 should have a very small chance of being selected. + * * @return int the weight */ public int getWeight(); |