Class TopologyManagerImpl
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.TopologyManagerImpl
 
 
- 
- All Implemented Interfaces:
- EndpointEventListener,- EndpointListener
 
 public class TopologyManagerImpl extends AbstractTopologyManager implements EndpointListener, EndpointEventListener - Since:
- 4.6
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intSTARTUP_WAIT_TIME- 
Fields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManagerSERVICE_EXPORTED_INTERFACES_WILDCARD
 - 
Fields inherited from interface org.osgi.service.remoteserviceadmin.EndpointEventListenerENDPOINT_LISTENER_SCOPE
 - 
Fields inherited from interface org.osgi.service.remoteserviceadmin.EndpointListenerENDPOINT_LISTENER_SCOPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description TopologyManagerImpl(BundleContext context)TopologyManagerImpl(BundleContext context, boolean allowLocalHost, String... otherFilters)
 - 
Method Summary- 
Methods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManageradvertiseEndpointDescription, advertiseModifyEndpointDescription, close, createISIFFilter, createRSAFilter, getContext, getRemoteServiceAdmin, handleAdvertisingResult, handleECFEndpointAdded, handleECFEndpointModified, handleECFEndpointRemoved, handleInvalidImportRegistration, handleNonECFEndpointAdded, handleNonECFEndpointModified, handleNonECFEndpointRemoved, handleNonECFEndpointRemoved, handleServiceModifying, handleServiceRegistering, handleServiceUnregistering, hasDescription, logError, logError, logError, logWarning, trace, unadvertiseEndpointDescription
 
- 
 
- 
- 
- 
Constructor Detail- 
TopologyManagerImplpublic TopologyManagerImpl(BundleContext context) 
 - 
TopologyManagerImplpublic TopologyManagerImpl(BundleContext context, boolean allowLocalHost, String... otherFilters) - Since:
- 4.9
 
 
- 
 - 
Method Detail- 
getFrameworkUUIDprotected String getFrameworkUUID() - Overrides:
- getFrameworkUUIDin class- AbstractTopologyManager
 
 - 
handleEventprotected void handleEvent(ServiceEvent event, Map listeners) - Overrides:
- handleEventin class- AbstractTopologyManager
- Parameters:
- event- the service event
- listeners- map of listeners
 
 - 
handleRemoteAdminEventprotected void handleRemoteAdminEvent(RemoteServiceAdminEvent event) 
 - 
endpointChangedpublic void endpointChanged(EndpointEvent event, String matchedFilter) Description copied from interface:EndpointEventListenerNotification that an endpoint has changed. Details of the change is captured in the Endpoint Event provided. This could be that an endpoint was added, removed or modified.- Specified by:
- endpointChangedin interface- EndpointEventListener
- Parameters:
- event- The event containing the details about the change.
- matchedFilter- The filter from the- EndpointEventListener.ENDPOINT_LISTENER_SCOPEthat matches (or for- EndpointEvent.MODIFIED_ENDMATCHand- EndpointEvent.REMOVEDused to match) the endpoint, must not be- null.
 
 - 
handleEndpointAddedprotected void handleEndpointAdded(EndpointDescription endpoint, String matchedFilter) 
 - 
handleOtherFilterEndpointAddedprotected void handleOtherFilterEndpointAdded(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
 
 - 
handleEndpointRemovedprotected void handleEndpointRemoved(EndpointDescription endpoint, String matchedFilter) 
 - 
handleOtherFilterEndpointRemovedprotected void handleOtherFilterEndpointRemoved(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
 
 - 
convertEndpointDescriptionFromOSGiToECFprotected EndpointDescription convertEndpointDescriptionFromOSGiToECF(EndpointDescription ed) - Since:
- 4.9
 
 - 
handleEndpointModifiedEndmatchprotected void handleEndpointModifiedEndmatch(EndpointDescription endpoint, String matchedFilter) 
 - 
handleOtherFilterEndpointModifiedEndmatchprotected void handleOtherFilterEndpointModifiedEndmatch(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
 
 - 
handleEndpointModifiedprotected void handleEndpointModified(EndpointDescription endpoint, String matchedFilter) 
 - 
handleOtherFilterEndpointModifiedprotected void handleOtherFilterEndpointModified(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
 
 - 
exportRegisteredServicesprotected void exportRegisteredServices(String exportRegisteredSvcsFilter) 
 - 
endpointAddedpublic void endpointAdded(EndpointDescription endpoint, String matchedFilter) Description copied from interface:EndpointListenerRegister an endpoint with this listener. If the endpoint matches one of the filters registered with theEndpointListener.ENDPOINT_LISTENER_SCOPEservice property then this filter should be given as thematchedFilterparameter. When this service is first registered or it is modified, it should receive all known endpoints matching the filter.- Specified by:
- endpointAddedin interface- EndpointListener
- Parameters:
- endpoint- The Endpoint Description to be published
- matchedFilter- The filter from the- EndpointListener.ENDPOINT_LISTENER_SCOPEthat matched the endpoint, must not be- null.
 
 - 
endpointRemovedpublic void endpointRemoved(EndpointDescription endpoint, String matchedFilter) Description copied from interface:EndpointListenerRemove the registration of an endpoint. If an endpoint that was registered with theEndpointListener.endpointAdded(EndpointDescription, String)method is no longer available then this method should be called. This will remove the endpoint from the listener. It is not necessary to remove endpoints when the service is unregistered or modified in such a way that not all endpoints match the interest filter anymore.- Specified by:
- endpointRemovedin interface- EndpointListener
- Parameters:
- endpoint- The Endpoint Description that is no longer valid.
- matchedFilter- The filter from the- EndpointListener.ENDPOINT_LISTENER_SCOPEthat matched the endpoint, must not be- null.
 
 
- 
 
-