Public Member Functions | Protected Attributes

ServerObject_i Class Reference

Class for pinging a server. Implementation Repository uses this to communicate with the IMR registered servers. More...

#include <ServerObject_i.h>

Collaboration diagram for ServerObject_i:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ServerObject_i (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
 Constructor.
void ping (void)
 Ping method.
void shutdown (void)
 Shutdown the server.
PortableServer::POA_ptr _default_POA (void)
 Returns the default POA for this servant.

Protected Attributes

CORBA::ORB_var orb_
PortableServer::POA_var poa_
 POA that we are registered with.

Detailed Description

Class for pinging a server. Implementation Repository uses this to communicate with the IMR registered servers.

Definition at line 39 of file ServerObject_i.h.


Constructor & Destructor Documentation

ServerObject_i::ServerObject_i ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa 
)

Constructor.

Definition at line 9 of file ServerObject_i.cpp.

  : orb_ (CORBA::ORB::_duplicate (orb)),
    poa_ (PortableServer::POA::_duplicate (poa))
{
}


Member Function Documentation

PortableServer::POA_ptr ServerObject_i::_default_POA ( void   ) 

Returns the default POA for this servant.

Definition at line 31 of file ServerObject_i.cpp.

{
  return PortableServer::POA::_duplicate (this->poa_.in ());
}

void ServerObject_i::ping ( void   ) 

Ping method.

Definition at line 17 of file ServerObject_i.cpp.

{
}

void ServerObject_i::shutdown ( void   ) 

Shutdown the server.

Definition at line 22 of file ServerObject_i.cpp.

{
  // Note : We want our child POAs to be able to unregister themselves from
  // the ImR, so we must destroy them before shutting down the orb.
  poa_->destroy(1, 0);
  this->orb_->shutdown (0);
}


Member Data Documentation

Our ORB. We need this member in case we need to shutdown the server.

Definition at line 58 of file ServerObject_i.h.

POA that we are registered with.

Definition at line 61 of file ServerObject_i.h.


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