public class DiscoveredEndpointDescriptionFactory extends AbstractMetadataFactory implements IDiscoveredEndpointDescriptionFactory
IDiscoveredEndpointDescriptionFactory
service.IDiscoveredEndpointDescriptionFactory
LIST_SEPARATOR
Constructor and Description |
---|
DiscoveredEndpointDescriptionFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DiscoveredEndpointDescription |
createDiscoveredEndpointDescription(IDiscoveryLocator locator,
IServiceInfo discoveredServiceInfo)
Create an EndpointDescription for a discovered remote service.
|
protected DiscoveredEndpointDescription |
createDiscoveredEndpointDescription(IDiscoveryLocator locator,
IServiceInfo discoveredServiceInfo,
EndpointDescription endpointDescription) |
protected EndpointDescription |
createEndpointDescription(IDiscoveryLocator locator,
IServiceInfo discoveredServiceInfo) |
void |
removeAllDiscoveredEndpointDescriptions()
Remove all DiscoveredEndpointDescription from this factory.
|
boolean |
removeDiscoveredEndpointDescription(EndpointDescription endpointDescription)
Remove the DiscoveredEndpointDescription associated with the given
endpointDescription.
|
DiscoveredEndpointDescription |
removeDiscoveredEndpointDescription(IDiscoveryLocator locator,
IServiceID serviceID)
Remove an EndpointDescription for a previously discovered remote service.
|
decodeEndpointDescription, decodeList, decodeLong, decodeNonStandardServiceProperties, decodeOSGiProperties, decodeString, encodeList, encodeLong, encodeNonStandardServiceProperties, encodeOSGiServiceProperties, encodeServiceProperties, encodeString, logError, logWarning
public DiscoveredEndpointDescriptionFactory()
public DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)
IDiscoveredEndpointDescriptionFactory
null
if no notification should occur.createDiscoveredEndpointDescription
in interface IDiscoveredEndpointDescriptionFactory
locator
- the locator responsible for the discoveredServiceInfo. Must
not be null
.discoveredServiceInfo
- the discovered service info. Must not be null
.null
is returned, no notification should be
performed by the calling code.public DiscoveredEndpointDescription removeDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceID serviceID)
IDiscoveredEndpointDescriptionFactory
null
if no notification should occur.removeDiscoveredEndpointDescription
in interface IDiscoveredEndpointDescriptionFactory
locator
- the locator responsible for the discoveredServiceInfo. Must
not be null
.serviceID
- the discovered service ID. Must not be null
.null
is returned, no notification should be performed by the calling
code.protected EndpointDescription createEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)
protected DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo, EndpointDescription endpointDescription)
public void close()
close
in class AbstractMetadataFactory
public boolean removeDiscoveredEndpointDescription(EndpointDescription endpointDescription)
IDiscoveredEndpointDescriptionFactory
removeDiscoveredEndpointDescription
in interface IDiscoveredEndpointDescriptionFactory
endpointDescription
- that was previously associated with a
DiscoveredEndpointDescription (via
IDiscoveredEndpointDescriptionFactory.createDiscoveredEndpointDescription(IDiscoveryLocator, IServiceInfo)
to be removed. Must not be null
.true
if actually removed, false
if
nothing was removed.public void removeAllDiscoveredEndpointDescriptions()
IDiscoveredEndpointDescriptionFactory
removeAllDiscoveredEndpointDescriptions
in interface IDiscoveredEndpointDescriptionFactory