Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ParallelActions Class Reference

#include <Admin.h>

List of all members.


Detailed Description

Generic class that represents a bunch of actions going on in parallel.

Works only for void return types right now The CleanUpMethod is a callback that cleans up the state in case only some actions complete successfully


Public Member Functions

 ParallelActions (AsyncRPC< void > completion, int nb_parallel_tracks, string msg, CleanUpMethod clean_up=CleanUpMethod())
void clean_up ()
string as_string () const

Public Attributes

AsyncRPC< void > m_completion
int m_pending
string m_msg
bool m_already_failed
vector< bool > m_actions_results
CleanUpMethod m_clean_up_method


Constructor & Destructor Documentation

ParallelActions::ParallelActions AsyncRPC< void >  completion,
int  nb_parallel_tracks,
string  msg,
CleanUpMethod  clean_up = CleanUpMethod()
 


Member Function Documentation

string ParallelActions::as_string  )  const
 

void ParallelActions::clean_up  ) 
 


Member Data Documentation

vector<bool> ParallelActions::m_actions_results
 

bool ParallelActions::m_already_failed
 

CleanUpMethod ParallelActions::m_clean_up_method
 

AsyncRPC<void> ParallelActions::m_completion
 

string ParallelActions::m_msg
 

int ParallelActions::m_pending
 


The documentation for this class was generated from the following file:
Generated on Fri Nov 12 15:15:23 2004 for Borealis by doxygen 1.3.8