Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ObjCtxMan.cpp File Reference

More...

#include <iostream.h>
#include <OB/CORBA.h>
#include <OB/CosNaming.h>
#include "BridgeStub.h"
#include "ObjCtx.h"
#include "SoapBridge.h"
#include "SoapBridge_skel.h"

Go to the source code of this file.

Compounds

class  ContextCleaner
 The context cleaner background task. More...

class  SOAPBridge_ContextManager_i
 Class implementing IDL interface SOAPBridge::ContextManager. More...

class  SOAPBridge_ObjectContextManager_i
 Class implementing IDL interface SOAPBridge::ObjectContextManager. More...


Functions

void testValidTimeout (unsigned short toSec)
 Hardcoded implementation of the Context upper and lower timeout limits. More...

SqContextfindContext (const char *contextKey)
 Find and return the SqContext for a given contextKey or throw an exception. More...

char* storeObjRef (const char *contextKey, CORBA::Object_ptr objectReference)
 Store the object and return its stringified reference or throw an exception. More...

int main (int argn, char *argv[])
 Main entry point of the Object Context Manager. More...


Variables

SqContextManagerpCtxMan = NULL
 The actual Context Manager. More...

CORBA::ORB_ptr orb
 The ORB is global. More...

SOAPBridge_ContextManager_imySOAPBridge_ContextManager_i
 Used by the ObjectContextManager to call its inherited ContextManager functions. More...

SOAPBridge_ObjectContextManager_imySOAPBridge_ObjectContextManager_i
 For local access. More...

JTCMonitor contextMonitor
 Synchronize context management. More...


Detailed Description

Definition in file ObjCtxMan.cpp.


Function Documentation

SqContext * findContext ( const char * contextKey ) [static]
 

Find and return the SqContext for a given contextKey or throw an exception.

Definition at line 124 of file ObjCtxMan.cpp.

Referenced by SOAPBridge_ContextManager_i::freeContext(), SOAPBridge_ObjectContextManager_i::freeStoredObjectReference(), SOAPBridge_ObjectContextManager_i::listStoredIORs(), SOAPBridge_ContextManager_i::queryContextInfo(), SOAPBridge_ObjectContextManager_i::resolveStoredObjectReference(), SOAPBridge_ContextManager_i::setContextTimeout(), and SOAPBridge_ContextManager_i::setContextUserData().

int main ( int argc,
char * argv[] )
 

Main entry point of the Object Context Manager.

Definition at line 439 of file ObjCtxMan.cpp.

char * storeObjRef ( const char * contextKey,
CORBA::Object_ptr objectReference ) [static]
 

Store the object and return its stringified reference or throw an exception.

Definition at line 137 of file ObjCtxMan.cpp.

Referenced by main(), and SOAPBridge_ObjectContextManager_i::storeObjectReference().

void testValidTimeout ( unsigned short toSec ) [static]
 

Hardcoded implementation of the Context upper and lower timeout limits.

Definition at line 112 of file ObjCtxMan.cpp.

Referenced by SOAPBridge_ContextManager_i::allocateContext(), and SOAPBridge_ContextManager_i::setContextTimeout().


Variable Documentation

JTCMonitor contextMonitor
 

Synchronize context management.

Definition at line 109 of file ObjCtxMan.cpp.

SOAPBridge_ContextManager_i * mySOAPBridge_ContextManager_i [static]
 

Used by the ObjectContextManager to call its inherited ContextManager functions.

Definition at line 104 of file ObjCtxMan.cpp.

SOAPBridge_ObjectContextManager_i * mySOAPBridge_ObjectContextManager_i [static]
 

For local access.

Definition at line 106 of file ObjCtxMan.cpp.

CORBA::ORB_ptr orb [static]
 

The ORB is global.

Definition at line 101 of file ObjCtxMan.cpp.

SqContextManager * pCtxMan = NULL [static]
 

The actual Context Manager.

Definition at line 98 of file ObjCtxMan.cpp.


This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.