CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::SyncDiffReporter Class Reference

#include <sync_mediator.h>

Inheritance diagram for publish::SyncDiffReporter:
Collaboration diagram for publish::SyncDiffReporter:

Public Types

enum  PrintAction { kPrintDots, kPrintChanges }
 

Public Member Functions

 SyncDiffReporter (PrintAction print_action=kPrintChanges, unsigned int processing_dot_interval=100)
 
virtual void OnInit (const history::History::Tag &from_tag, const history::History::Tag &to_tag)
 
virtual void OnStats (const catalog::DeltaCounters &delta)
 
virtual void OnAdd (const std::string &path, const catalog::DirectoryEntry &entry)
 
virtual void OnRemove (const std::string &path, const catalog::DirectoryEntry &entry)
 
virtual void OnModify (const std::string &path, const catalog::DirectoryEntry &entry_from, const catalog::DirectoryEntry &entry_to)
 
void CommitReport ()
 

Private Member Functions

void PrintDots ()
 
void AddImpl (const std::string &path)
 
void RemoveImpl (const std::string &path)
 
void ModifyImpl (const std::string &path)
 

Private Attributes

PrintAction print_action_
 
unsigned int processing_dot_interval_
 
unsigned int changed_items_
 

Detailed Description

Definition at line 53 of file sync_mediator.h.

Member Enumeration Documentation

Enumerator
kPrintDots 
kPrintChanges 

Definition at line 55 of file sync_mediator.h.

Constructor & Destructor Documentation

publish::SyncDiffReporter::SyncDiffReporter ( PrintAction  print_action = kPrintChanges,
unsigned int  processing_dot_interval = 100 
)
inlineexplicit

Definition at line 60 of file sync_mediator.h.

Member Function Documentation

void publish::SyncDiffReporter::AddImpl ( const std::string &  path)
private

Definition at line 868 of file sync_mediator.cc.

Referenced by OnAdd().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::SyncDiffReporter::CommitReport ( )

Definition at line 854 of file sync_mediator.cc.

Here is the call graph for this function:

void publish::SyncDiffReporter::ModifyImpl ( const std::string &  path)
private

Definition at line 911 of file sync_mediator.cc.

Referenced by OnModify().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::SyncDiffReporter::OnAdd ( const std::string &  path,
const catalog::DirectoryEntry entry 
)
virtual

Definition at line 837 of file sync_mediator.cc.

Here is the call graph for this function:

void publish::SyncDiffReporter::OnInit ( const history::History::Tag from_tag,
const history::History::Tag to_tag 
)
virtual

Definition at line 832 of file sync_mediator.cc.

void publish::SyncDiffReporter::OnModify ( const std::string &  path,
const catalog::DirectoryEntry entry_from,
const catalog::DirectoryEntry entry_to 
)
virtual

Definition at line 847 of file sync_mediator.cc.

Here is the call graph for this function:

void publish::SyncDiffReporter::OnRemove ( const std::string &  path,
const catalog::DirectoryEntry entry 
)
virtual

Definition at line 842 of file sync_mediator.cc.

Here is the call graph for this function:

void publish::SyncDiffReporter::OnStats ( const catalog::DeltaCounters delta)
virtual

Definition at line 835 of file sync_mediator.cc.

void publish::SyncDiffReporter::PrintDots ( )
private

Definition at line 862 of file sync_mediator.cc.

Referenced by AddImpl(), ModifyImpl(), and RemoveImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void publish::SyncDiffReporter::RemoveImpl ( const std::string &  path)
private

Definition at line 889 of file sync_mediator.cc.

Referenced by OnRemove().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned int publish::SyncDiffReporter::changed_items_
private

Definition at line 87 of file sync_mediator.h.

Referenced by CommitReport(), OnAdd(), OnModify(), OnRemove(), and PrintDots().

PrintAction publish::SyncDiffReporter::print_action_
private

Definition at line 85 of file sync_mediator.h.

Referenced by AddImpl(), CommitReport(), ModifyImpl(), and RemoveImpl().

unsigned int publish::SyncDiffReporter::processing_dot_interval_
private

Definition at line 86 of file sync_mediator.h.

Referenced by CommitReport(), and PrintDots().


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