diff options
author | slewis | 2009-04-14 07:15:28 +0000 |
---|---|---|
committer | slewis | 2009-04-14 07:15:28 +0000 |
commit | 22af34fadb599fac8848de727c1b9121a4bedf9c (patch) | |
tree | 9e1398e57d49231d95a3c5030dfebcef23f82e72 /compendium/bundles | |
parent | 5ae82b867bbadb15550e890ffd3985aec7eb8b86 (diff) | |
download | org.eclipse.ecf-22af34fadb599fac8848de727c1b9121a4bedf9c.tar.gz org.eclipse.ecf-22af34fadb599fac8848de727c1b9121a4bedf9c.tar.xz org.eclipse.ecf-22af34fadb599fac8848de727c1b9121a4bedf9c.zip |
Added getRemoteServiceId to IServiceEndpointDescription and ECFServiceEndpointDescription
Diffstat (limited to 'compendium/bundles')
2 files changed, 15 insertions, 0 deletions
diff --git a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/ECFServiceEndpointDescription.java b/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/ECFServiceEndpointDescription.java index c46837ce1..386fc08f4 100644 --- a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/ECFServiceEndpointDescription.java +++ b/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/ECFServiceEndpointDescription.java @@ -177,6 +177,14 @@ public abstract class ECFServiceEndpointDescription implements return null; } + public long getRemoteServiceId() { + Long rsId = (Long) getProperty(org.eclipse.ecf.remoteservice.Constants.SERVICE_ID); + if (rsId == null) + return 0L; + else + return rsId.longValue(); + } + public abstract ID getECFEndpointID(); public abstract ID getECFTargetID(); diff --git a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/IServiceEndpointDescription.java b/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/IServiceEndpointDescription.java index 4c7205435..71ca1cdef 100644 --- a/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/IServiceEndpointDescription.java +++ b/compendium/bundles/org.eclipse.ecf.osgi.services.discovery/src/org/eclipse/ecf/osgi/services/discovery/IServiceEndpointDescription.java @@ -58,4 +58,11 @@ public interface IServiceEndpointDescription extends ServiceEndpointDescription */ public void setProperties(Map properties); + /** + * Get the remote service id for this service endpoint description. + * + * @return long remote service id for the remote service. + */ + public long getRemoteServiceId(); + } |