public interface DeviceSupplierService extends SupplierService
Modifier and Type | Method and Description |
---|---|
Device |
createOrUpdateDevice(DeviceId deviceId,
Set<URI> uris,
DeviceInfo info)
Creates, or updates, a device using the supplied discovery URIs and
device information populated with basic device identity data.
|
void |
createOrUpdateInterface(DeviceId deviceId,
List<InterfaceInfo> netInterfaces)
Create or update the interfaces associated with the device.
|
SupplierId |
getId()
Returns the supplier id assigned by the supplier's broker.
|
void |
removeDevice(DeviceId deviceId)
Removes the specified device from the inventory.
|
void |
setOnline(DeviceId deviceId,
boolean online)
Marks the device as on/off line.
|
void |
updateInterface(DeviceId deviceId,
Interface netInterface)
Update a single interface.
|
Device createOrUpdateDevice(DeviceId deviceId, Set<URI> uris, DeviceInfo info)
DeviceIdentity.getUniqueId()
,
that device instance will be simply updated and returned.
Note that it is the responsibility of the caller (DeviceSupplier
to populate the info with the identity information beforehand.
deviceId
- unique identifier for the deviceuris
- set of discovery URIsinfo
- device info from the initial discovery/classificationvoid removeDevice(DeviceId deviceId)
deviceId
- device to be removedvoid setOnline(DeviceId deviceId, boolean online)
deviceId
- device to be updatedonline
- true to mark device onlineNotFoundException
- if device not foundSupplierId getId()
void createOrUpdateInterface(DeviceId deviceId, List<InterfaceInfo> netInterfaces)
deviceId
- device where the interfaces are associatednetInterfaces
- interfaces to associateCopyright © 2015. All Rights Reserved.