blob: 9bf56d853849778a92946f2de9596df11c9f4bc7 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Replication_Strategy.h
*
* $Id$
*
* @author Huang-Ming Huang <hh1@cse.wustl.edu>
*/
//=============================================================================
#ifndef REPLICATION_STRATEGY_H
#define REPLICATION_STRATEGY_H
#include "orbsvcs/FtRtecEventChannelAdminC.h"
#include "tao/PortableInterceptorC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class TAO_FTEC_Event_Channel_Impl;
class Replication_Strategy
{
public:
Replication_Strategy();
virtual ~Replication_Strategy();
virtual void check_validity(ACE_ENV_SINGLE_ARG_DECL);
typedef void (FtRtecEventChannelAdmin::EventChannelFacade::*RollbackOperation)
(const FtRtecEventChannelAdmin::ObjectId& ACE_ENV_ARG_DECL_WITH_DEFAULTS);
virtual void replicate_request(const FTRT::State& state,
RollbackOperation rollback,
const FtRtecEventChannelAdmin::ObjectId& oid
ACE_ENV_ARG_DECL)=0;
virtual Replication_Strategy* make_primary_strategy();
virtual int acquire_read (void)=0;
virtual int acquire_write (void)=0;
virtual int release (void)=0;
};
#endif
|