Class AbstractHostContainerSelector
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelector
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractHostContainerSelector
 
 
- 
- Direct Known Subclasses:
- HostContainerSelector
 
 public abstract class AbstractHostContainerSelector extends AbstractContainerSelector Abstract superclass for host container selectors...i.e. implementers ofIHostContainerSelector.- Since:
- 4.6
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected String[]defaultConfigTypes- 
Fields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelectorEMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractHostContainerSelector(String[] defaultConfigTypes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconnectHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, Object target)protected CollectioncreateAndConfigureHostContainers(ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents)protected IRemoteServiceContainercreateMatchingContainer(ContainerTypeDescription containerTypeDescription, ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents)protected IRemoteServiceContainercreateRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription)protected IRemoteServiceContainercreateRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents)protected ContainerTypeDescription[]getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions)protected String[]getDefaultConfigTypes()protected List<String>getExcludedDescriptions()protected booleangetRequireServerDescription()protected booleanmatchDefaultConfigTypes(String[] defaultConfigTypes, String[] supportedConfigTypes)protected booleanmatchExistingHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, IRemoteServiceContainerAdapter adapter, ContainerTypeDescription description, String[] requiredConfigTypes, String[] requiredServiceIntents)protected booleanmatchHostContainerID(ServiceReference serviceReference, Map<String,Object> properties, IContainer container)protected booleanmatchHostContainerToConnectTarget(ServiceReference serviceReference, Map<String,Object> properties, IContainer container)protected booleanmatchHostSupportedConfigTypes(String[] requiredConfigTypes, ContainerTypeDescription containerTypeDescription)protected booleanmatchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription)protected booleanmatchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription, IContainer container)protected booleanmatchNotExcluded(ContainerTypeDescription description)protected booleanmatchRequireServer(ContainerTypeDescription description)protected CollectionselectExistingHostContainers(ServiceReference serviceReference, Map<String,Object> overridingProperties, String[] serviceExportedInterfaces, String[] serviceExportedConfigs, String[] serviceIntents)protected voidsetExcludedDescriptions(List<String> excludedDescriptions)protected voidsetRequireServer(boolean requireServerDescriptionForExport)- 
Methods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractContainerSelectorconnectContainer, createConnectContext, createContainer, createContainer, createTargetID, disconnectContainer, getContainerFactory, getContainerFactoryArguments, getContainerFactoryArguments, getContainerManager, getContainers, getContainerTypeDescription, getContainerTypeDescriptions, getRemoteServiceContainers, getSupportedConfigTypes, getSupportedIntents, hasRemoteServiceContainerAdapter, includeContainerWithConnectNamespace, logError, logError, logException, logWarning, matchConnectNamespace, matchContainerID, trace, traceException
 
- 
 
- 
- 
- 
Field Detail- 
defaultConfigTypesprotected String[] defaultConfigTypes 
 
- 
 - 
Constructor Detail- 
AbstractHostContainerSelectorpublic AbstractHostContainerSelector(String[] defaultConfigTypes) 
 
- 
 - 
Method Detail- 
setExcludedDescriptionsprotected void setExcludedDescriptions(List<String> excludedDescriptions) - Since:
- 4.6
 
 - 
setRequireServerprotected void setRequireServer(boolean requireServerDescriptionForExport) - Since:
- 4.6
 
 - 
getRequireServerDescriptionprotected boolean getRequireServerDescription() - Since:
- 4.6
 
 - 
selectExistingHostContainersprotected Collection selectExistingHostContainers(ServiceReference serviceReference, Map<String,Object> overridingProperties, String[] serviceExportedInterfaces, String[] serviceExportedConfigs, String[] serviceIntents) - Parameters:
- serviceReference- service reference
- overridingProperties- overriding properties
- serviceExportedInterfaces- service exported interfaces to select for
- serviceExportedConfigs- service exported configs to select for
- serviceIntents- service exported intents to select for
- Returns:
- Collection of existing host containers
- Since:
- 2.0
 
 - 
