GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
IdleUserContainer Class Reference

IdleUserContainer Class. More...

#include <idleuser.h>

Inheritance diagram for IdleUserContainer:
IUpdate ISave

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 IdleUserContainerLoad (ByteBuffer &bb)
 Loads IdleUserContainer data from a ByteBuffer.
 

Private Attributes

std::unordered_map< uint,
IdleUser * > 
_hashTable
 Underlying container.
 

Detailed Description

IdleUserContainer Class.

IdleUserContainer is used to store and manage IdleUsers

Member Function Documentation

const std::unordered_map<uint, IdleUser*>& IdleUserContainer::GetContainer ( ) const

Returns the underlying container.

void IdleUserContainer::InsertUser ( IdleUser user)

Inserts an IdleUser in the table.

IdleUserContainer * IdleUserContainer::Load ( ByteBuffer bb)
static

Loads IdleUserContainer data from a ByteBuffer.

bool IdleUserContainer::Save ( ByteBuffer bb) const
virtual

Saves IdleUserContainer data to a ByteBuffer.

Implements ISave.

void IdleUserContainer::Update ( uint32  diff)
virtual

Updates all the stored IdleUser and removes users who were here for too long (see REMOVAL_TIME_SECS)

Implements IUpdate.

Member Data Documentation

std::unordered_map<uint, IdleUser*> IdleUserContainer::_hashTable
private

Underlying container.


The documentation for this class was generated from the following files: