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 Summary
FieldsFields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager
SERVICE_EXPORTED_INTERFACES_WILDCARDFields inherited from interface org.osgi.service.remoteserviceadmin.EndpointEventListener
ENDPOINT_LISTENER_SCOPEFields inherited from interface org.osgi.service.remoteserviceadmin.EndpointListener
ENDPOINT_LISTENER_SCOPE -
Constructor Summary
ConstructorsConstructorDescriptionTopologyManagerImpl(BundleContext context) TopologyManagerImpl(BundleContext context, boolean allowLocalHost, String... otherFilters) -
Method Summary
Modifier and TypeMethodDescriptionprotected EndpointDescriptionvoidendpointAdded(EndpointDescription endpoint, String matchedFilter) Register an endpoint with this listener.voidendpointChanged(EndpointEvent event, String matchedFilter) Notification that an endpoint has changed.voidendpointRemoved(EndpointDescription endpoint, String matchedFilter) Remove the registration of an endpoint.protected voidexportRegisteredServices(String exportRegisteredSvcsFilter) protected Stringprotected voidhandleEndpointAdded(EndpointDescription endpoint, String matchedFilter) protected voidhandleEndpointModified(EndpointDescription endpoint, String matchedFilter) protected voidhandleEndpointModifiedEndmatch(EndpointDescription endpoint, String matchedFilter) protected voidhandleEndpointRemoved(EndpointDescription endpoint, String matchedFilter) protected voidhandleEvent(ServiceEvent event, Map listeners) protected voidhandleOtherFilterEndpointAdded(EndpointDescription endpoint, String matchedFilter) protected voidhandleOtherFilterEndpointModified(EndpointDescription endpoint, String matchedFilter) protected voidhandleOtherFilterEndpointModifiedEndmatch(EndpointDescription endpoint, String matchedFilter) protected voidhandleOtherFilterEndpointRemoved(EndpointDescription endpoint, String matchedFilter) protected voidMethods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager
advertiseEndpointDescription, 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
-
Field Details
-
STARTUP_WAIT_TIME
public static final int STARTUP_WAIT_TIME
-
-
Constructor Details
-
TopologyManagerImpl
-
TopologyManagerImpl
- Since:
- 4.9
-
-
Method Details
-
getFrameworkUUID
- Overrides:
getFrameworkUUIDin classAbstractTopologyManager
-
handleEvent
- Overrides:
handleEventin classAbstractTopologyManager- Parameters:
event- the service eventlisteners- map of listeners
-
handleRemoteAdminEvent
-
endpointChanged
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 interfaceEndpointEventListener- Parameters:
event- The event containing the details about the change.matchedFilter- The filter from theEndpointEventListener.ENDPOINT_LISTENER_SCOPEthat matches (or forEndpointEvent.MODIFIED_ENDMATCHandEndpointEvent.REMOVEDused to match) the endpoint, must not benull.
-
handleEndpointAdded
-
handleOtherFilterEndpointAdded
- Since:
- 4.9
-
handleEndpointRemoved
-
handleOtherFilterEndpointRemoved
- Since:
- 4.9
-
convertEndpointDescriptionFromOSGiToECF
- Since:
- 4.9
-
handleEndpointModifiedEndmatch
-
handleOtherFilterEndpointModifiedEndmatch
protected void handleOtherFilterEndpointModifiedEndmatch(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
-
handleEndpointModified
-
handleOtherFilterEndpointModified
protected void handleOtherFilterEndpointModified(EndpointDescription endpoint, String matchedFilter) - Since:
- 4.9
-
exportRegisteredServices
-
endpointAdded
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 interfaceEndpointListener- Parameters:
endpoint- The Endpoint Description to be publishedmatchedFilter- The filter from theEndpointListener.ENDPOINT_LISTENER_SCOPEthat matched the endpoint, must not benull.
-
endpointRemoved
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 interfaceEndpointListener- Parameters:
endpoint- The Endpoint Description that is no longer valid.matchedFilter- The filter from theEndpointListener.ENDPOINT_LISTENER_SCOPEthat matched the endpoint, must not benull.
-