Apache Mesos
Public Types | Public Member Functions | List of all members
Network Class Reference

#include <network.hpp>

Inheritance diagram for Network:
ZooKeeperNetwork

Public Types

enum  WatchMode {
  EQUAL_TO, NOT_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO,
  GREATER_THAN, GREATER_THAN_OR_EQUAL_TO
}
 

Public Member Functions

 Network ()
 
 Network (const std::set< process::UPID > &pids)
 
virtual ~Network ()
 
void add (const process::UPID &pid)
 
void remove (const process::UPID &pid)
 
void set (const std::set< process::UPID > &pids)
 
process::Future< size_t > watch (size_t size, WatchMode mode=NOT_EQUAL_TO) const
 
template<typename Req , typename Res >
process::Future< std::set
< process::Future< Res > > > 
broadcast (const Protocol< Req, Res > &protocol, const Req &req, const std::set< process::UPID > &filter=std::set< process::UPID >()) const
 
template<typename M >
process::Future< Nothingbroadcast (const M &m, const std::set< process::UPID > &filter=std::set< process::UPID >()) const
 

Member Enumeration Documentation

Enumerator
EQUAL_TO 
NOT_EQUAL_TO 
LESS_THAN 
LESS_THAN_OR_EQUAL_TO 
GREATER_THAN 
GREATER_THAN_OR_EQUAL_TO 

Constructor & Destructor Documentation

Network::Network ( )
inline
Network::Network ( const std::set< process::UPID > &  pids)
inlineexplicit
Network::~Network ( )
inlinevirtual

Member Function Documentation

void Network::add ( const process::UPID pid)
inline
template<typename Req , typename Res >
process::Future< std::set< process::Future< Res > > > Network::broadcast ( const Protocol< Req, Res > &  protocol,
const Req &  req,
const std::set< process::UPID > &  filter = std::set<process::UPID>() 
) const
template<typename M >
process::Future< Nothing > Network::broadcast ( const M &  m,
const std::set< process::UPID > &  filter = std::set<process::UPID>() 
) const
void Network::remove ( const process::UPID pid)
inline
void Network::set ( const std::set< process::UPID > &  pids)
inline
process::Future< size_t > Network::watch ( size_t  size,
Network::WatchMode  mode = NOT_EQUAL_TO 
) const
inline

The documentation for this class was generated from the following file: