summaryrefslogtreecommitdiff
path: root/DAnCE/dance/LocalityManager/Scheduler/Events/Endpoint.h
blob: dc33b544e5aef351a25ab006535b9123a1923b91 (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
/**
 * @file Endpoint.h
 * @author William R. Otte <wotte@dre.vanderbilt.edu>
 *
 */

#ifndef EVENT_ENDPOINT_H
#define EVENT_ENDPOINT_H

#include "dance/LocalityManager/Scheduler/Deployment_Scheduler_export.h"
#include "dance/LocalityManager/Scheduler/Events/Action_Base.h"
#include "dance/Deployment/Deployment_DeploymentPlanC.h"

namespace DAnCE
{
  /**
   * @class
   */
  class Deployment_Scheduler_Export Endpoint_Reference :
    public virtual Action_Base
  {
  public:
    Endpoint_Reference (::Deployment::DeploymentPlan & plan,
                        ::CORBA::ULong connectionRef,
                        const char *instance_type,
                        Event_Future holder);

    virtual ~Endpoint_Reference (void);

  protected:
    virtual void invoke_pre_interceptor (Plugin_Manager::INTERCEPTORS::const_iterator &);

    virtual void invoke (::DAnCE::InstanceDeploymentHandler_ptr);

    virtual void invoke_post_interceptor (Plugin_Manager::INTERCEPTORS::const_iterator &);

    virtual void create_unexpected_exception (const std::string &,
                                              const std::string &);

    virtual void create_valid_result (Event_Result &);

  private:
    ::Deployment::DeploymentPlan &plan_;
    ::CORBA::ULong connectionRef_;
    ::CORBA::Any_var ref_;
  };
}

#endif