|
| IPhysicalInterface (BaseLib::SharedObjects *baseLib, int32_t familyId) |
|
| IPhysicalInterface (BaseLib::SharedObjects *baseLib, int32_t familyId, std::shared_ptr< PhysicalInterfaceSettings > settings) |
|
virtual | ~IPhysicalInterface () |
|
virtual void | startListening () |
|
virtual void | stopListening () |
|
virtual void | enableUpdateMode () |
|
virtual void | disableUpdateMode () |
|
virtual void | sendPacket (std::shared_ptr< Packet > packet)=0 |
|
virtual bool | lifetick () |
|
virtual bool | isOpen () |
|
virtual uint32_t | responseDelay () |
|
virtual int64_t | lastPacketSent () |
|
virtual int64_t | lastPacketReceived () |
|
virtual void | setup (int32_t userID, int32_t groupID, bool setPermissions) |
|
virtual std::string | getType () |
|
virtual std::string | getID () |
|
virtual std::string | getSerialNumber () |
|
virtual std::string | getFirmwareVersion () |
|
virtual bool | isDefault () |
|
virtual bool | isNetworkDevice () |
|
virtual int32_t | getAddress () |
|
virtual std::string | getIpAddress () |
|
virtual std::string | getHostname () |
|
void | setRawPacketEvent (std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> value) |
|
| IEventsEx () |
|
virtual | ~IEventsEx () |
|
virtual PEventHandler | addEventHandler (IEventSinkBase *eventHandler) |
|
virtual std::vector< PEventHandler > | addEventHandlers (EventHandlers eventHandlers) |
|
virtual void | removeEventHandler (PEventHandler eventHandler) |
|
virtual EventHandlers | getEventHandlers () |
|
| IQueue (SharedObjects *baseLib, uint32_t queueCount, uint32_t bufferSize) |
| Constructor. More...
|
|
virtual | ~IQueue () |
|
void | startQueue (int32_t index, bool waitWhenFull, uint32_t processingThreadCount, int32_t threadPriority=0, int32_t threadPolicy=SCHED_OTHER) |
| Starts the threads of a queue. More...
|
|
void | startQueue (int32_t index, bool waitWhenFull, uint32_t initialProcessingThreadCount, uint32_t maxProcessingThreadCount) |
| Starts the threads of a queue using a thread count that can be increased later. More...
|
|
void | stopQueue (int32_t index) |
| Stops the threads of a queue previously started with startQueue() . More...
|
|
bool | queueIsStarted (int32_t index) |
| Checks if the specified queue has been started. More...
|
|
bool | addThread (int32_t index) |
| Start an additional thread. More...
|
|
bool | enqueue (int32_t index, std::shared_ptr< IQueueEntry > &entry, bool waitWhenFull=false) |
| Enqueues an item. More...
|
|
virtual void | processQueueEntry (int32_t index, std::shared_ptr< IQueueEntry > &entry)=0 |
| This method is called by the processing threads for each item to process. More...
|
|
bool | queueEmpty (int32_t index) |
| Checks if a queue is empty. More...
|
|
uint32_t | processingThreadCount (int32_t index) |
| Returns the number of processing threads. More...
|
|
uint32_t | maxProcessingThreadCount (int32_t index) |
| Returns the maximum number of processing threads. More...
|
|
int32_t | queueSize (int32_t index) |
| Returns the number of items queued in a queue. More...
|
|
double | threadLoad (int32_t index) |
|
double | maxThreadLoad (int32_t index) |
|
double | maxThreadLoad1m (int32_t index) |
|
double | maxThreadLoad10m (int32_t index) |
|
double | maxThreadLoad1h (int32_t index) |
|
int64_t | maxWait (int32_t index) |
|
int64_t | maxWait1m (int32_t index) |
|
int64_t | maxWait10m (int32_t index) |
|
int64_t | maxWait1h (int32_t index) |
|
| IQueueBase (SharedObjects *baseLib, uint32_t queueCount) |
|
virtual | ~IQueueBase () |
|
void | printQueueFullError (BaseLib::Output &out, const std::string &message) |
| Prints a rate limited (1 output per 10 seconds) error message and keeps count of error messages. More...
|
|
|
virtual void | raisePacketReceived (std::shared_ptr< Packet > packet) |
|
void | processQueueEntry (int32_t index, std::shared_ptr< BaseLib::IQueueEntry > &entry) override |
|
virtual void | setDevicePermission (int32_t userID, int32_t groupID) |
|
virtual void | openGPIO (uint32_t index, bool readOnly) |
|
virtual void | getGPIOPath (uint32_t index) |
|
virtual void | closeGPIO (uint32_t index) |
|
virtual bool | getGPIO (uint32_t index) |
|
virtual void | setGPIO (uint32_t index, bool value) |
|
virtual void | setGPIOPermission (uint32_t index, int32_t userID, int32_t groupID, bool readOnly) |
|
virtual void | exportGPIO (uint32_t index) |
|
virtual bool | setGPIODirection (uint32_t index, GPIODirection::Enum direction) |
|
virtual bool | setGPIOEdge (uint32_t index, GPIOEdge::Enum edge) |
|
virtual bool | gpioDefined (uint32_t) |
|
virtual bool | gpioOpen (uint32_t) |
|
virtual void | saveSettingToDatabase (std::string setting, std::string &value) |
|
virtual void | saveSettingToDatabase (std::string setting, int32_t value) |
|
virtual void | saveSettingToDatabase (std::string setting, std::vector< char > &value) |
|