Interface IDiscoveredEndpointDescriptionFactory

    • Method Detail

      • createDiscoveredEndpointDescription

        DiscoveredEndpointDescription createDiscoveredEndpointDescription​(IDiscoveryLocator locator,
                                                                          IServiceInfo discoveredServiceInfo)
        Create an EndpointDescription for a discovered remote service. Implementers of this factory service may return the type of EndpointDescription appropriate for the associated distribution system (e.g. ECFEndpointDescription). Implementers should return null if no notification should occur.
        Parameters:
        locator - the locator responsible for the discoveredServiceInfo. Must not be null.
        discoveredServiceInfo - the discovered service info. Must not be null.
        Returns:
        DiscoveredEndpointDescription that will be used to notify EndpointListeners about a new EndpointDescription. If null is returned, no notification should be performed by the calling code.
      • removeDiscoveredEndpointDescription

        DiscoveredEndpointDescription removeDiscoveredEndpointDescription​(IDiscoveryLocator locator,
                                                                          IServiceID serviceID)
        Remove an EndpointDescription for a previously discovered remote service. Implementers of this factory service may return the type of EndpointDescription appropriate for the associated distribution system (e.g. ECFEndpointDescription). Implementers should return null if no notification should occur.
        Parameters:
        locator - the locator responsible for the discoveredServiceInfo. Must not be null.
        serviceID - the discovered service ID. Must not be null.
        Returns:
        EndpointDescription that will be used to notify EndpointListeners about an undiscovered EndpointDescription. If null is returned, no notification should be performed by the calling code.
      • removeDiscoveredEndpointDescription

        boolean removeDiscoveredEndpointDescription​(EndpointDescription endpointDescription)
        Remove the DiscoveredEndpointDescription associated with the given endpointDescription.
        Parameters:
        endpointDescription - that was previously associated with a DiscoveredEndpointDescription (via createDiscoveredEndpointDescription(IDiscoveryLocator, IServiceInfo) to be removed. Must not be null.
        Returns:
        true if actually removed, false if nothing was removed.
      • removeAllDiscoveredEndpointDescriptions

        void removeAllDiscoveredEndpointDescriptions()
        Remove all DiscoveredEndpointDescription from this factory.