GridComputing
Job Management in Grid Computing
|
IdleUserContainer Class. More...
#include <idleuser.h>
Public Member Functions | |
const std::unordered_map< uint, IdleUser * > & | GetContainer () const |
Returns the underlying container. | |
void | InsertUser (IdleUser *user) |
Inserts an IdleUser in the table. | |
virtual bool | Save (ByteBuffer &bb) const |
Saves IdleUserContainer data to a ByteBuffer. | |
virtual void | Update (uint32 diff) |
Updates all the stored IdleUser and removes users who were here for too long (see REMOVAL_TIME_SECS) | |
Static Public Member Functions | |
static IdleUserContainer * | Load (ByteBuffer &bb) |
Loads IdleUserContainer data from a ByteBuffer. | |
Private Attributes | |
std::unordered_map< uint, IdleUser * > | _hashTable |
Underlying container. | |
IdleUserContainer Class.
IdleUserContainer is used to store and manage IdleUsers
Returns the underlying container.
|
static |
Loads IdleUserContainer data from a ByteBuffer.
|
virtual |
Saves IdleUserContainer data to a ByteBuffer.
Implements ISave.
|
virtual |