|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.remoteserviceadmin.EndpointDescription org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescription
public class EndpointDescription
ECF remote service endpoint description. Instances of this class, typically
created via discovery, allow the import of an ECF remote service. The
superclass of this class is the
EndpointDescription
class which
is specified by the Remote Service Admin (chap 122) from the OSGi 4.2
Enterprise Specification.
ECF remote services have capabilities beyond typical OSGi remote services. To
expose these capabilities, this EndpointDescription adds optional
meta-data. This meta-data may then be used by the remote service consumer to
customize ECF remote services import. Specifically, to customize the behavior
of the ECF implementation of
RemoteServiceAdmin.importService(org.osgi.service.remoteserviceadmin.EndpointDescription)
.
Constructor Summary | |
---|---|
EndpointDescription(java.util.Map<java.lang.String,java.lang.Object> properties)
|
|
EndpointDescription(org.osgi.framework.ServiceReference reference,
java.util.Map<java.lang.String,java.lang.Object> properties)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAsyncInterfaces()
|
ID |
getConnectTargetID()
|
ID |
getContainerID()
|
java.lang.String |
getEndpointId()
|
ID[] |
getIDFilter()
|
java.lang.String |
getIdNamespace()
|
java.util.Map<java.lang.String,org.osgi.framework.Version> |
getInterfaceVersions()
Get a map of the service interface name -> Version information for all the service interfaces exposed by this endpoint description (i.e. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns all endpoint properties. |
java.lang.String |
getRemoteServiceFilter()
|
java.lang.Long |
getRemoteServiceId()
|
java.lang.Long |
getTimestamp()
|
boolean |
isSameService(EndpointDescription other)
Answers if this Endpoint Description refers to the same service instance as the given Endpoint Description. |
java.lang.String |
toString()
Returns the string representation of this EndpointDescription. |
Methods inherited from class org.osgi.service.remoteserviceadmin.EndpointDescription |
---|
equals, getConfigurationTypes, getFrameworkUUID, getId, getIntents, getInterfaces, getPackageVersion, getServiceId, hashCode, matches |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EndpointDescription(org.osgi.framework.ServiceReference reference, java.util.Map<java.lang.String,java.lang.Object> properties)
reference
- A service reference that can be exported.properties
- Map of properties. This argument can be null
. The
keys in the map must be type String
and, since
the keys are case insensitive, there must be no duplicates
with case variation.
java.lang.IllegalArgumentException
- When the properties are not proper for an Endpoint
DescriptionEndpointDescription.EndpointDescription(ServiceReference,
Map)
public EndpointDescription(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- The map from which to create the Endpoint Description. The
keys in the map must be type String
and, since
the keys are case insensitive, there must be no duplicates
with case variation.
java.lang.IllegalArgumentException
- When the properties are not proper for an Endpoint
Description.EndpointDescription.EndpointDescription(Map)
Method Detail |
---|
public java.util.Map<java.lang.String,org.osgi.framework.Version> getInterfaceVersions()
EndpointDescription.getInterfaces()
which have a
EndpointDescription.getInterfaces()
will have an associated Version, but it
may have value Version#emptyVersionpublic java.lang.String getEndpointId()
public java.lang.Long getTimestamp()
public java.lang.Long getRemoteServiceId()
public ID getContainerID()
public java.lang.String getIdNamespace()
public ID getConnectTargetID()
public ID[] getIDFilter()
public java.lang.String getRemoteServiceFilter()
public boolean isSameService(EndpointDescription other)
EndpointDescription
isSameService
in class EndpointDescription
other
- The Endpoint Description to look at
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
EndpointDescription
getProperties
in class EndpointDescription
public java.util.List<java.lang.String> getAsyncInterfaces()
public java.lang.String toString()
EndpointDescription
toString
in class EndpointDescription
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |