#include <Archiver.h>
Collaboration diagram for SctArchiving::Archiver:

Public Member Functions | |||
| void | shutdown () | ||
| void | go (unsigned nWorker) throw (IsException) | ||
| The command to start the workers. | |||
| const char * | getStatus () const throw () | ||
| Get the status information. | |||
| virtual char * | status () | ||
| As for getStatus, but available over IPC. | |||
| virtual CORBA::Short | busy () | ||
| busy method available over IPC | |||
| virtual CORBA::Short | queueLength () | ||
| queue method available over IPC | |||
| virtual void | suspendCallbacks (CORBA::Boolean doSuspend) | ||
| call this to suspend callbacks when retrieving to data servers | |||
| IPCServer & | getArchiverServer () throw () | ||
| wrap method to get server | |||
| virtual void | archiveISName (const char *ioNameIS) | ||
| Archive a IONameIS. | |||
| virtual void | retrieveISName (const char *ioNameIS) | ||
| Retrieve a IONameIS. | |||
| virtual void | retrieveArchName (const char *archivingName) | ||
| Retrieve a IONameArchiveFile. | |||
| virtual void | retrieve (const char *runNumber, const char *scanNumber, const char *className, const char *specifier) | ||
| Retrieve objects matching a particular file glob pattern. | |||
| virtual CORBA::Short | getCompressionLevel () | ||
| get the gzip compression level | |||
| virtual void | setCompressionLevel (CORBA::Short level) | ||
| set the gzip compression level | |||
| virtual void | setRetrieveIsServer (const char *serverName) | ||
| set the retrieval IS server name | |||
| virtual void | addCommand (boost::shared_ptr< ArchivingCommand > command) const | ||
| void | incrimentNArchived () throw () | ||
| Incriment the number of archivals by 1. | |||
| void | incrimentNRetrieved () throw () | ||
| Incriment the number of retrievals. | |||
| void | incrimentNValidated () throw () | ||
| Incriment the number of validations. | |||
| void | addISTime (double time) throw () | ||
| Called to add to time for reading/writing to IS. | |||
| void | addFileTime (double time) throw () | ||
| Called to add to time for reading/writing to archive file. | |||
| Sct::Archive::IOManagerArchive & | Archiver::getIOManagerArchive () const | ||
| get the archive manager | |||
| string | internal_getRetrieveIsServer () const throw () | ||
| get the IS server name to retrieve data to | |||
| virtual void | setPersistentDirectory (const char *newDirectory) | ||
| set new Persistent Directory | |||
| char * | getRetrieveIsServer () throw () | ||
| name of ISServer to retrieve to | |||
| void | recover () | ||
Static Public Member Functions | |||
| Archiver & | instance () | ||
| Gets a reference to the instance of the Archiver. | |||
| Archiver & | initialize (ArchiverArguments args) | ||
Initialize the Archiver instance with command line arguments
| |||
| void | archive_callback (ISCallbackInfo *isc) | ||
| Static function used as callback to archive data. | |||
Protected Member Functions | |||
| ~Archiver () throw () | |||
| protected destructor | |||
Private Member Functions | |||
| Archiver (ArchiverArguments args) | |||
| Private constructor from command line arguments. | |||
| void | subscribe (const string &servername, const string ®exp, ISCallbackInfo::Callback callback) | ||
| subscribe to IS, throwing IsExceptions if there are problems | |||
| double | getAverageTime (double time) const throw () | ||
Private Attributes | |||
| ArchivingWorkerGroup * | workergroup | ||
| pointer to its ArchivingWorkerGroup | |||
| std::auto_ptr< ISInfoReceiver > | infoReceiver | ||
| pointer to the IS infoReceiver object | |||
| long | nArchived | ||
| long | nRetrieved | ||
| long | nValidated | ||
| double | isTimeTaken | ||
| double | fileTimeTaken | ||
| boost::recursive_mutex | counterMutex | ||
| used to lock access to counters | |||
| Sct::Archive::IOManagerArchive * | m_archive_manager | ||
| iomanager to use for achiving | |||
| std::string | m_retrieval_is_server | ||
| bool | m_suspend_callback | ||
| ArchiverArguments | m_args | ||
Static Private Attributes | |||
| Archiver * | archiver | ||
| pointer to singleton used in lazy initialization. | |||
Definition at line 34 of file Archiver.h.
|
|
Private constructor from command line arguments.
Definition at line 81 of file Archiver.cpp. References SctArchiving::ArchiverArguments::getCompressionLevel(), SctService::Arguments::getOutputISServer(), SctArchiving::ArchiverArguments::getPersistentDirectory(), Sct::SctNames::getRetrievedDataName(), infoReceiver, m_archive_manager, SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::reportTo(), Sct::Archive::IOManagerArchive::setCompressionLevel(), and workergroup. Referenced by initialize(). |
Here is the call graph for this function:

