Class AbstractTopologyManager
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager
 
- 
- Direct Known Subclasses:
- TopologyManagerImpl
 
 public abstract class AbstractTopologyManager extends Object Abstract superclass for topology managers. This abstract superclass provides basic functionality for topology managers to reuse. New topology managers can extend this class to get or customize desired functionality. Alternatively, they can use this class as a guide to implementing desired topology manager behavior. For description of the role of topology managers see the OSGI 4.2 Remote Service Admin specification (chap 122).
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSERVICE_EXPORTED_INTERFACES_WILDCARD
 - 
Constructor SummaryConstructors Constructor Description AbstractTopologyManager(BundleContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadvertiseEndpointDescription(EndpointDescription endpointDescription)protected voidadvertiseModifyEndpointDescription(EndpointDescription endpointDescription)voidclose()protected FiltercreateISIFFilter(BundleContext ctx)protected FiltercreateRSAFilter()protected BundleContextgetContext()protected StringgetFrameworkUUID()protected RemoteServiceAdmingetRemoteServiceAdmin()protected voidhandleAdvertisingResult(org.eclipse.core.runtime.IStatus result, EndpointDescription endpointDescription, boolean advertise)protected voidhandleECFEndpointAdded(EndpointDescription endpointDescription)protected voidhandleECFEndpointModified(EndpointDescription endpoint)protected voidhandleECFEndpointRemoved(EndpointDescription endpointDescription)protected voidhandleEvent(ServiceEvent event, Map listeners)protected voidhandleInvalidImportRegistration(ImportRegistration importRegistration, Throwable t)protected voidhandleNonECFEndpointAdded(EndpointListener listener, EndpointDescription endpointDescription)protected voidhandleNonECFEndpointModified(EndpointEventListener basicTopologyManagerImpl, EndpointDescription endpointDescription)protected voidhandleNonECFEndpointRemoved(EndpointDescription endpointDescription, String matchedFilter)protected voidhandleNonECFEndpointRemoved(EndpointListener listener, EndpointDescription endpointDescription)protected voidhandleServiceModifying(ServiceReference serviceReference)protected voidhandleServiceRegistering(ServiceReference serviceReference)protected voidhandleServiceUnregistering(ServiceReference serviceReference)protected booleanhasDescription(EndpointDescription ed)protected voidlogError(String methodName, String message)protected voidlogError(String methodName, String message, Throwable exception)protected voidlogError(String methodName, String message, org.eclipse.core.runtime.IStatus result)protected voidlogWarning(String methodName, String message)protected voidtrace(String methodName, String message)protected voidunadvertiseEndpointDescription(EndpointDescription endpointDescription)
 
- 
- 
- 
Field Detail- 
SERVICE_EXPORTED_INTERFACES_WILDCARDpublic static final String SERVICE_EXPORTED_INTERFACES_WILDCARD - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
AbstractTopologyManagerpublic AbstractTopologyManager(BundleContext context) 
 
- 
 - 
Method Detail- 
getContextprotected BundleContext getContext() 
 - 
getFrameworkUUIDprotected String getFrameworkUUID() 
 - 
closepublic void close() 
 - 
createRSAFilterprotected Filter createRSAFilter() 
 - 
createISIFFilterprotected Filter createISIFFilter(BundleContext ctx) - Parameters:
- ctx- the bundle context
- Returns:
- Filter the created filter
- Since:
- 4.0
 
 - 
getRemoteServiceAdminprotected RemoteServiceAdmin getRemoteServiceAdmin() 
 - 
hasDescriptionprotected boolean hasDescription(EndpointDescription ed) - Since:
- 4.9
 
 - 
advertiseModifyEndpointDescriptionprotected void advertiseModifyEndpointDescription(EndpointDescription endpointDescription) - Parameters:
- endpointDescription- endpoint description
- Since:
- 4.1
 
 - 
advertiseEndpointDescriptionprotected void advertiseEndpointDescription(EndpointDescription endpointDescription) - Parameters:
- endpointDescription- endpoint description
- Since:
- 3.0
 
 - 
unadvertiseEndpointDescriptionprotected void unadvertiseEndpointDescription(EndpointDescription endpointDescription) - Parameters:
- endpointDescription- endpoint description
- Since:
- 3.0
 
 - 
logErrorprotected void logError(String methodName, String message, org.eclipse.core.runtime.IStatus result) 
 - 
handleECFEndpointAddedprotected void handleECFEndpointAdded(EndpointDescription endpointDescription) - Parameters:
- endpointDescription- endpoint description
- Since:
- 3.0
 
 - 
handleECFEndpointRemovedprotected void handleECFEndpointRemoved(EndpointDescription endpointDescription) - Parameters:
- endpointDescription- endpoint description
- Since:
- 3.0
 
 - 
handleECFEndpointModifiedprotected void handleECFEndpointModified(EndpointDescription endpoint) - Parameters:
- endpoint- endpoint description
- Since:
- 4.1
 
 - 
handleNonECFEndpointAddedprotected void handleNonECFEndpointAdded(EndpointListener listener, EndpointDescription endpointDescription) - Parameters:
- listener- listener
- endpointDescription- endpoint description
- Since:
- 4.9
 
 - 
handleNonECFEndpointRemovedprotected void handleNonECFEndpointRemoved(EndpointListener listener, EndpointDescription endpointDescription) - Parameters:
- listener- listener
- endpointDescription- endpoint description
- Since:
- 4.9
 
 - 
handleNonECFEndpointModifiedprotected void handleNonECFEndpointModified(EndpointEventListener basicTopologyManagerImpl, EndpointDescription endpointDescription) - Parameters:
- basicTopologyManagerImpl- basic topology manager
- endpointDescription- endpointDescription
- Since:
- 4.9
 
 - 
handleNonECFEndpointRemovedprotected void handleNonECFEndpointRemoved(EndpointDescription endpointDescription, String matchedFilter) - Parameters:
- endpointDescription- endpoint description
- matchedFilter- matched filter
- Since:
- 3.0
 
 - 
handleAdvertisingResultprotected void handleAdvertisingResult(org.eclipse.core.runtime.IStatus result, EndpointDescription endpointDescription, boolean advertise)- Parameters:
- result- result
- endpointDescription- endpoint description
- advertise- advertise
- Since:
- 3.0
 
 - 
handleInvalidImportRegistrationprotected void handleInvalidImportRegistration(ImportRegistration importRegistration, Throwable t) 
 - 
handleEventprotected void handleEvent(ServiceEvent event, Map listeners) - Parameters:
- event- the service event
- listeners- map of listeners
- Since:
- 3.0
 
 - 
handleServiceRegisteringprotected void handleServiceRegistering(ServiceReference serviceReference) 
 - 
handleServiceModifyingprotected void handleServiceModifying(ServiceReference serviceReference) 
 - 
handleServiceUnregisteringprotected void handleServiceUnregistering(ServiceReference serviceReference) 
 
- 
 
-