Class EndpointDescription

    • Constructor Detail

      • EndpointDescription

        public EndpointDescription​(ServiceReference reference,
                                   Map<String,​Object> properties)
        Parameters:
        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.
        Throws:
        IllegalArgumentException - When the properties are not proper for an Endpoint Description
        See Also:
        EndpointDescription(ServiceReference, Map)
      • EndpointDescription

        public EndpointDescription​(Map<String,​Object> properties)
        Parameters:
        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.
        Throws:
        IllegalArgumentException - When the properties are not proper for an Endpoint Description.
        See Also:
        EndpointDescription(Map)
    • Method Detail

      • getInterfaceVersions

        public Map<String,​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. those returned by EndpointDescription.getInterfaces() which have a
        Returns:
        Map of interface versions for all our service interfaces. Every service interface returned by EndpointDescription.getInterfaces() will have an associated Version, but it may have value Version#emptyVersion
      • getEndpointId

        public String getEndpointId()
        Returns:
        String ecf endpoint id
        Since:
        4.0
      • getTimestamp

        public Long getTimestamp()
        Returns:
        Long ecf timestamp
        Since:
        4.0
      • getRemoteServiceId

        public Long getRemoteServiceId()
        Returns:
        Long ecf remote service id
        Since:
        4.0
      • getContainerID

        public ID getContainerID()
      • getIdNamespace

        public String getIdNamespace()
      • getConnectTargetID

        public ID getConnectTargetID()
      • getIDFilter

        public ID[] getIDFilter()
      • getRemoteServiceFilter

        public String getRemoteServiceFilter()
      • isSameService

        public boolean isSameService​(EndpointDescription other)
        Description copied from class: EndpointDescription
        Answers if this Endpoint Description refers to the same service instance as the given Endpoint Description. Two Endpoint Descriptions point to the same service if they have the same id or their framework UUIDs and remote service ids are equal.
        Overrides:
        isSameService in class EndpointDescription
        Parameters:
        other - The Endpoint Description to look at
        Returns:
        True if this endpoint description points to the same service as the other
      • getAsyncInterfaces

        public List<String> getAsyncInterfaces()
        Returns:
        List ecf asynchronous proxy interfaces
        Since:
        4.0