EasyCV  0.9.36
Easy! Computer Vision
Public Member Functions | Private Attributes | List of all members
cvac::ServiceManagerI Class Reference

#include <ServiceManI.h>

Inheritance diagram for cvac::ServiceManagerI:
cvac::ServiceManager

Public Member Functions

 ServiceManagerI (cvac::CVAlgorithmService *serv, StartStop *ss=NULL)
 
virtual void start (const ::std::string &name, const Ice::CommunicatorPtr &communicator, const Ice::StringSeq &)
 
virtual void stop ()
 
virtual std::string getModelFileFromConfig ()
 
virtual std::string getDataDir ()
 
- Public Member Functions inherited from cvac::ServiceManager
bool stopRequested ()
 
void stopCompleted ()
 
bool isStopCompleted ()
 
void clearStop ()
 
void stopService ()
 
void setStoppable ()
 
void waitForStopService ()
 
std::string getServiceName ()
 
SandboxManagergetSandbox ()
 
void createSandbox ()
 

Private Attributes

Ice::ObjectAdapterPtr mAdapter
 
cvac::CVAlgorithmServicemService
 
cvac::StartStopmSS
 

Additional Inherited Members

- Public Types inherited from cvac::ServiceManager
enum  StopStateType { None, Running, Stopping, Stopped }
 
typedef enum
cvac::ServiceManager::StopStateType 
StopState
 
- Static Public Attributes inherited from cvac::ServiceManager
static const char * SERVICELOCKFILE = ".services_started.lock"
 
- Protected Attributes inherited from cvac::ServiceManager
std::string mServiceName
 
int mStopState
 
SandboxManagermSandbox
 

Constructor & Destructor Documentation

ServiceManagerI::ServiceManagerI ( cvac::CVAlgorithmService serv,
StartStop ss = NULL 
)

Constructor for creating a ServiceManager instance.

Set The Service that is to be served by this ServiceManager. NOTE: A ServiceManager can manage either a detector or detectorTrainer but not both! Parms: The Algorithm instance to be served by this manager.

Pass the constructed detector instance to the ServiceManager.

Member Function Documentation

std::string ServiceManagerI::getDataDir ( )
virtual

Implements cvac::ServiceManager.

string ServiceManagerI::getModelFileFromConfig ( )
virtual

Look for a property entry in config.service that corresponds to ServiceNamex.TrainedModel = filename Note that the "x" is significant: the name of the service is ServiceName but we need ServiceNamex so that ICE doesn't complain about unknown properties. Return filename if found, empty string otherwise.

Implements cvac::ServiceManager.

void ServiceManagerI::start ( const ::std::string &  name,
const Ice::CommunicatorPtr &  communicator,
const Ice::StringSeq &   
)
virtual

The start function called by IceBox to start this service.

The start function called by IceBox to start this service. This handles all the icebox interactions. We obtain the service name from the config.icebox file as follows. Given this entry: IceBox.Service.BOW_Detector=bowICEServer:create –Ice.Config=config.service ... the name of the service is BOW_Detector.

void ServiceManagerI::stop ( )
virtual

The stop function called by IceBox to stop this service.

Member Data Documentation

Ice::ObjectAdapterPtr cvac::ServiceManagerI::mAdapter
private
cvac::CVAlgorithmService* cvac::ServiceManagerI::mService
private
cvac::StartStop* cvac::ServiceManagerI::mSS
private

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