Public Member Functions

TAO::Portable_Server::RequestProcessingStrategyAOMOnly Class Reference

#include <RequestProcessingStrategyAOMOnly.h>

Inheritance diagram for TAO::Portable_Server::RequestProcessingStrategyAOMOnly:
Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::RequestProcessingStrategyAOMOnly:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RequestProcessingStrategyAOMOnly (void)
PortableServer::ServantManager_ptr get_servant_manager (void)
void set_servant_manager (PortableServer::ServantManager_ptr imgr)
void set_servant (PortableServer::Servant servant)
PortableServer::Servant get_servant (void)
virtual TAO_SERVANT_LOCATION locate_servant (const PortableServer::ObjectId &system_id, PortableServer::Servant &servant)
virtual PortableServer::Servant locate_servant (const char *operation, const PortableServer::ObjectId &system_id, TAO::Portable_Server::Servant_Upcall &servant_upcall, TAO::Portable_Server::POA_Current_Impl &poa_current_impl, bool &wait_occurred_restart_call)
virtual PortableServer::Servant system_id_to_servant (const PortableServer::ObjectId &system_id)
virtual PortableServer::Servant id_to_servant (const PortableServer::ObjectId &id)
virtual void cleanup_servant (PortableServer::Servant servant, const PortableServer::ObjectId &user_id)
virtual void etherealize_objects (CORBA::Boolean etherealize_objects)
virtual PortableServer::ObjectIdservant_to_id (PortableServer::Servant servant)
virtual void post_invoke_servant_cleanup (const PortableServer::ObjectId &system_id, const TAO::Portable_Server::Servant_Upcall &servant_upcall)
virtual
::PortableServer::RequestProcessingPolicyValue 
type () const

Detailed Description

Request Processing Strategy which only uses the Active Object Map (AOM)

Definition at line 37 of file RequestProcessingStrategyAOMOnly.h.


Constructor & Destructor Documentation

TAO::Portable_Server::RequestProcessingStrategyAOMOnly::RequestProcessingStrategyAOMOnly ( void   ) 

Definition at line 20 of file RequestProcessingStrategyAOMOnly.cpp.

    {
    }


Member Function Documentation

void TAO::Portable_Server::RequestProcessingStrategyAOMOnly::cleanup_servant ( PortableServer::Servant  servant,
const PortableServer::ObjectId user_id 
) [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 101 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      if (servant)
        {
          // ATTENTION: Trick locking here, see class header for details
          Non_Servant_Upcall non_servant_upcall (*this->poa_);
          ACE_UNUSED_ARG (non_servant_upcall);

          servant->_remove_ref ();
        }

      // This operation causes the association of the Object Id specified
      // by the oid parameter and its servant to be removed from the
      // Active Object Map.
      if (this->poa_->unbind_using_user_id (user_id) != 0)
        {
          throw ::CORBA::OBJ_ADAPTER ();
        }
    }

void TAO::Portable_Server::RequestProcessingStrategyAOMOnly::etherealize_objects ( CORBA::Boolean  etherealize_objects  )  [virtual]
PortableServer::Servant TAO::Portable_Server::RequestProcessingStrategyAOMOnly::get_servant ( void   )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 47 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      throw PortableServer::POA::WrongPolicy ();
    }

PortableServer::ServantManager_ptr TAO::Portable_Server::RequestProcessingStrategyAOMOnly::get_servant_manager ( void   )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 27 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      throw PortableServer::POA::WrongPolicy ();
    }

PortableServer::Servant TAO::Portable_Server::RequestProcessingStrategyAOMOnly::id_to_servant ( const PortableServer::ObjectId id  )  [virtual]
TAO_SERVANT_LOCATION TAO::Portable_Server::RequestProcessingStrategyAOMOnly::locate_servant ( const PortableServer::ObjectId system_id,
PortableServer::Servant servant 
) [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 55 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      return this->poa_->servant_present (system_id, servant);
    }

PortableServer::Servant TAO::Portable_Server::RequestProcessingStrategyAOMOnly::locate_servant ( const char *  operation,
const PortableServer::ObjectId system_id,
TAO::Portable_Server::Servant_Upcall &  servant_upcall,
TAO::Portable_Server::POA_Current_Impl &  poa_current_impl,
bool &  wait_occurred_restart_call 
) [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 63 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      PortableServer::Servant servant = 0;

      servant = this->poa_->find_servant (system_id,
                                          servant_upcall,
                                          poa_current_impl);

      if (servant == 0)
        {
          throw ::CORBA::OBJECT_NOT_EXIST (
            CORBA::OMGVMCID | 2,
            CORBA::COMPLETED_NO);
        }

      return servant;
    }

void TAO::Portable_Server::RequestProcessingStrategyAOMOnly::post_invoke_servant_cleanup ( const PortableServer::ObjectId system_id,
const TAO::Portable_Server::Servant_Upcall &  servant_upcall 
) [virtual]
PortableServer::ObjectId * TAO::Portable_Server::RequestProcessingStrategyAOMOnly::servant_to_id ( PortableServer::Servant  servant  )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 130 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      return this->poa_->servant_to_user_id (servant);
    }

void TAO::Portable_Server::RequestProcessingStrategyAOMOnly::set_servant ( PortableServer::Servant  servant  )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 40 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      throw PortableServer::POA::WrongPolicy ();
    }

void TAO::Portable_Server::RequestProcessingStrategyAOMOnly::set_servant_manager ( PortableServer::ServantManager_ptr  imgr  )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 33 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      throw PortableServer::POA::WrongPolicy ();
    }

PortableServer::Servant TAO::Portable_Server::RequestProcessingStrategyAOMOnly::system_id_to_servant ( const PortableServer::ObjectId system_id  )  [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 87 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      return this->poa_->find_servant (system_id);
    }

PortableServer::RequestProcessingPolicyValue TAO::Portable_Server::RequestProcessingStrategyAOMOnly::type ( void   )  const [virtual]

Implements TAO::Portable_Server::RequestProcessingStrategy.

Definition at line 144 of file RequestProcessingStrategyAOMOnly.cpp.

    {
      return ::PortableServer::USE_ACTIVE_OBJECT_MAP_ONLY;
    }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines