Public Member Functions | |
virtual | ~AnalysisService () |
void | run () |
RUNS the IPC server and IS callback. | |
void | setFitStrategy (const string &name) throw (LogicError) |
set the FitStrategy by name | |
SctFitter::FitStrategy & | getFitStrategy () const throw (LogicError) |
return a FitStrategy which tells how to do the fitting. | |
virtual void | purge () throw () |
Calls AnalysisWorkerGroup::purge() method to free stuck memory. | |
virtual void | analyze (const char *testname) throw () |
Analyse all data relevant to a test. | |
virtual void | analyzeModule (const char *testname, const char *modulename) throw () |
Analyse all data relevant to a test for a particular module. | |
virtual char * | status () throw () |
Output the status of the AnalysisService over IPC. | |
virtual CORBA::Short | busy () |
ipc busy method | |
virtual CORBA::Short | queueLength () |
ipc queueLength method | |
DcsInterface & | getDcsInterface () |
return the DcsInterface, which retrieves the dcs information | |
const std::string | getOutputISServerName () |
server to publish to. | |
void | recover () |
recover from failure | |
void | setFifo (bool) |
set true for FIFO, false for FILO - see WorkerGroup for pros and cons! | |
bool | isFifo () |
set true for FIFO, false for FILO - see WorkerGroup for pros and cons! | |
boost::shared_ptr< SctConfiguration::Configuration > | getConfiguration () |
get local interface to configuration | |
AnalysisServiceI::StringList * | listAlgorithms () |
get a list of the AnalysisAlgorithms available for use | |
Static Public Member Functions | |
static void | generalCallback (ISCallbackInfo *isc) |
Callback for any data type. | |
static void | testDataCallback (ISCallbackInfo *isc) |
what to do when a callback is requestedfound, or removed | |
static void | scanResultCallback (ISCallbackInfo *isc) |
what to do when a new FitScanResult or RawScanResult is found | |
static AnalysisService & | instance () |
singleton access method | |
static AnalysisService & | initialize (AnalysisArguments args) |
Initializes the static instance with a FitStrategy. | |
static IPCServer & | getServer () throw () |
Protected Attributes | |
AnalysisWorkerGroup * | workergroup |
AnalysisWorkerGroup does the internal book-keeping, and calls the appropriate AnalysisAlgorithm. | |
DcsInterface * | dcsinterface |
Private Member Functions | |
void | shutdown () |
AnalysisService (AnalysisArguments args) | |
singleton. Will throw ConfigurationException if something goes wrong. | |
Private Attributes | |
boost::recursive_mutex | m_status_access |
protects status from different threads. | |
SctFitter::FitStrategy * | fitStrategy |
cache telling how to do fitting. | |
std::auto_ptr< ISInfoReceiver > | infoReceiver |
IS InfoReceiver for IS events. | |
AnalysisArguments | m_args |
boost::shared_ptr< SctConfiguration::Configuration > | s_configuration |
local configuration interface | |
Static Private Attributes | |
static AnalysisService * | service |
Definition at line 23 of file AnalysisService.h.
|
singleton. Will throw ConfigurationException if something goes wrong.
Definition at line 46 of file AnalysisService.cpp. References dcsinterface, SctAnalysis::AnalysisArguments::getFitOptions(), getFitStrategy(), SctService::Arguments::getISStatusName(), SctAnalysis::AnalysisArguments::getStrategyName(), infoReceiver, m_args, SctService::WorkerGroup< T >::reportTo(), s_configuration, Sct::Throwable::sendToMrs(), setFitStrategy(), SctFitter::FitStrategy::setOptions(), and workergroup. Referenced by initialize(). Here is the call graph for this function: ![]() |
|
Analyse all data relevant to a test.
Definition at line 213 of file AnalysisService.cpp. |
|
Analyse all data relevant to a test for a particular module.
Definition at line 148 of file AnalysisService.cpp. |
|
ipc busy method
Definition at line 121 of file AnalysisService.cpp. References SctService::WorkerGroup< T >::busy(), m_status_access, and workergroup. Here is the call graph for this function: ![]() |
|
Callback for any data type.
Definition at line 221 of file AnalysisService.cpp. References scanResultCallback(), and testDataCallback(). Referenced by run(). Here is the call graph for this function: ![]() |
|
get local interface to configuration
Definition at line 91 of file AnalysisService.cpp. References s_configuration. Referenced by SctAnalysis::NPtGainAlgorithm::NPtGainAlgorithm(). |
|
return the DcsInterface, which retrieves the dcs information
Definition at line 298 of file AnalysisService.cpp. References dcsinterface. |
|
return a FitStrategy which tells how to do the fitting.
Definition at line 274 of file AnalysisService.cpp. References fitStrategy. Referenced by AnalysisService(), and SctAnalysis::NPtGainAlgorithm::doFit(). |
|
server to publish to. set by command line arguments Definition at line 87 of file AnalysisService.cpp. References SctService::Arguments::getOutputISServer(), and m_args. Referenced by SctAnalysis::AnalysisAlgorithm::finish(). Here is the call graph for this function: ![]() |
|
Initializes the static instance with a FitStrategy. The default FitStrategy is RootFitStrategy. Will throw ConfigurationException if something goes wrong. Definition at line 293 of file AnalysisService.cpp. References AnalysisService(), and service. Here is the call graph for this function: ![]() |
|
singleton access method
Definition at line 280 of file AnalysisService.cpp. References service. Referenced by SctAnalysis::NPtGainAlgorithm::doFit(), SctAnalysis::AnalysisAlgorithm::finish(), isFifo(), SctAnalysis::NPtGainAlgorithm::NPtGainAlgorithm(), scanResultCallback(), setFifo(), and testDataCallback(). |
|
set true for FIFO, false for FILO - see WorkerGroup for pros and cons!
Definition at line 285 of file AnalysisService.cpp. References instance(), SctService::WorkerGroup< T >::isFifo(), and workergroup. Here is the call graph for this function: ![]() |
|
get a list of the AnalysisAlgorithms available for use
Definition at line 217 of file AnalysisService.cpp. References SctAnalysis::AnalysisAlgorithmMap::instance(), and SctAnalysis::AnalysisAlgorithmMap::listAlgorithms(). Here is the call graph for this function: ![]() |
|
Calls AnalysisWorkerGroup::purge() method to free stuck memory.
Definition at line 202 of file AnalysisService.cpp. References SctAnalysis::AnalysisWorkerGroup::purge(), Sct::Throwable::sendToMrs(), and workergroup. Here is the call graph for this function: ![]() |
|
ipc queueLength method
Definition at line 126 of file AnalysisService.cpp. References SctService::WorkerGroup< T >::busy(), m_status_access, and workergroup. Here is the call graph for this function: ![]() |
|
recover from failure
Definition at line 306 of file AnalysisService.cpp. Referenced by run(). |
|
RUNS the IPC server and IS callback. Does not return. Definition at line 95 of file AnalysisService.cpp. References generalCallback(), SctService::Arguments::getInputISServers(), SctService::Arguments::getNWorkers(), SctService::WorkerGroup< T >::go(), infoReceiver, m_args, recover(), SctService::Arguments::recoveryMode(), and workergroup. Here is the call graph for this function: ![]() |
|
what to do when a new FitScanResult or RawScanResult is found
Definition at line 235 of file AnalysisService.cpp. References instance(), SctService::WorkerGroup< T >::push(), and workergroup. Referenced by generalCallback(). Here is the call graph for this function: ![]() |
|
set true for FIFO, false for FILO - see WorkerGroup for pros and cons!
Definition at line 289 of file AnalysisService.cpp. References instance(), SctService::WorkerGroup< T >::setFifo(), and workergroup. Here is the call graph for this function: ![]() |
|
set the FitStrategy by name
Definition at line 268 of file AnalysisService.cpp. References SctFitter::FitStrategyFactory::instance(). Referenced by AnalysisService(). Here is the call graph for this function: ![]() |
|
Output the status of the AnalysisService over IPC.
Definition at line 131 of file AnalysisService.cpp. References dcsinterface, SctAnalysis::AnalysisAlgorithmMap::getAllStatus(), SctAnalysis::AnalysisAlgorithmMap::instance(), m_status_access, SctAnalysis::DcsInterface::printStatus(), SctAnalysis::AnalysisWorkerGroup::printStatus(), and workergroup. Here is the call graph for this function: ![]() |
|
what to do when a callback is requestedfound, or removed
Definition at line 245 of file AnalysisService.cpp. References SctAnalysis::AnalysisWorkerGroup::addTest(), instance(), SctAnalysis::AnalysisWorkerGroup::removeTestsUpTo(), and workergroup. Referenced by generalCallback(). Here is the call graph for this function: ![]() |
|
cache telling how to do fitting.
Definition at line 135 of file AnalysisService.h. Referenced by getFitStrategy(). |
|
IS InfoReceiver for IS events.
Definition at line 136 of file AnalysisService.h. Referenced by AnalysisService(), and run(). |
|
protects status from different threads.
Definition at line 134 of file AnalysisService.h. Referenced by busy(), queueLength(), and status(). |
|
local configuration interface
Definition at line 140 of file AnalysisService.h. Referenced by AnalysisService(), and getConfiguration(). |
|
AnalysisWorkerGroup does the internal book-keeping, and calls the appropriate AnalysisAlgorithm.
Definition at line 131 of file AnalysisService.h. Referenced by AnalysisService(), busy(), isFifo(), purge(), queueLength(), run(), scanResultCallback(), setFifo(), shutdown(), status(), and testDataCallback(). |