lb_loadalert.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 87 行
H
87 行
// -*- C++ -*-
//=============================================================================
/**
* @file LB_LoadAlert.h
*
* LB_LoadAlert.h,v 1.6 2003/07/21 23:51:31 dhinton Exp
*
* @author Ossama Othman <ossama@uci.edu>
*/
//=============================================================================
#ifndef TAO_LB_LOAD_ALERT_H
#define TAO_LB_LOAD_ALERT_H
#include /**/ "ace/pre.h"
#include "orbsvcs/CosLoadBalancingS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/PortableGroupC.h"
class TAO_LoadBalancing_Export TAO_LB_LoadAlert
: public virtual POA_CosLoadBalancing::LoadAlert
{
public:
/// Constructor.
TAO_LB_LoadAlert (void);
/**
* @name CosLoadBalancing::LoadAlert Methods
*
* Methods required by the CosLoadBalancing::LoadAlert interface.
*/
//@{
/// Forward requests back to the load manager via the object group
/// reference.
virtual void enable_alert (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
/// Stop forwarding requests, and begin accepting them again.
virtual void disable_alert (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
//@}
/// Has this LoadAlert servant been alerted of a high load condition
/// by the LoadManager.
CORBA::Boolean alerted (void) const;
protected:
/// Destructor.
/**
* Protected destructor to enforce correct memory management via
* reference counting.
*/
//~TAO_LB_LoadAlert (void);
private:
/// Has this LoadAlert servant been alerted of a high load condition
/// by the LoadManager?
CORBA::Boolean alerted_;
/// Lock used to synchronized access to the LoadAlert state.
mutable TAO_SYNCH_MUTEX lock_;
};
#if defined (__ACE_INLINE__)
# include "LB_LoadAlert.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* TAO_LB_LOAD_ALERT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?