blob: df1c1178422ce88e3c8eb54d9bfbaf4f6e8c9fc7 (
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
70
71
72
73
74
75
76
77
78
79
|
/* -*- IDL -*- */
//=============================================================================
/**
* @file FT_NamingReplication.idl
*
* $Id$
*
* This file is part of Fault Tolerant Naming Service in support of
* replication between redundant servers.
*
* @author Kevin Stanley <stanleyk@ociweb.com>
*/
//=============================================================================
#ifndef _FT_NAMING_REPLICATION_IDL_
#define _FT_NAMING_REPLICATION_IDL_
#include <orbsvcs/CosNaming.idl>
#include <orbsvcs/FT_NamingManager.idl>
#include <orbsvcs/FT_CORBA_ORB.idl>
module FT_Naming
{
enum ChangeType { NEW, UPDATED, DELETED };
exception NotAvailable
{
};
/*
* A structure that describes the updated element in a Naming Service
*/
struct NamingContextUpdate
{
/// The name of context being updated
string context_name;
/// The type of change that is being reported
ChangeType change_type;
};
struct ReplicaInfo
{
CosNaming::NamingContext root_context;
FT_Naming::NamingManager naming_manager;
};
/*
* A structure that describes the updated element within
* an Object Group Manager
*/
struct ObjectGroupUpdate
{
/// This is used to identify object group references.
PortableGroup::ObjectGroupId id;
/// The type of change that is being reported
ChangeType change_type;
};
interface ReplicationManager
{
/*
* Register with a peer replica providing an object reference for
* notification of updates. Each replica will maintain their state
* in a shared repository and the update notification indicates the
* element that was changed.
*/
ReplicaInfo register_replica (in ReplicationManager replica,
in ReplicaInfo replica_info)
raises (NotAvailable);
oneway void notify_updated_object_group(in ObjectGroupUpdate group_info);
oneway void notify_updated_context(in NamingContextUpdate context_info);
};
};
#endif // _FT_NAMING_REPLICATION_IDL_
|