![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
#include "ReuserDatabaseHandler.hpp"#include "ReuserState.hpp"#include "ReuserTypes.hpp"#include "libfossologyCPP.hpp"#include "libfossagent.h"#include "libfossscheduler.h"

Go to the source code of this file.
Macros | |
| #define | AGENT_NAME "reuser" |
| #define | AGENT_DESC "reuser agent" |
| #define | AGENT_ARS "reuser_ars" |
Functions | |
| ReuserState | getState (fo::DbManager &dbManager) |
| Create a ReuserState from the database (registers agent key). More... | |
| int | queryAgentId (fo::DbManager &dbManager) |
| Query and register the agent id. Bails on failure. More... | |
| int | writeARS (const ReuserState &state, int arsId, int uploadId, int success, fo::DbManager &dbManager) |
| Write (insert/update) an ARS record. | |
| void | bail (int exitval) |
| Disconnect scheduler and exit. More... | |
| bool | processUploadId (const ReuserState &, int uploadId, ReuserDatabaseHandler &databaseHandler) |
| Process one upload through all active reuse relationships. | |
Agent constants and free utility functions for the reuser agent. Mirrors OjoUtils.hpp from the ojo agent.
Definition in file ReuserUtils.hpp.
| void bail | ( | int | exitval | ) |
Disconnect scheduler and exit.
Disconnect scheduler and exit in case of failure.
| exitval | Exit code to be sent to scheduler and returned by program |
Disconnect scheduler and exit.
| exitval | Error code |
Disconnect scheduler and exit.
Disconnect scheduler and exit in case of failure.
| exitval | Exit code to be sent to scheduler and returned by program |
| exitval | Error code |
Disconnect scheduler and exit.
Disconnect scheduler and exit in case of failure.
| exitval | Exit code to be sent to scheduler and returned by program |
Definition at line 90 of file CompatibilityUtils.cc.
| ReuserState getState | ( | DbManager & | dbManager | ) |
Create a ReuserState from the database (registers agent key).
Create a ReuserState from the database (registers agent key).
| dbManager | DBManager to be used |
| int queryAgentId | ( | DbManager & | dbManager | ) |
Query and register the agent id. Bails on failure.
Query the agent ID from the DB.
| dbManager | DbManager to be used |
Definition at line 48 of file CompatibilityUtils.cc.