summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LWFT/AppInfo.idl
blob: b243728626ecc73cf9f86d9fc238528d47a3094a (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
59
60
61
62
63
64
65
66
67
68
69
// -*- IDL -*-

//=============================================================================
/**
 *  @file    AppInfo.idl
 *
 *  $Id$
 *
 *  @author  Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
 */
//=============================================================================

#ifndef _LWFT_APPINFO_IDL_
#define _LWFT_APPINFO_IDL_

#include "LWFTDataStructures.idl"
#include "StateSynchronizationAgent.idl"

module FLARE
{
  module ReplicationManager
  {
    enum AppRole
    {
      PRIMARY,
      BACKUP
    };

    struct AppInfo
    {
      string object_id;
      double load;
      string host_name;
      string process_id;
      AppRole role;
      Object ior;
    };

    typedef sequence<AppInfo> AppInfoSeq;

    typedef ObjectList AgentList;

    struct StateSyncAgentEntry
    {
      StateSynchronizationAgent agent;
      string process_id;
    };

    typedef sequence<StateSyncAgentEntry> StateSyncAgentEntries;

    struct HostUtil
    {
      string hostname;
      double utilization;
    };

    typedef sequence<HostUtil> HostUtilSeq;

    struct ReplicationManagerState
    {
      AppInfoSeq app_set_list;
      AgentList forwarding_agents;
      StateSyncAgentEntries state_sync_agents;
      HostUtilSeq utilization;
    };
  }; // end module ReplicationManager
}; // end module FLARE

#endif /* _LWFT_APPINFO_IDL_ */