(file) Return to MessageQueueService.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/MessageQueueService.h between version 1.4 and 1.16

version 1.4, 2002/01/21 21:20:36 version 1.16, 2002/02/25 23:57:08
Line 40 
Line 40 
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   extern const Uint32 CIMOM_Q_ID;
  
 class message_module; class message_module;
  
Line 49 
Line 50 
  
       typedef MessageQueue Base;       typedef MessageQueue Base;
  
       MessageQueueService(const char *name, Uint32 queueID, Uint32 capabilities, Uint32 mask) ;        MessageQueueService(const char *name, Uint32 queueID,
                             Uint32 capabilities = 0,
                             Uint32 mask = message_mask::type_cimom |
                             message_mask::type_service |
                             message_mask::ha_request |
                             message_mask::ha_reply |
                             message_mask::ha_async ) ;
  
       virtual ~MessageQueueService(void);       virtual ~MessageQueueService(void);
  
Line 63 
Line 70 
       virtual void handle_CimServiceResume(CimServiceResume *req);       virtual void handle_CimServiceResume(CimServiceResume *req);
  
       virtual void handle_AsyncOperationStart(AsyncOperationStart *req);       virtual void handle_AsyncOperationStart(AsyncOperationStart *req);
       virtual void handle_AsyncOperationResult(AsyncOperationResult *req);        virtual void handle_AsyncOperationResult(AsyncOperationResult *rep);
         virtual void handle_AsyncLegacyOperationStart(AsyncLegacyOperationStart *req);
         virtual void handle_AsyncLegacyOperationResult(AsyncLegacyOperationResult *rep);
   
         virtual Boolean isAsync(void) {  return true;  }
   
       virtual Boolean accept_async(AsyncOpNode *op);       virtual Boolean accept_async(AsyncOpNode *op);
       virtual Boolean messageOK(const Message *msg) ;       virtual Boolean messageOK(const Message *msg) ;
  
         virtual void enqueue(Message *) throw(IPCException);
   
       AsyncReply *SendWait(AsyncRequest *request);       AsyncReply *SendWait(AsyncRequest *request);
         Boolean SendAsync(AsyncOpNode *op,
                           Uint32 destination,
                           void (*callback)(AsyncOpNode *, MessageQueue *, void *));
         Boolean  SendForget(Message *msg);
  
       void _completeAsyncResponse(AsyncRequest *request,       void _completeAsyncResponse(AsyncRequest *request,
                                  AsyncReply *reply,                                  AsyncReply *reply,
Line 76 
Line 94 
       Boolean register_service(String name, Uint32 capabilities, Uint32 mask);       Boolean register_service(String name, Uint32 capabilities, Uint32 mask);
       Boolean update_service(Uint32 capabilities, Uint32 mask);       Boolean update_service(Uint32 capabilities, Uint32 mask);
       Boolean deregister_service(void);       Boolean deregister_service(void);
         virtual void _shutdown_incoming_queue(void);
       void find_services(String name,       void find_services(String name,
                          Uint32 capabilities,                          Uint32 capabilities,
                          Uint32 mask,                          Uint32 mask,
Line 85 
Line 103 
       Uint32 get_next_xid(void);       Uint32 get_next_xid(void);
       AsyncOpNode *get_op(void);       AsyncOpNode *get_op(void);
       void return_op(AsyncOpNode *op);       void return_op(AsyncOpNode *op);
       Uint32 _capabilities;  
       Uint32 _mask;       Uint32 _mask;
       AtomicInt _die;       AtomicInt _die;
    protected:    protected:
       virtual void _handle_incoming_operation(AsyncOpNode *operation);        virtual void handleEnqueue(void) = 0;
         virtual void handleEnqueue(Message *) = 0;
         Boolean _enqueueResponse(Message *, Message *);
         virtual void _handle_incoming_operation(AsyncOpNode *operation, Thread *thread, MessageQueue *queue);
       virtual void _handle_async_request(AsyncRequest *req);       virtual void _handle_async_request(AsyncRequest *req);
       virtual void _make_response(AsyncRequest *req, Uint32 code);        virtual void _handle_async_callback(AsyncOpNode *operation);
       cimom *_meta_dispatcher;        virtual void _make_response(Message *req, Uint32 code);
   
         static cimom *_meta_dispatcher;
         static AtomicInt _service_count;
         static Mutex _meta_dispatcher_mutex;
   
  
    private:    private:
       void handleEnqueue();  
       DQueue<AsyncOpNode> _pending;       DQueue<AsyncOpNode> _pending;
       DQueue<AsyncOpNode> _incoming;        AsyncDQueue<AsyncOpNode> _incoming;
  
       static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL _req_proc(void *);       static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL _req_proc(void *);
         AtomicInt _incoming_queue_shutdown;
   
       Thread _req_thread;       Thread _req_thread;
  
       struct timeval _default_op_timeout;       struct timeval _default_op_timeout;
Line 108 
Line 136 
  
  
  
   
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2