oracle.edge.driver
Interface EventDevice
- All Superinterfaces:
- Device, EdgeExtension
- All Known Implementing Classes:
- AbstractEventDevice
- public interface EventDevice
- extends Device
Event device interface to represent a symbolic device that is capable of receiving sensor events such as RFID reader etc.<br/> All sensor device driver should implement this interface.
Method Summary |
void |
addFilter(Filter NewFilter)
Add new filter to this device. |
DeviceEventArray |
receive()
Fetch collected event data as a DeviceEventArray object to EventProcessor .<br/> EventProcessor will spawn a separated thread to pull collected events from this device by repeatedly calling this method. |
void |
removeFilter(Filter ExistingFilter)
Remove a filter from this device. |
addFilter
public void addFilter(Filter NewFilter)
- Add new filter to this device. <p/>
-
- Parameters:
NewFilter
- a new filter to be added.
receive
public DeviceEventArray receive()
throws DeviceException
- Fetch collected event data as a
DeviceEventArray
object to EventProcessor
.<br/> EventProcessor
will spawn a separated thread to pull collected events from this device by repeatedly calling this method. Each time when EventProcess
receives the fetched events, it will send them to edge client through its event dispatcher.
-
- Returns:
- DeviceEventArray array of device events.
- Throws:
DeviceException
- exception thrown upon the failure of delivering events.
removeFilter
public void removeFilter(Filter ExistingFilter)
- Remove a filter from this device. <p/>
-
- Parameters:
ExistingFilter
- an existing filter to be removed.
Copyright © 2004 Oracle Corporation. All Rights Reserved.