#include <HxConfigureServant.h>
Inheritance diagram for HxObjectUsageServant::
Public Methods | |
HxObjectUsageServant (HxDataObjectManager *mgr) | |
virtual | ~HxObjectUsageServant () |
virtual CORBA::Long | getUsed (const char *unit) throw (CORBA::SystemException) |
virtual CORBA::Long | getTotalLimit (const char *unit) throw (CORBA::SystemException) |
virtual void | setTotalLimit (const char *unit, CORBA::Long limit) throw (CORBA::SystemException) |
virtual CORBA::Long | getObjectLimit (const char *unit) throw (CORBA::SystemException) |
virtual void | setObjectLimit (const char *unit, CORBA::Long limit) throw (CORBA::SystemException) |
virtual HxCorba::StringSeq * | listUnits () throw (CORBA::SystemException) |
virtual void | close () throw (CORBA::SystemException) |
|
00018 : _mgr(mgr) 00019 { 00020 } |
|
00023 { 00024 std::cout << "~HxObjectUsageServant" << std::endl; 00025 } |
|
00030 { 00031 return _mgr->getUsed(unit); 00032 } |
|
00037 { 00038 return _mgr->getTotalLimit(unit); 00039 } |
|
00044 { 00045 _mgr->setTotalLimit(unit, limit); 00046 } |
|
00051 { 00052 return _mgr->getObjectLimit(unit); 00053 } |
|
00058 { 00059 _mgr->setObjectLimit(unit, limit); 00060 } |
|
Reimplemented from POA_HxCorba::ObjectUsage.
00065 { 00066 HxStringList unitList; 00067 _mgr->getUnitList(std::back_inserter(unitList)); 00068 00069 HxCorba::StringSeq_var seq = new HxCorba::StringSeq(); 00070 seq->length(unitList.size()); 00071 00072 HxStringList::const_iterator it = unitList.begin(); 00073 for(int i=0; it != unitList.end(); i++, it++) 00074 seq[i] = it->c_str(); 00075 00076 return seq._retn(); 00077 } |
|
Reimplemented from POA_HxCorba::ObjectUsage.
00083 { 00084 PortableServer::POA_var rootPOA = HxServer::instance()->getRootPOA(); 00085 PortableServer::ObjectId_var oid = rootPOA->servant_to_id(this); 00086 rootPOA->deactivate_object(oid); 00087 } |