IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::core::ComputerInfoPool Class Reference

Singleton allowing to store local and remote informations about computers into processing pool. More...

#include <ComputerInfoPool.h>

Inheritance diagram for ipsdk::core::ComputerInfoPool:

Public Member Functions

bool isInit () const
 retrieve object initialization flag
 
BoolResult init (const LocalConfiguration &localConfiguration)
 initialization method for singleton instance
 
bool existsRemoteComputerInfo (const Guid &socketGuid) const
 check whether a given computer information exists into collection More...
 
RemoteComputerInfoConstPtr getRemoteComputerInfo (const Guid &socketGuid) const
 retrieve a given computer information from collection More...
 
void retrieveDirectSlaves (GuidSet &guidSet) const
 retrieve collection of direct slaves More...
 
void retrieveAllSlaves (GuidSet &guidSet) const
 retrieve collection of direct slaves More...
 
BoolResult addDirectSlave (const RemoteComputerInfoPtr &pRemoteComputerInfo)
 retrieve collection of all slaves More...
 
BoolResult addIndirectSlave (const RemoteComputerInfoPtr &pRemoteComputerInfo)
 add a new indirect slave to pool More...
 
BoolResult addComputer (const RemoteComputerInfoPtr &pRemoteComputerInfo)
 add a new computer to pool More...
 
BoolResult removeComputer (const Guid &socketGuid)
 remove a computer information from pool More...
 
void clear ()
 clear of object data
 
const LocalComputerInfogetLocalComputerInfoConst () const
 retrieve local computer informations associated to pool More...
 
LocalComputerInfogetLocalComputerInfo ()
 retrieve local computer informations associated to pool More...
 

Static Public Member Functions

static ComputerInfoPoolgetInstance ()
 retrieve single instance of object
 

Protected Member Functions

void clearInternal ()
 internal clear of object data
 
Constructors and destructors
 ComputerInfoPool ()
 
 ~ComputerInfoPool ()
 

Protected Attributes

LocalComputerInfo _localComputerInfo
 local computer informations associated to pool
 
RemoteComputerInfoMap _remoteComputerInfoMap
 collection of remote computer informations associated to pool
 
GuidSet _directSlaves
 collection of direct slaves guid
 
GuidSet _allSlaves
 
bool _bInit
 object initialization flag
 

Detailed Description

Singleton allowing to store local and remote informations about computers into processing pool.

Author
E. Noirfalise
Date
2013/12/2

Member Function Documentation

◆ getLocalComputerInfoConst()

const LocalComputerInfo& ipsdk::core::ComputerInfoPool::getLocalComputerInfoConst ( ) const

retrieve local computer informations associated to pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ getLocalComputerInfo()

LocalComputerInfo& ipsdk::core::ComputerInfoPool::getLocalComputerInfo ( )

retrieve local computer informations associated to pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ existsRemoteComputerInfo()

bool ipsdk::core::ComputerInfoPool::existsRemoteComputerInfo ( const Guid socketGuid) const

check whether a given computer information exists into collection

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ getRemoteComputerInfo()

RemoteComputerInfoConstPtr ipsdk::core::ComputerInfoPool::getRemoteComputerInfo ( const Guid socketGuid) const

retrieve a given computer information from collection

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false
Returns
a null pointer if not found

◆ retrieveDirectSlaves()

void ipsdk::core::ComputerInfoPool::retrieveDirectSlaves ( GuidSet guidSet) const

retrieve collection of direct slaves

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ retrieveAllSlaves()

void ipsdk::core::ComputerInfoPool::retrieveAllSlaves ( GuidSet guidSet) const

retrieve collection of direct slaves

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ addDirectSlave()

BoolResult ipsdk::core::ComputerInfoPool::addDirectSlave ( const RemoteComputerInfoPtr pRemoteComputerInfo)

retrieve collection of all slaves

add a new direct slave to pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false
Returns
false in case of failure

◆ addIndirectSlave()

BoolResult ipsdk::core::ComputerInfoPool::addIndirectSlave ( const RemoteComputerInfoPtr pRemoteComputerInfo)

add a new indirect slave to pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false
Returns
false in case of failure

◆ addComputer()

BoolResult ipsdk::core::ComputerInfoPool::addComputer ( const RemoteComputerInfoPtr pRemoteComputerInfo)

add a new computer to pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false
Returns
false in case of failure

◆ removeComputer()

BoolResult ipsdk::core::ComputerInfoPool::removeComputer ( const Guid socketGuid)

remove a computer information from pool

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false
Returns
false in case of failure

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