Interface SdcDeviceFactory
-
- All Implemented Interfaces:
public interface SdcDeviceFactoryFactory to create SDC compatible devices.
-
-
Method Summary
Modifier and Type Method Description abstract SdcDevicecreateSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, @Nullable() OperationInvocationReceiver operationInvocationReceiver, Collection<SdcDevicePlugin> plugins)Creates a new SdcDevice instance. abstract SdcDevicecreateSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, @Nullable() OperationInvocationReceiver operationInvocationReceiver, Collection<SdcDevicePlugin> plugins, @Nullable() LocalizationStorage localizationStorage, List<HostedService> customHostedServices)Creates a new SdcDevice instance. -
-
Method Detail
-
createSdcDevice
abstract SdcDevice createSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, @Nullable() OperationInvocationReceiver operationInvocationReceiver, Collection<SdcDevicePlugin> plugins)
Creates a new SdcDevice instance.
- Parameters:
deviceSettings- the DPWS device settings to use.mdibAccess- the MDIB to be exposed on the network.operationInvocationReceiver- handler for incoming set service requests.plugins- org.somda.sdc.glue.provider.plugin.SdcRequiredTypesAndScopes if the collection is empty or custom plugins to run on start up and shut down in the order given by this collection.- Returns:
a new SdcDevice. Use startAsync in order to start exposing the device on the network.
-
createSdcDevice
abstract SdcDevice createSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, @Nullable() OperationInvocationReceiver operationInvocationReceiver, Collection<SdcDevicePlugin> plugins, @Nullable() LocalizationStorage localizationStorage, List<HostedService> customHostedServices)
Creates a new SdcDevice instance.
- Parameters:
deviceSettings- the DPWS device settings to use.mdibAccess- the MDIB to be exposed on the network.operationInvocationReceiver- handler for incoming set service requests.plugins- org.somda.sdc.glue.provider.plugin.SdcRequiredTypesAndScopes if the collection is empty or custom plugins to run on start up and shut down in the order given by this collection.localizationStorage- optional LocalizationStorage implementation.customHostedServices- list of services to be started in addition to SDC services.- Returns:
a new SdcDevice. Use startAsync in order to start exposing the device on the network.
-
-
-
-