#include <Trader.h>
Collaboration diagram for TAO_Import_Attributes_i:
Contains a reference to the trader from which it is used so it can use trader's lock.
Definition at line 236 of file Trader.h.
TAO_Import_Attributes_i::TAO_Import_Attributes_i | ( | TAO_Lockable & | locker | ) |
Definition at line 264 of file Trader.cpp.
00265 : locker_ (locker), 00266 def_search_card_ (200), 00267 max_search_card_ (500), 00268 def_match_card_ (200), 00269 max_match_card_ (500), 00270 def_return_card_ (200), 00271 max_return_card_ (500), 00272 max_list_ (0), 00273 def_hop_count_ (5), 00274 max_hop_count_ (10), 00275 def_follow_policy_ (CosTrading::if_no_local), 00276 max_follow_policy_ (CosTrading::always) 00277 { 00278 }
TAO_Import_Attributes_i::~TAO_Import_Attributes_i | ( | void | ) |
void TAO_Import_Attributes_i::def_follow_policy | ( | CosTrading::FollowOption | ) |
Definition at line 448 of file Trader.cpp.
References ACE_WRITE_GUARD, def_follow_policy_, and max_follow_policy_.
00449 { 00450 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00451 00452 if (new_value > this->max_follow_policy_) 00453 this->def_follow_policy_ = this->max_follow_policy_; 00454 else 00455 this->def_follow_policy_ = new_value; 00456 }
CosTrading::FollowOption TAO_Import_Attributes_i::def_follow_policy | ( | void | ) | const |
Definition at line 441 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, def_follow_policy_, and CosTrading::local_only.
Referenced by TAO_Import_Attributes< IF >::def_follow_policy(), TAO_Policies::link_follow_rule(), and TAO_Trader_Factory::manufacture_trader().
00442 { 00443 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::local_only); 00444 return this->def_follow_policy_; 00445 }
void TAO_Import_Attributes_i::def_hop_count | ( | CORBA::ULong | ) |
Definition at line 413 of file Trader.cpp.
References ACE_WRITE_GUARD, def_hop_count_, and max_hop_count_.
00414 { 00415 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00416 00417 if (new_value > this->max_hop_count_) 00418 this->def_hop_count_ = this->max_hop_count_; 00419 else 00420 this->def_hop_count_ = new_value; 00421 }
CORBA::ULong TAO_Import_Attributes_i::def_hop_count | ( | void | ) | const |
Definition at line 406 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and def_hop_count_.
Referenced by TAO_Import_Attributes< IF >::def_hop_count(), TAO_Trader_Factory::manufacture_trader(), and TAO_Policies::ulong_prop().
00407 { 00408 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); 00409 return this->def_hop_count_; 00410 }
void TAO_Import_Attributes_i::def_match_card | ( | CORBA::ULong | ) |
Definition at line 329 of file Trader.cpp.
References ACE_WRITE_GUARD, def_match_card_, and max_match_card_.
00330 { 00331 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00332 00333 if (new_value > this->max_match_card_) 00334 this->def_match_card_ = this->max_match_card_; 00335 else 00336 this->def_match_card_ = new_value; 00337 }
CORBA::ULong TAO_Import_Attributes_i::def_match_card | ( | void | ) | const |
Definition at line 322 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and def_match_card_.
Referenced by TAO_Import_Attributes< IF >::def_match_card(), TAO_Trader_Factory::manufacture_trader(), and TAO_Policies::ulong_prop().
00323 { 00324 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00325 return this->def_match_card_; 00326 }
void TAO_Import_Attributes_i::def_return_card | ( | CORBA::ULong | ) |
Definition at line 364 of file Trader.cpp.
References ACE_WRITE_GUARD, def_return_card_, and max_return_card_.
00365 { 00366 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00367 00368 if (new_value > this->max_return_card_) 00369 this->def_return_card_ = this->max_return_card_; 00370 else 00371 this->def_return_card_ = new_value; 00372 }
CORBA::ULong TAO_Import_Attributes_i::def_return_card | ( | void | ) | const |
Definition at line 357 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and def_return_card_.
Referenced by TAO_Import_Attributes< IF >::def_return_card(), TAO_Trader_Factory::manufacture_trader(), and TAO_Policies::ulong_prop().
00358 { 00359 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00360 return this->def_return_card_; 00361 }
void TAO_Import_Attributes_i::def_search_card | ( | CORBA::ULong | ) |
Definition at line 293 of file Trader.cpp.
References ACE_WRITE_GUARD, def_search_card_, and max_search_card_.
00294 { 00295 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00296 00297 if (new_value > this->max_search_card_) 00298 this->def_search_card_ = this->max_search_card_; 00299 else 00300 this->def_search_card_ = new_value; 00301 }
CORBA::ULong TAO_Import_Attributes_i::def_search_card | ( | void | ) | const |
Definition at line 286 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and def_search_card_.
Referenced by TAO_Import_Attributes< IF >::def_search_card(), TAO_Trader_Factory::manufacture_trader(), and TAO_Policies::ulong_prop().
00287 { 00288 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00289 return this->def_search_card_; 00290 }
void TAO_Import_Attributes_i::max_follow_policy | ( | CosTrading::FollowOption | ) |
Definition at line 466 of file Trader.cpp.
References ACE_WRITE_GUARD, def_follow_policy_, and max_follow_policy_.
00467 { 00468 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00469 this->max_follow_policy_ = new_value; 00470 00471 if (this->def_follow_policy_ > this->max_follow_policy_) 00472 this->def_follow_policy_ = this->max_follow_policy_; 00473 }
CosTrading::FollowOption TAO_Import_Attributes_i::max_follow_policy | ( | void | ) | const |
Definition at line 459 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, CosTrading::local_only, and max_follow_policy_.
Referenced by TAO_Policies::copy_in_follow_option(), TAO_Policies::link_follow_rule(), TAO_Trader_Factory::manufacture_trader(), and TAO_Import_Attributes< IF >::max_follow_policy().
00460 { 00461 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::local_only); 00462 return this->max_follow_policy_; 00463 }
void TAO_Import_Attributes_i::max_hop_count | ( | CORBA::ULong | ) |
Definition at line 431 of file Trader.cpp.
References ACE_WRITE_GUARD, def_hop_count_, and max_hop_count_.
00432 { 00433 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00434 this->max_hop_count_ = new_value; 00435 00436 if (this->def_hop_count_ > this->max_hop_count_) 00437 this->def_hop_count_ = this->max_hop_count_; 00438 }
CORBA::ULong TAO_Import_Attributes_i::max_hop_count | ( | void | ) | const |
Definition at line 424 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and max_hop_count_.
Referenced by TAO_Trader_Factory::manufacture_trader(), TAO_Import_Attributes< IF >::max_hop_count(), and TAO_Policies::ulong_prop().
00425 { 00426 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); 00427 return this->max_hop_count_; 00428 }
void TAO_Import_Attributes_i::max_list | ( | CORBA::ULong | ) |
Definition at line 399 of file Trader.cpp.
References ACE_WRITE_GUARD, and max_list_.
00400 { 00401 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00402 this->max_list_ = new_value; 00403 }
CORBA::ULong TAO_Import_Attributes_i::max_list | ( | void | ) | const |
Definition at line 392 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and max_list_.
Referenced by TAO_Import_Attributes< IF >::max_list().
00393 { 00394 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); 00395 return this->max_list_; 00396 }
void TAO_Import_Attributes_i::max_match_card | ( | CORBA::ULong | ) |
Definition at line 347 of file Trader.cpp.
References ACE_WRITE_GUARD, def_match_card_, and max_match_card_.
00348 { 00349 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00350 this->max_match_card_ = new_value; 00351 00352 if (this->def_match_card_ > this->max_match_card_) 00353 this->def_match_card_ = this->max_match_card_; 00354 }
CORBA::ULong TAO_Import_Attributes_i::max_match_card | ( | void | ) | const |
Definition at line 340 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and max_match_card_.
Referenced by TAO_Trader_Factory::manufacture_trader(), TAO_Import_Attributes< IF >::max_match_card(), and TAO_Policies::ulong_prop().
00341 { 00342 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00343 return this->max_match_card_; 00344 }
void TAO_Import_Attributes_i::max_return_card | ( | CORBA::ULong | ) |
Definition at line 382 of file Trader.cpp.
References ACE_WRITE_GUARD, def_return_card_, and max_return_card_.
00383 { 00384 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00385 this->max_return_card_ = new_value; 00386 00387 if (this->def_return_card_ > this->max_return_card_) 00388 this->def_return_card_ = this->max_return_card_; 00389 }
CORBA::ULong TAO_Import_Attributes_i::max_return_card | ( | void | ) | const |
Definition at line 375 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and max_return_card_.
Referenced by TAO_Trader_Factory::manufacture_trader(), TAO_Import_Attributes< IF >::max_return_card(), and TAO_Policies::ulong_prop().
00376 { 00377 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00378 return this->max_return_card_; 00379 }
void TAO_Import_Attributes_i::max_search_card | ( | CORBA::ULong | ) |
Definition at line 311 of file Trader.cpp.
References ACE_WRITE_GUARD, def_search_card_, and max_search_card_.
00312 { 00313 ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ()); 00314 00315 this->max_search_card_ = new_value; 00316 00317 if (this->def_search_card_ > this->max_search_card_) 00318 this->def_search_card_ = this->max_search_card_; 00319 }
CORBA::ULong TAO_Import_Attributes_i::max_search_card | ( | void | ) | const |
Definition at line 304 of file Trader.cpp.
References ACE_READ_GUARD_RETURN, and max_search_card_.
Referenced by TAO_Trader_Factory::manufacture_trader(), TAO_Import_Attributes< IF >::max_search_card(), and TAO_Policies::ulong_prop().
00305 { 00306 ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); 00307 return this->max_search_card_; 00308 }
Default link follow policy for a particular trader.
Definition at line 316 of file Trader.h.
Referenced by def_follow_policy(), and max_follow_policy().
Upper bound of depth of links to be traversed if <hop_count> is not specified.
Definition at line 310 of file Trader.h.
Referenced by def_hop_count(), and max_hop_count().
Upper bound of matched offers to be ordered if <match_card> is not specified).
Definition at line 293 of file Trader.h.
Referenced by def_match_card(), and max_match_card().
Upper bound of ordered offers to be returned if <returned_card> is not specified.
Definition at line 300 of file Trader.h.
Referenced by def_return_card(), and max_return_card().
Upper bound of offers to be searched if <search_card> is not specified.
Definition at line 286 of file Trader.h.
Referenced by def_search_card(), and max_search_card().
TAO_Lockable& TAO_Import_Attributes_i::locker_ [private] |
Limiting link follow policy for all links of the trader - overrides both link and importer policies.
Definition at line 320 of file Trader.h.
Referenced by def_follow_policy(), and max_follow_policy().
Maximum upper bound of depth of links to be traversed.
Definition at line 313 of file Trader.h.
Referenced by def_hop_count(), and max_hop_count().
Maximum upper bound of matched offers to be ordered.
Definition at line 296 of file Trader.h.
Referenced by def_match_card(), and max_match_card().
Maximum upper bound of ordered offers to be returned.
Definition at line 303 of file Trader.h.
Referenced by def_return_card(), and max_return_card().
Maximum upper bound of offers to be searched.
Definition at line 289 of file Trader.h.
Referenced by def_search_card(), and max_search_card().