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

SOAPBridge_ObjectContextManager_i Class Reference

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

Inheritance diagram for SOAPBridge_ObjectContextManager_i:

POA_SOAPBridge::ObjectContextManager PortableServer::RefCountServantBase List of all members.

Public Methods

void CleanupContexts ()
 Called at regular intervals to clean up old contexts. More...

 SOAPBridge_ObjectContextManager_i ()
 Constructor. More...

virtual ~SOAPBridge_ObjectContextManager_i ()
 Destructor. More...

char* storeObjectReference (const char *contextKey, CORBA::Object_ptr objectReference) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 Store an ObjectReference. More...

CORBA::Object_ptr resolveStoredObjectReference (const char *storedObjectReference) throw (CORBA::SystemException, SOAPBridge::ObjectContextManager::ObjectReferenceNotFound, SOAPBridge::ContextManager::ContextKeyNotFound)
 Resolve a stored object reference. More...

void freeStoredObjectReference (const char *storedObjectReference) throw (CORBA::SystemException, SOAPBridge::ObjectContextManager::ObjectReferenceNotFound, SOAPBridge::ContextManager::ContextKeyNotFound)
 Release a stored object reference. More...

SOAPBridge::ObjectContextManager::SOAPContextSeqlistCurrentContexts () throw (CORBA::SystemException)
 Returns a list of currently stored objects. More...

SOAPBridge::ObjectContextManager::StoredIORSeqlistStoredIORs (const char *contextKey) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 List the currently stored IOR's. More...

SOAPBridge::ContextManager::SOAPContextallocateContext (CORBA::UShort timeoutSeconds, const char *userData) throw (CORBA::SystemException, SOAPBridge::ContextManager::InvalidTimeout)
 Allocate a new context. More...

SOAPBridge::ContextManager::SOAPContextqueryContextInfo (const char *contextKey) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 Query a context. More...

void freeContext (const char *contextKey) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 Release a context. More...

void setContextUserData (const char *contextKey, const char *userData) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 Set the user data for a context. More...

void setContextTimeout (const char *contextKey, CORBA::UShort timeoutSeconds) throw (CORBA::SystemException, SOAPBridge::ContextManager::InvalidTimeout, SOAPBridge::ContextManager::ContextKeyNotFound)
 Set the timeout for a context. More...


Detailed Description

Class implementing IDL interface SOAPBridge::ObjectContextManager.

Definition at line 62 of file ObjCtxMan.cpp.


Constructor & Destructor Documentation

SOAPBridge_ObjectContextManager_i::SOAPBridge_ObjectContextManager_i ( )
 

Constructor.

Definition at line 232 of file ObjCtxMan.cpp.

SOAPBridge_ObjectContextManager_i::~SOAPBridge_ObjectContextManager_i ( ) [virtual]
 

Destructor.

Definition at line 237 of file ObjCtxMan.cpp.


Member Function Documentation

void SOAPBridge_ObjectContextManager_i::CleanupContexts ( )
 

Called at regular intervals to clean up old contexts.

Definition at line 410 of file ObjCtxMan.cpp.

Referenced by ContextCleaner::run().

SOAPBridge::ContextManager::SOAPContext * SOAPBridge_ObjectContextManager_i::allocateContext ( CORBA::UShort timeoutSeconds,
const char * userData ) throw (CORBA::SystemException, SOAPBridge::ContextManager::InvalidTimeout)
 

Allocate a new context.

Definition at line 374 of file ObjCtxMan.cpp.

void SOAPBridge_ObjectContextManager_i::freeContext ( const char * contextKey ) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Release a context.

Definition at line 388 of file ObjCtxMan.cpp.

void SOAPBridge_ObjectContextManager_i::freeStoredObjectReference ( const char * storedObjectReference ) throw (CORBA::SystemException, SOAPBridge::ObjectContextManager::ObjectReferenceNotFound, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Release a stored object reference.

Parameters:
storedObjectReference   The stored object reference that is no longer needed.

Definition at line 298 of file ObjCtxMan.cpp.

SOAPBridge::ObjectContextManager::SOAPContextSeq * SOAPBridge_ObjectContextManager_i::listCurrentContexts ( ) throw (CORBA::SystemException)
 

Returns a list of currently stored objects.

Definition at line 327 of file ObjCtxMan.cpp.

SOAPBridge::ObjectContextManager::StoredIORSeq * SOAPBridge_ObjectContextManager_i::listStoredIORs ( const char * contextKey ) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 

List the currently stored IOR's.

Parameters:
contextKey   The context to list.

Definition at line 351 of file ObjCtxMan.cpp.

SOAPBridge::ContextManager::SOAPContext * SOAPBridge_ObjectContextManager_i::queryContextInfo ( const char * contextKey ) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Query a context.

Definition at line 381 of file ObjCtxMan.cpp.

CORBA::Object_ptr SOAPBridge_ObjectContextManager_i::resolveStoredObjectReference ( const char * storedObjectReference ) throw (CORBA::SystemException, SOAPBridge::ObjectContextManager::ObjectReferenceNotFound, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Resolve a stored object reference.

Parameters:
storedObjectReference   The stored object reference to resolve.
Returns:
A CORBA::Object_ptr object reference we can call.

Definition at line 270 of file ObjCtxMan.cpp.

void SOAPBridge_ObjectContextManager_i::setContextTimeout ( const char * contextKey,
CORBA::UShort timeoutSeconds ) throw (CORBA::SystemException, SOAPBridge::ContextManager::InvalidTimeout, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Set the timeout for a context.

Definition at line 402 of file ObjCtxMan.cpp.

void SOAPBridge_ObjectContextManager_i::setContextUserData ( const char * contextKey,
const char * userData ) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Set the user data for a context.

Definition at line 395 of file ObjCtxMan.cpp.

char * SOAPBridge_ObjectContextManager_i::storeObjectReference ( const char * contextKey,
CORBA::Object_ptr objectReference ) throw (CORBA::SystemException, SOAPBridge::ContextManager::ContextKeyNotFound)
 

Store an ObjectReference.

Parameters:
contextKey   Key obtained through SOAPBridge::ContextManager::allocateContext()
objectReference   CORBA object reference to store

The objects are actually stored as stringified IOR's.
Todo:
Check if the object hasn't been stored in this context already

Get rid of old object references somehow even if the context hasn't timed out yet.

Definition at line 251 of file ObjCtxMan.cpp.


The documentation for this class was generated from the following file:
This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.