public abstract class AbstractHostContainerSelector extends AbstractContainerSelector
IHostContainerSelector
.Modifier and Type | Field and Description |
---|---|
protected String[] |
defaultConfigTypes |
EMPTY_REMOTE_SERVICE_CONTAINER_ARRAY
Constructor and Description |
---|
AbstractHostContainerSelector(String[] defaultConfigTypes) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectHostContainer(ServiceReference serviceReference,
Map<String,Object> properties,
IContainer container,
Object target) |
protected Collection |
createAndConfigureHostContainers(ServiceReference serviceReference,
Map<String,Object> properties,
String[] serviceExportedInterfaces,
String[] requiredConfigs,
String[] serviceIntents) |
protected IRemoteServiceContainer |
createMatchingContainer(ContainerTypeDescription containerTypeDescription,
ServiceReference serviceReference,
Map<String,Object> properties,
String[] serviceExportedInterfaces,
String[] requiredConfigs,
String[] serviceIntents) |
protected IRemoteServiceContainer |
createRSContainer(ServiceReference serviceReference,
Map<String,Object> properties,
ContainerTypeDescription containerTypeDescription) |
protected IRemoteServiceContainer |
createRSContainer(ServiceReference serviceReference,
Map<String,Object> properties,
ContainerTypeDescription containerTypeDescription,
String[] intents) |
protected ContainerTypeDescription[] |
getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions) |
protected String[] |
getDefaultConfigTypes() |
protected List<String> |
getExcludedDescriptions() |
protected boolean |
getRequireServerDescription() |
protected boolean |
matchDefaultConfigTypes(String[] defaultConfigTypes,
String[] supportedConfigTypes) |
protected boolean |
matchExistingHostContainer(ServiceReference serviceReference,
Map<String,Object> properties,
IContainer container,
IRemoteServiceContainerAdapter adapter,
ContainerTypeDescription description,
String[] requiredConfigTypes,
String[] requiredServiceIntents) |
protected boolean |
matchHostContainerID(ServiceReference serviceReference,
Map<String,Object> properties,
IContainer container) |
protected boolean |
matchHostContainerToConnectTarget(ServiceReference serviceReference,
Map<String,Object> properties,
IContainer container) |
protected boolean |
matchHostSupportedConfigTypes(String[] requiredConfigTypes,
ContainerTypeDescription containerTypeDescription) |
protected boolean |
matchHostSupportedIntents(String[] serviceRequiredIntents,
ContainerTypeDescription containerTypeDescription) |
protected boolean |
matchHostSupportedIntents(String[] serviceRequiredIntents,
ContainerTypeDescription containerTypeDescription,
IContainer container) |
protected boolean |
matchNotExcluded(ContainerTypeDescription description) |
protected boolean |
matchRequireServer(ContainerTypeDescription description) |
protected Collection |
selectExistingHostContainers(ServiceReference serviceReference,
Map<String,Object> overridingProperties,
String[] serviceExportedInterfaces,
String[] serviceExportedConfigs,
String[] serviceIntents) |
protected void |
setExcludedDescriptions(List<String> excludedDescriptions) |
protected void |
setRequireServer(boolean requireServerDescriptionForExport) |
connectContainer, 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
protected String[] defaultConfigTypes
public AbstractHostContainerSelector(String[] defaultConfigTypes)
protected void setExcludedDescriptions(List<String> excludedDescriptions)
protected void setRequireServer(boolean requireServerDescriptionForExport)
protected boolean getRequireServerDescription()
protected Collection selectExistingHostContainers(ServiceReference serviceReference, Map<String,Object> overridingProperties, String[] serviceExportedInterfaces, String[] serviceExportedConfigs, String[] serviceIntents)
serviceReference
- service referenceoverridingProperties
- overriding propertiesserviceExportedInterfaces
- service exported interfaces to select forserviceExportedConfigs
- service exported configs to select forserviceIntents
- service exported intents to select forprotected boolean matchHostContainerToConnectTarget(ServiceReference serviceReference, Map<String,Object> properties, IContainer container)
serviceReference
- serviceReferenceproperties
- propertiescontainer
- container to matchprotected boolean matchExistingHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, IRemoteServiceContainerAdapter adapter, ContainerTypeDescription description, String[] requiredConfigTypes, String[] requiredServiceIntents)
serviceReference
- service referenceproperties
- propertiescontainer
- containeradapter
- remote service container adapterdescription
- container type descriptionrequiredConfigTypes
- required config typesrequiredServiceIntents
- required service intentsprotected boolean matchHostContainerID(ServiceReference serviceReference, Map<String,Object> properties, IContainer container)
serviceReference
- serviceReferenceproperties
- propertiescontainer
- containerprotected boolean matchHostSupportedConfigTypes(String[] requiredConfigTypes, ContainerTypeDescription containerTypeDescription)
requiredConfigTypes
- request config typescontainerTypeDescription
- container type descriptionprotected Collection createAndConfigureHostContainers(ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents) throws SelectContainerException
serviceReference
- service referenceproperties
- overriding propertiesserviceExportedInterfaces
- service exported interfaces to select forrequiredConfigs
- service exported configs to select forrequiredIntents
- intents to select forSelectContainerException
- if container cannot be created or configuredprotected ContainerTypeDescription[] getContainerTypeDescriptionsForDefaultConfigTypes(ContainerTypeDescription[] descriptions)
protected boolean matchDefaultConfigTypes(String[] defaultConfigTypes, String[] supportedConfigTypes)
protected String[] getDefaultConfigTypes()
protected boolean matchRequireServer(ContainerTypeDescription description)
protected boolean matchNotExcluded(ContainerTypeDescription description)
protected IRemoteServiceContainer createMatchingContainer(ContainerTypeDescription containerTypeDescription, ServiceReference serviceReference, Map<String,Object> properties, String[] serviceExportedInterfaces, String[] requiredConfigs, String[] serviceIntents) throws SelectContainerException
containerTypeDescription
- containerTypeDescriptionserviceReference
- referenceproperties
- propertiesserviceExportedInterfaces
- exported interfacesrequiredConfigs
- configsrequiredIntents
- intentsSelectContainerException
- container cannot be created or selectedprotected IRemoteServiceContainer createRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription) throws SelectContainerException
serviceReference
- serviceReferenceproperties
- propertiescontainerTypeDescription
- container type descriptionSelectContainerException
- if could not be createdprotected IRemoteServiceContainer createRSContainer(ServiceReference serviceReference, Map<String,Object> properties, ContainerTypeDescription containerTypeDescription, String[] intents) throws SelectContainerException
serviceReference
- serviceReferenceproperties
- propertiescontainerTypeDescription
- container type descriptionSelectContainerException
- if could not be createdprotected void connectHostContainer(ServiceReference serviceReference, Map<String,Object> properties, IContainer container, Object target) throws ContainerConnectException, IDCreateException
serviceReference
- service referenceproperties
- propertiescontainer
- containertarget
- targetContainerConnectException
- if container cannot be connectedIDCreateException
- thrown if ID cannot be createdprotected boolean matchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription)
protected boolean matchHostSupportedIntents(String[] serviceRequiredIntents, ContainerTypeDescription containerTypeDescription, IContainer container)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.