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

tweek Namespace Reference


Compounds

class  tweek::CorbaService
 This is a convenience class that wraps all CORBA functionality that will be needed by Tweek client code. More...

class  tweek::BeanDeliverySubjectImpl
 Implementation of tweek::BeanDeliverySubject IDL interface. More...

struct  tweek::BeanDeliverySubjectImpl::BeanData
 A handy container for all information relating to a JavaBean. More...

class  tweek::CorbaManager
struct  tweek::RemovePred
class  tweek::SubjectImpl
 CORBA servant for the tweek::Subject interface (the implementation of the interface). More...

class  tweek::SubjectManagerImpl
 This class provides a simplified level of access to CORBA references. More...

struct  tweek::BeanInfo
 A handy container for all information relating to a JavaBean, including the complete Java JAR file that contains the Bean. More...

interface  tweek::BeanDeliverySubject
 The interface that is used to manage information about JavaBeans that can be delivered from the server to a client. More...

interface  tweek::Observer
 The interface that all observers (written in any programming language) must implement. More...

interface  tweek::Subject
 The most basic interface of all Tweek subjects. More...

interface  tweek::SubjectManager
 The interface to Tweek SubjectManager instances. More...

struct  tweek::SubjectManager::RegisteredSubject
 A container used to transport information about subjects registered with the Subject Manager. More...

struct  tweek::SubjectManager::SubjectMgrInfoItem
 A simple key/value pair container for passing around informational items about the Subject Manager. More...


Typedefs

typedef sequence< string > BeanNameList
typedef sequence< octet > BeanStream

Functions

CosNaming::NamingContext_var getRootNamingContextByInitRef (CORBA::ORB_ptr orb)
 Gets the root context for the CORBA Naming Service using the ORB's "resolve initial references" capabilities and therefore requires that the reference be accessible to the ORB through appropriate means. More...

CosNaming::NamingContext_var getRootNamingContextByURI (CORBA::ORB_ptr orb, const std::string &nameServiceURI)
 Gets the root context for the CORBA Naming Service using the given URI. More...

CosNaming::NamingContext_var bindLocalNamingContext (CosNaming::NamingContext_ptr parentContext, const std::string &localId)
 Binds a local Naming Context for this memory space. More...

std::string getVersionString ()
vpr::Uint32 getVersionNumber ()
 TWEEK_API (std::string) getVersionString(void)
 TWEEK_API (vpr::Uint32) getVersionNumber(void)


Typedef Documentation

typedef sequence<string> tweek::BeanNameList
 

Definition at line 45 of file BeanDeliverySubject.idl.

Referenced by tweek::BeanDeliverySubjectImpl::getAllBeanNames.

typedef sequence<octet> tweek::BeanStream
 

Definition at line 46 of file BeanDeliverySubject.idl.


Function Documentation

CosNaming::NamingContext_var tweek::getRootNamingContextByInitRef CORBA::ORB_ptr    orb
 

Gets the root context for the CORBA Naming Service using the ORB's "resolve initial references" capabilities and therefore requires that the reference be accessible to the ORB through appropriate means.

Parameters:
orb  The reference to the ORB in this memory space.
Precondition:
The Naming Service reference is available through the ORB's "resolve initial referneces" feature.
Postcondition:
The root context is retrieved through the given ORB pointer.

Definition at line 51 of file CorbaHelpers.cpp.

Referenced by tweek::CorbaManager::init.

00052 {
00053 #ifdef OMNIORB_VER
00054    // If the user does not have the OMNIORB_CONFIG environment variable set,
00055    // there will most likely be problems finding and/or contacting the
00056    // Naming Service.  To that end, print a warning saying as much when the
00057    // variable is not set.
00058    std::string temp;
00059    if ( vpr::System::getenv("OMNIORB_CONFIG", temp).failure() )
00060    {
00061       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00062          << clrOutBOLD(clrYELLOW, "WARNING: OMNIORB_CONFIG not set!")
00063          << "  Expect problems contacting the Naming Service\n"
00064          << vprDEBUG_FLUSH;
00065    }
00066 #endif
00067 
00068    CORBA::Object_var name_obj;
00069    CosNaming::NamingContext_var root_context;
00070 
00071    vprDEBUG(tweekDBG_CORBA, vprDBG_STATE_LVL) << "Requesting Name Service\n"
00072                                               << vprDEBUG_FLUSH;
00073    name_obj     = orb->resolve_initial_references("NameService");
00074    root_context = CosNaming::NamingContext::_narrow(name_obj);
00075 
00076    if ( CORBA::is_nil(root_context) )
00077    {
00078       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00079          << "Failed to narrow Naming Service root context\n"
00080          << vprDEBUG_FLUSH;
00081    }
00082 
00083    return root_context;
00084 }