matchHostContainerToConnectTargetprotected boolean matchHostContainerToConnectTarget(ServiceReference serviceReference, Map<String,Object> properties, IContainer container) - Parameters:
- serviceReference- serviceReference
- properties- properties
- container- container to match
- Returns:
- boolean true if match false otherwise
- Since:
- 2.0
 
 - 
matchExistingHostContainerprotected boolean matchExistingHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, IRemoteServiceContainerAdapter adapter, ContainerTypeDescription description, String[] requiredConfigTypes, String[] requiredServiceIntents) - Parameters:
- serviceReference- service reference
- properties- properties
- container- container
- adapter- remote service container adapter
- description- container type description
- requiredConfigTypes- required config types
- requiredServiceIntents- required service intents
- Returns:
- boolean true if match, false otherwise
- Since:
- 2.0
 
 - 
matchHostContainerIDprotected boolean matchHostContainerID(ServiceReference serviceReference, Map<String,Object> properties, IContainer container) - Parameters:
- serviceReference- serviceReference
- properties- properties
- container- container
- Returns:
- boolean true if match, false otherwise
- Since:
- 2.0
 
 - 
matchHostSupportedConfigTypesprotected boolean matchHostSupportedConfigTypes(String[] requiredConfigTypes, ContainerTypeDescription containerTypeDescription) - Parameters:
- requiredConfigTypes- request config types
- containerTypeDescription- container type description
- Returns:
- boolean true if match, false otherwise
 
 - 
createAndConfigureHostContainersprotected Collection createAndConfigureHostContainers(ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents) throws SelectContainerException - Parameters:
- serviceReference- service reference
- properties- overriding properties
- serviceExportedInterfaces- service exported interfaces to select for
- requiredConfigs- service exported configs to select for
- requiredIntents- intents to select for
- Returns:
- Collection of host containers
- Throws:
- SelectContainerException- if container cannot be created or configured
- Since:
- 2.0
 
 - 
getContainerTypeDescriptionsForDefaultConfigTypesprotected ContainerTypeDescription[] getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions) 
 - 
matchDefaultConfigTypesprotected boolean matchDefaultConfigTypes(String[] defaultConfigTypes, String[] supportedConfigTypes) 
 - 
getDefaultConfigTypesprotected String[] getDefaultConfigTypes() 
 - 
matchRequireServerprotected boolean matchRequireServer(ContainerTypeDescription description) - Since:
- 4.6
 
 - 
matchNotExcludedprotected boolean matchNotExcluded(ContainerTypeDescription description) - Since:
- 4.6
 
 - 
createMatchingContainerprotected IRemoteServiceContainer createMatchingContainer(ContainerTypeDescription containerTypeDescription, ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents) throws SelectContainerException - Parameters:
- containerTypeDescription- containerTypeDescription
- serviceReference- reference
- properties- properties
- serviceExportedInterfaces- exported interfaces
- requiredConfigs- configs
- requiredIntents- intents
- Returns:
- IRemoteServiceContainer matching container created
- Throws:
- SelectContainerException- container cannot be created or selected
- Since:
- 2.0
 
 - 
createRSContainerprotected IRemoteServiceContainer createRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription) throws SelectContainerException - Parameters:
- serviceReference- serviceReference
- properties- properties
- containerTypeDescription- container type description
- Returns:
- IRemoteServiceContainer created remote service container
- Throws:
- SelectContainerException- if could not be created
- Since:
- 2.0
 
 - 
createRSContainerprotected IRemoteServiceContainer createRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) throws SelectContainerException - Parameters:
- serviceReference- serviceReference
- properties- properties
- containerTypeDescription- container type description
- Returns:
- IRemoteServiceContainer created remote service container
- Throws:
- SelectContainerException- if could not be created
- Since:
- 4.6
 
 - 
connectHostContainerprotected void connectHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, Object target) throws ContainerConnectException, IDCreateException - Parameters:
- serviceReference- service reference
- properties- properties
- container- container
- target- target
- Throws:
- ContainerConnectException- if container cannot be connected
- IDCreateException- thrown if ID cannot be created
- Since:
- 2.0
 
 - 
matchHostSupportedIntentsprotected boolean matchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription) 
 - 
matchHostSupportedIntentsprotected boolean matchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription, IContainer container) - Since:
- 4.6
 
 
- 
 
-