Reference

ACE_ST_CORBA_Handler(3)

Handle single-threaded Orbix requests in conjunction with the ACE_Reactor.

NAME

ACE_ST_CORBA_Handler - Handle single-threaded Orbix requests in conjunction with the ACE_Reactor.

SYNOPSIS

#include <ace/CORBA_Handler.h>
class ACE_ST_CORBA_Handler : public ACE_CORBA_Handler
{
  public:
    static ACE_CORBA_Handler *instance (void);
    virtual int handle_input (ACE_HANDLE);
    virtual int suspend (void);
    virtual int resume (void);
    size_t iterations (void);
    void iterations (size_t);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    void get_orbix_descriptors (void);
    ACE_ST_CORBA_Handler (void);
    virtual ~ACE_ST_CORBA_Handler (void);
    static void insert_handle (ACE_HANDLE);
    static void remove_handle (ACE_HANDLE);
    static void instance_cleaner (void *object, void *param);
    static ACE_ST_CORBA_Handler *instance_;
    size_t iterations_;
    static int set_callbacks_;
    static OrbixIOCallback previous_orbix_open_callback_;
    static OrbixIOCallback previous_orbix_close_callback_;
};

DESCRIPTION

You should NOT use this class unless you've got a VERY old version of Orbix that only supports single-threading. If you're using a more recent version of Orbix use the ACE_MT_CORBA_Handler.

Singleton access point.

static ACE_CORBA_Handler *instance (void);

Returns a Singleton.

Demuxing hook.

virtual int handle_input (ACE_HANDLE);

Process the next Orbix event.

Dynamic linking hooks.

virtual int suspend (void);

Atomically suspend all the threads associated with the thr_mgr.

virtual int resume (void);

Atomically resume all the threads associated with the thr_mgr.

= Iterations dictate # of processNextEvent calls per-callback.

size_t iterations (void);

Get the current iteration.

void iterations (size_t);

Set the current iteration.

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

AUTHOR

Douglas C. Schmidt ([email protected]) and Irfan Pyarali ([email protected]).

LIBRARY

ace