org.eclipse.ecf.osgi.services.remoteserviceadmin
Class AbstractTopologyManager

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractTopologyManager

public abstract class AbstractTopologyManager
extends java.lang.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 Summary
protected  java.util.Collection<org.osgi.service.remoteserviceadmin.ExportRegistration> exportedRegistrations
           
protected  java.util.Collection<org.osgi.service.remoteserviceadmin.ImportRegistration> importedRegistrations
           
static java.lang.String SERVICE_EXPORTED_INTERFACES_WILDCARD
           
 
Constructor Summary
AbstractTopologyManager(org.osgi.framework.BundleContext context)
           
 
Method Summary
protected  void advertiseEndpointDescription(EndpointDescription endpointDescription)
           
protected  void advertiseEndpointDescriptions(java.util.List<EndpointDescription> endpointDescriptions)
           
 void close()
           
protected  org.osgi.framework.Filter createRSAFilter()
           
protected  org.osgi.framework.BundleContext getContext()
           
protected  IEndpointDescriptionAdvertiser getEndpointDescriptionAdvertiser(EndpointDescription endpointDescription)
           
protected  java.lang.String getFrameworkUUID()
           
protected  org.osgi.service.remoteserviceadmin.RemoteServiceAdmin getRemoteServiceAdmin()
           
protected  void handleEndpointAdded(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription, java.lang.String matchedFilter)
           
protected  void handleEndpointRemoved(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription, java.lang.String matchedFilter)
           
protected  void handleEvent(org.osgi.framework.ServiceEvent event, java.util.Collection contexts)
           
protected  void handleInvalidExportRegistration(ExportRegistration exportRegistration, java.lang.Throwable t)
           
protected  void handleInvalidImportRegistration(ImportRegistration importRegistration, java.lang.Throwable t)
           
protected  void handleServiceModifying(org.osgi.framework.ServiceReference serviceReference)
           
protected  void handleServiceRegistering(org.osgi.framework.ServiceReference serviceReference)
           
protected  void handleServiceUnregistering(org.osgi.framework.ServiceReference serviceReference)
           
protected  void logError(java.lang.String methodName, java.lang.String message)
           
protected  void logError(java.lang.String methodName, java.lang.String message, org.eclipse.core.runtime.IStatus result)
           
protected  void logError(java.lang.String methodName, java.lang.String message, java.lang.Throwable exception)
           
protected  void logWarning(java.lang.String methodName, java.lang.String message)
           
protected  void trace(java.lang.String methodName, java.lang.String message)
           
protected  void unadvertiseEndpointDescription(EndpointDescription endpointDescription)
           
protected  java.util.Collection<EndpointDescription> unexportService(org.osgi.framework.ServiceReference serviceReference)
           
protected  void unimportService(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_EXPORTED_INTERFACES_WILDCARD

public static final java.lang.String SERVICE_EXPORTED_INTERFACES_WILDCARD
See Also:
Constant Field Values

exportedRegistrations

protected java.util.Collection<org.osgi.service.remoteserviceadmin.ExportRegistration> exportedRegistrations

importedRegistrations

protected java.util.Collection<org.osgi.service.remoteserviceadmin.ImportRegistration> importedRegistrations
Constructor Detail

AbstractTopologyManager

public AbstractTopologyManager(org.osgi.framework.BundleContext context)
Method Detail

getContext

protected org.osgi.framework.BundleContext getContext()

getFrameworkUUID

protected java.lang.String getFrameworkUUID()

getEndpointDescriptionAdvertiser

protected IEndpointDescriptionAdvertiser getEndpointDescriptionAdvertiser(EndpointDescription endpointDescription)

close

public void close()

logWarning

protected void logWarning(java.lang.String methodName,
                          java.lang.String message)

createRSAFilter

protected org.osgi.framework.Filter createRSAFilter()

getRemoteServiceAdmin

protected org.osgi.service.remoteserviceadmin.RemoteServiceAdmin getRemoteServiceAdmin()

advertiseEndpointDescription

protected void advertiseEndpointDescription(EndpointDescription endpointDescription)

unadvertiseEndpointDescription

protected void unadvertiseEndpointDescription(EndpointDescription endpointDescription)

logError

protected void logError(java.lang.String methodName,
                        java.lang.String message,
                        java.lang.Throwable exception)

logError

protected void logError(java.lang.String methodName,
                        java.lang.String message,
                        org.eclipse.core.runtime.IStatus result)

trace

protected void trace(java.lang.String methodName,
                     java.lang.String message)

logError

protected void logError(java.lang.String methodName,
                        java.lang.String message)

handleEndpointAdded

protected void handleEndpointAdded(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription,
                                   java.lang.String matchedFilter)

handleInvalidImportRegistration

protected void handleInvalidImportRegistration(ImportRegistration importRegistration,
                                               java.lang.Throwable t)

handleEvent

protected void handleEvent(org.osgi.framework.ServiceEvent event,
                           java.util.Collection contexts)

handleEndpointRemoved

protected void handleEndpointRemoved(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription,
                                     java.lang.String matchedFilter)

handleServiceRegistering

protected void handleServiceRegistering(org.osgi.framework.ServiceReference serviceReference)

advertiseEndpointDescriptions

protected void advertiseEndpointDescriptions(java.util.List<EndpointDescription> endpointDescriptions)

handleInvalidExportRegistration

protected void handleInvalidExportRegistration(ExportRegistration exportRegistration,
                                               java.lang.Throwable t)

handleServiceModifying

protected void handleServiceModifying(org.osgi.framework.ServiceReference serviceReference)

handleServiceUnregistering

protected void handleServiceUnregistering(org.osgi.framework.ServiceReference serviceReference)

unexportService

protected java.util.Collection<EndpointDescription> unexportService(org.osgi.framework.ServiceReference serviceReference)

unimportService

protected void unimportService(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)