public class AmazonDashHardwareImpl extends Object implements AmazonDashHardware, org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, org.pcap4j.core.PacketListener
| Constructor and Description |
|---|
AmazonDashHardwareImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceToCache(at.ac.ait.hbs.homer.core.common.model.DBDevice device) |
void |
destroy() |
List<org.pcap4j.util.MacAddress> |
getDetectedMacAddresses() |
void |
gotPacket(org.pcap4j.packet.Packet packet) |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
init() |
void |
setDataAccess(at.ac.ait.hbs.homer.core.common.DataAccess dataAccess)
Setter of
DataAccess for blueprint |
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
Setter of
EventAdmin for blueprint |
boolean |
startCapturing(org.pcap4j.core.PcapNetworkInterface nif)
Starts capturing the given network interface
|
boolean |
stopCapturing()
Stops capturing
|
void |
updated(Dictionary<String,?> properties) |
void |
updated(Map<String,String> properties) |
public void init()
public void destroy()
public final void setDataAccess(at.ac.ait.hbs.homer.core.common.DataAccess dataAccess)
DataAccess for blueprintdataAccess - The DataAccess instancepublic final void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
EventAdmin for blueprinteventAdmin - The EventAdmin instancepublic void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerpublic void updated(Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
updated in interface org.osgi.service.cm.ManagedServiceorg.osgi.service.cm.ConfigurationExceptionpublic void updated(Map<String,String> properties) throws org.osgi.service.cm.ConfigurationException
org.osgi.service.cm.ConfigurationExceptionpublic boolean startCapturing(org.pcap4j.core.PcapNetworkInterface nif)
nif - The network interfacepublic boolean stopCapturing()
public void gotPacket(org.pcap4j.packet.Packet packet)
gotPacket in interface org.pcap4j.core.PacketListenerpublic List<org.pcap4j.util.MacAddress> getDetectedMacAddresses()
getDetectedMacAddresses in interface AmazonDashHardwarepublic void addDeviceToCache(at.ac.ait.hbs.homer.core.common.model.DBDevice device)
addDeviceToCache in interface AmazonDashHardwareCopyright © 2017. All rights reserved.