CosNaming::NamingContext_var tweek::getRootNamingContextByURI CORBA::ORB_ptr    orb,
const std::string &    nameServiceURI
 

Gets the root context for the CORBA Naming Service using the given URI.

Parameters:
orb  The reference to the ORB in this memory space.
nameServiceURI  The URI to be used for looking up the Naming Service reference. This can be a corbaname or a corbaloc URI.
Postcondition:
The root context is retrieved through the given ORB pointer.

Definition at line 86 of file CorbaHelpers.cpp.

Referenced by tweek::CorbaService::init, and tweek::CorbaManager::init.

00088 {
00089    CORBA::Object_var name_obj;
00090    CosNaming::NamingContext_var root_context;
00091 
00092    vprDEBUG(tweekDBG_CORBA, vprDBG_STATE_LVL) << "Requesting Name Service\n"
00093                                               << vprDEBUG_FLUSH;
00094    name_obj     = orb->string_to_object(nameServiceURI.c_str());
00095    root_context = CosNaming::NamingContext::_narrow(name_obj);
00096 
00097    if ( CORBA::is_nil(root_context) )
00098    {
00099       vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00100          << "Failed to narrow Naming Service root context\n"
00101          << vprDEBUG_FLUSH;
00102    }
00103 
00104    return root_context;
00105 }

CosNaming::NamingContext_var tweek::bindLocalNamingContext CosNaming::NamingContext_ptr    parentContext,
const std::string &    localId
 

Binds a local Naming Context for this memory space.

Parameters:
parentContext  The parent context within which the local context will be created.
localId  The user-specified identifier for the context.
Postcondition:
A sub-context is created within the given root naming context.

Definition at line 107 of file CorbaHelpers.cpp.

Referenced by tweek::CorbaService::init, and tweek::CorbaManager::init.

00109 {
00110    vprASSERT(! CORBA::is_nil(parentContext) && "Root context is invalid");
00111 
00112    std::string kind("context");
00113    CosNaming::Name tweek_context_name;
00114 
00115    tweek_context_name.length(1);
00116    tweek_context_name[0].id   = CORBA::string_dup(localId.c_str());
00117    tweek_context_name[0].kind = CORBA::string_dup(kind.c_str());
00118 
00119    CosNaming::NamingContext_var local_context;
00120 
00121    try
00122    {
00123       local_context = parentContext->bind_new_context(tweek_context_name);
00124    }
00125    catch (CosNaming::NamingContext::AlreadyBound& ex)
00126    {
00127       CORBA::Object_var temp_obj;
00128 
00129       temp_obj      = parentContext->resolve(tweek_context_name);
00130       local_context = CosNaming::NamingContext::_narrow(temp_obj);
00131 
00132       if ( CORBA::is_nil(local_context) )
00133       {
00134          vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
00135             << "Failed to narrow Naming Service to local Tweek context\n"
00136             << vprDEBUG_FLUSH;
00137       }
00138    }
00139 
00140    return local_context;
00141 }

std::string getVersionString  
 

Definition at line 46 of file Version.cpp.

Referenced by tweek::CorbaManager::CorbaManager, and tweek::CorbaService::CorbaService.

00047 {
00048    return std::string(TWEEK_VERSION);
00049 }

vpr::Uint32 getVersionNumber  
 

Definition at line 51 of file Version.cpp.

00052 {
00053    return __TWEEK_version;
00054 }

TWEEK_API std::string   
 

TWEEK_API vpr::Uint32   
 


Generated on Sun May 2 14:41:08 2004 for Tweek by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002