public class AutonomicAdapterDeploymentMgr extends Object implements DeviceListener<GenericDevice>, DPInfosListener
| Modifier and Type | Method and Description |
|---|---|
void |
bindDevice(org.osgi.framework.ServiceReference detectorRef)
It is called when a new service of type GenericDevice is registered into
the gateway.
|
void |
deviceAdded(GenericDevice genericDevice)
Callback notifying the addition of a device to the platform.
|
void |
deviceEvent(GenericDevice arg0,
Object arg1)
Callback notifying when the device want to trigger an event.
|
void |
devicePropertyAdded(GenericDevice genericDevice,
String s)
Callback notifying the addition of a property on the device listened.
|
void |
devicePropertyModified(GenericDevice genericDevice,
String s,
Object oldValue,
Object newValue)
Callback notifying the modification of a property on the device listened.
|
void |
devicePropertyRemoved(GenericDevice genericDevice,
String s)
Callback notifying the elimination of a property on the device listened.
|
void |
deviceRemoved(GenericDevice genericDevice)
Callback notifying the elimination of a device to the platform.
|
void |
DPInfosAdded(DPInfos addedDP)
Listener method triggered when a new DP is added.
|
void |
DPInfosRemoved(DPInfos removedDP)
Listener method triggered when a DP is removed.
|
boolean |
handleNewDevice(Set<String> classNames)
Check if the array of interfaces can be handled by an
|
void |
unbindDevice(org.osgi.framework.ServiceReference detectorRef) |
public boolean handleNewDevice(Set<String> classNames) throws ClassNotFoundException
classNames - ClassNotFoundExceptionpublic void deviceAdded(GenericDevice genericDevice)
DeviceListenerdeviceAdded in interface DeviceListener<GenericDevice>genericDevice - The device added.public void deviceRemoved(GenericDevice genericDevice)
DeviceListenerdeviceRemoved in interface DeviceListener<GenericDevice>genericDevice - The device removed.public void devicePropertyModified(GenericDevice genericDevice, String s, Object oldValue, Object newValue)
DeviceListenerdevicePropertyModified in interface DeviceListener<GenericDevice>genericDevice - The devices - The name of the modified propertyoldValue - The previous value of the propertynewValue - The new value of the propertypublic void devicePropertyAdded(GenericDevice genericDevice, String s)
DeviceListenerdevicePropertyAdded in interface DeviceListener<GenericDevice>genericDevice - The devices - The name of the added propertypublic void devicePropertyRemoved(GenericDevice genericDevice, String s)
DeviceListenerdevicePropertyRemoved in interface DeviceListener<GenericDevice>genericDevice - The devices - The name of the removed propertypublic void bindDevice(org.osgi.framework.ServiceReference detectorRef)
throws ClassNotFoundException
detectorRef - A new GenericDevice (proxy)ClassNotFoundExceptionpublic void unbindDevice(org.osgi.framework.ServiceReference detectorRef)
public void DPInfosAdded(DPInfos addedDP)
DPInfosListenerDPInfosAdded in interface DPInfosListeneraddedDP - the added DP informations (url, name, handled interfaces).public void DPInfosRemoved(DPInfos removedDP)
DPInfosListenerDPInfosRemoved in interface DPInfosListenerremovedDP - the removed DP informations (url, name, handled interfaces).public void deviceEvent(GenericDevice arg0, Object arg1)
DeviceListenerdeviceEvent in interface DeviceListener<GenericDevice>arg0 - the device triggering the event.arg1 - the content of the event.Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.