public class EndpointDescription extends EndpointDescription
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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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 to 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.
|
equals, getConfigurationTypes, getFrameworkUUID, getId, getIntents, getInterfaces, getPackageVersion, getServiceId, hashCode, matches
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)
public java.util.Map<java.lang.String,org.osgi.framework.Version> getInterfaceVersions()
EndpointDescription.getInterfaces()
which have aEndpointDescription.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 atpublic 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