summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/FaultTolerance/FLARe/AppSideReg.h
blob: 98ff84e2db85741f741774d8b6cebfc6a7c01d82 (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
/**
 *  @file  C++ Interface: AppSideReg
 *
 *  @brief Declares interface for AppSideReg.
 *
 */

#ifndef __APPSIDEREG_H_
#define __APPSIDEREG_H_

#include "ace/Task.h"

#include "monitorC.h"
#include "AppSideMonitor_Thread.h"

#include <string>

/**
 *  @class  AppSideReg
 *
 *  @brief Encapsulates AppSideReg
 */

class ACE_Barrier;

class AppSideReg : public ACE_Task_Base
{
public:
    AppSideReg(ACE_Barrier *ext_b, CORBA::ORB_ptr);

    ~AppSideReg();

    virtual int svc (void);
    void unregister_process (void);

private:
    std::string HM_ior_;
    std::auto_ptr <AppSideMonitor_Thread> monitor_;
    HostMonitor_var hmvar_;
    CORBA::ORB_var orb_;
    ACE_Barrier *external_barrier_;
};



#endif /// __APPSIDEREG_H_