summaryrefslogtreecommitdiff
path: root/TAO/tao/Invocation_Utils.h
blob: 93c748dae99b8b75d38573995976e46b238a30f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// -*- C++ -*-

//=============================================================================
/**
 *  @file    Invocation_Utils.h
 *
 *  $Id$
 *
 *
 *  @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
 */
//=============================================================================

#ifndef TAO_INVOCATION_UTILS_H
#define TAO_INVOCATION_UTILS_H
#include "ace/pre.h"
#include "ace/config-all.h"

namespace TAO
{
  enum Invocation_Status
    {
      TAO_INVOKE_START,
      /// The request must be restarted, a temporary failure has ocurred.
      TAO_INVOKE_RESTART,
      /// invoke() call successful.
      TAO_INVOKE_SUCCESS,
      TAO_INVOKE_USER_EXCEPTION,
      TAO_INVOKE_SYSTEM_EXCEPTION,
      TAO_INVOKE_FAILURE
    };

  /// Enums for invocation types
  enum Invocation_Type {
    TAO_ONEWAY_INVOCATION,
    TAO_TWOWAY_INVOCATION,
    TAO_LOCATEREQUEST_INVOCATION
  };

  /// Enum for invocation modes
  enum Invocation_Mode {
    /// Standard synchronous twoway
    TAO_SYNCHRONOUS_INVOCATION,
    /// Asynchronous twoway with callback model for collecting the
    /// replies.
    TAO_ASYNCHRONOUS_CALLBACK_INVOCATION,
    /// Asynchronous twoway with poller model for collecting the
    /// replies.
    /// @NOTE: This is not supported in TAO now
    TAO_ASYNCHRONOUS_POLLER_INVOCATION,
    ///
    TAO_DII_INVOCATION,
    TAO_DII_DEFERRED_INVOCATION
  };
};

#include "ace/post.h"
#endif /*TAO_INVOCATION_BASE_H*/