Previous Topic

Next Topic

Book Contents

Book Index

Native Zone Management (deprecated)

If a protocol supports multicast command delivery you can also add native HDM support for managing zones.

Native and Simulated Zone Management

Zones can be managed either natively by the protocol which connects to the devices (if supported) or it can also be simulated by the HDM module:

You can add the HDM native zone management capability to a protocol by implementing the MulticastHandler interface and registering it as an OSGi service.

Implement the MulticastHandler Interface

The Home Device Manager handles multicast commands via the MulticastHandler interface.

Create Groups

Implement the methods used by the Home Device Manager for creating groups of devices:

Invoke Commands

Implement the setDCOProperty and invokeDCOOperation and methods for setting properties and for executing operations on devices in a group. The methods accept the ID of the group and the standard set of arguments which are passed when performing the same action on the single device.

Register the MulticastHandler Implementation as an OSGi Service

Register the MulticastHandler instance as a service in the OSGi framework. Add a registration property to specify the adapter to which this service attaches to:

Key: HomeProtocolAdapter.REGISTRATION_PROPERTY_ADAPTER_NAME Value: <adapter_name>