BoilerPlate-LightweightLogging Service OMG Formal/03-11-03 |
#include <LogConsumerActivator_Impl.h>
Collaboration diagram for LogConsumerActivator_Impl:
ServantActivator implemenation for managing LogConsumer activations and deactivations. The LogConsumerActivator uses a least recently used strategy to evict LogConsumers and deactivate them. Eviction occurs when the number of active LogConsumer references exceeds the maximum queue size. The maximum queue size is set at runtime using b -BPconsumer_q_size=integer command line parameter ( Mandatory ).
This Activator is also an EvictionMngr. Instances of classes under the management of an EvictionMngr are responsible for telling the Mngr that it has received an invocation. This EvictionMngr uses the invocation message to place the Evictable's marker on the tail of the consumer que. The Consumer_Impl that was the least recently invoked upon will be the first choice for Eviction
Public Member Functions | |
LogConsumerActivator_Impl (const unsigned long q_size, LogState &state) | |
virtual | ~LogConsumerActivator_Impl () |
virtual PortableServer::Servant | incarnate (const PortableServer::ObjectId &oid, PortableServer::POA_ptr adapter) throw (CORBA::SystemException, PortableServer::ForwardRequest) |
Override the PortableServer::ServantActivator operation. | |
virtual void | etherealize (const PortableServer::ObjectId &oid, PortableServer::POA_ptr poa, PortableServer::Servant servant, CORBA::Boolean cleanup_in_progress, CORBA::Boolean activations_remain) throw (CORBA::SystemException) |
Override the PortableServer::ServantActivator operation. | |
virtual void | invocation_active (const std::string &evictable_id) |
|
ctor Initializes all instance utililities
|
|
dtor Currently does nothing |
|
Override the PortableServer::ServantActivator operation. Called by the POA when an Object Reference is deactivated to facilitate cleaning up any state that might have been used by the Servant that was activated using the incarnate operation
|
|
Override the PortableServer::ServantActivator operation. Called by the POA that this ServantManager is registered with to activate a servant for an individual Object Reference
|
|
Comply with the EvictionMngr contrac Used by an Evictable to notify the EvictionMngr that the Evictable is servicing a request
|
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:33:11 2004 for BoilerPlate CosLightweightLogging Service by 1.3.7 |