|
|
protected destructor
Definition at line 104 of file Archiver.cpp. |
|
|
Called to add to time for reading/writing to archive file.
Definition at line 237 of file Archiver.cpp. |
|
|
Called to add to time for reading/writing to IS.
Definition at line 232 of file Archiver.cpp. |
|
|
Static function used as callback to archive data.
Definition at line 124 of file Archiver.cpp. References m_suspend_callback, SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::push(), and workergroup. |
Here is the call graph for this function:

|
|
Archive a IONameIS.
Definition at line 275 of file Archiver.cpp. References SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::push(), and workergroup. |
Here is the call graph for this function:

|
|
get the archive manager
|
|
|
busy method available over IPC
Definition at line 335 of file Archiver.cpp. References SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::busy(), and workergroup. |
Here is the call graph for this function:

|
|
wrap method to get server
Definition at line 115 of file Archiver.cpp. |
|
|
get the gzip compression level
Definition at line 343 of file Archiver.cpp. |
|
|
name of ISServer to retrieve to
Definition at line 166 of file Archiver.cpp. References Sct::copyStringToCorba(). |
Here is the call graph for this function:

|
|
Get the status information.
Definition at line 242 of file Archiver.cpp. Referenced by status(). |
|
|
The command to start the workers.
Definition at line 207 of file Archiver.cpp. |
|
|
Incriment the number of archivals by 1.
Definition at line 217 of file Archiver.cpp. |
|
|
Incriment the number of retrievals.
Definition at line 222 of file Archiver.cpp. |
|
|
Incriment the number of validations.
Definition at line 227 of file Archiver.cpp. |
|
|
Initialize the Archiver instance with command line arguments
Definition at line 76 of file Archiver.cpp. References Archiver(), and archiver. |
Here is the call graph for this function:

|
|
Gets a reference to the instance of the Archiver. If it hasn't been initialized, it calls initialize() first Definition at line 71 of file Archiver.cpp. References archiver. |
|
|
get the IS server name to retrieve data to
Definition at line 161 of file Archiver.cpp. Referenced by retrieveArchName(). |
|
|
queue method available over IPC
Definition at line 339 of file Archiver.cpp. References SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::queueSize(), and workergroup. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Retrieve objects matching a particular file glob pattern.
Definition at line 307 of file Archiver.cpp. References Sct::IOName::getIOName(), SctArchiving::ArchiverArguments::getPersistentDirectory(), and retrieveArchName(). |
Here is the call graph for this function:

|
|
Retrieve a IONameArchiveFile.
Definition at line 321 of file Archiver.cpp. References internal_getRetrieveIsServer(), SctService::WorkerGroup< shared_ptr< ArchivingCommand > >::push(), and workergroup. Referenced by retrieve(), and retrieveISName(). |
Here is the call graph for this function:

|
|
Retrieve a IONameIS. need to do this cos IPC dosent guarentee constness Definition at line 295 of file Archiver.cpp. References Sct::IOName::getIOName(), and retrieveArchName(). |
Here is the call graph for this function:

|
|
set the gzip compression level
Definition at line 347 of file Archiver.cpp. |
|
|
set new Persistent Directory
Definition at line 174 of file Archiver.cpp. |
|
|
set the retrieval IS server name
Definition at line 170 of file Archiver.cpp. |
|
|
As for getStatus, but available over IPC. Makes a new char[] which ipc then deletes.
Definition at line 267 of file Archiver.cpp. References counterMutex, getStatus(), and status(). Referenced by status(). |
Here is the call graph for this function:

|
||||||||||||||||
|
subscribe to IS, throwing IsExceptions if there are problems
Definition at line 185 of file Archiver.cpp. References SctService::Arguments::getOutputISServer(), and infoReceiver. |
Here is the call graph for this function:

|
|
call this to suspend callbacks when retrieving to data servers
Definition at line 178 of file Archiver.cpp. |
|
|
pointer to singleton used in lazy initialization.
Definition at line 69 of file Archiver.cpp. Referenced by initialize(), and instance(). |
|
|
used to lock access to counters
Definition at line 181 of file Archiver.h. Referenced by status(). |
|
|
pointer to the IS infoReceiver object
Definition at line 174 of file Archiver.h. Referenced by Archiver(), and subscribe(). |
|
|
iomanager to use for achiving
Definition at line 184 of file Archiver.h. Referenced by Archiver(). |
|
|
pointer to its ArchivingWorkerGroup
Definition at line 166 of file Archiver.h. Referenced by archive_callback(), archiveISName(), Archiver(), busy(), queueLength(), and retrieveArchName(). |
1.3.5