Ice 3.7 C++11 API Reference
Public Member Functions | List of all members
IceBox::Service Class Referenceabstract

An application service managed by a ServiceManager. More...

#include <IceBox/IceBox.h>

Public Member Functions

virtual void start (const ::std::string &name, const ::std::shared_ptr<::Ice::Communicator > &communicator, const ::Ice::StringSeq &args)=0
 Start the service. More...
 
virtual void stop ()=0
 Stop the service. More...
 
virtual ~Service ()
 

Detailed Description

An application service managed by a ServiceManager.

Constructor & Destructor Documentation

◆ ~Service()

virtual IceBox::Service::~Service ( )
virtual

Member Function Documentation

◆ start()

virtual void IceBox::Service::start ( const ::std::string &  name,
const ::std::shared_ptr<::Ice::Communicator > &  communicator,
const ::Ice::StringSeq args 
)
pure virtual

Start the service.

The given communicator is created by the ServiceManager for use by the service. This communicator may also be used by other services, depending on the service configuration.

The ServiceManager owns this communicator, and is responsible for destroying it.

Parameters
nameThe service's name, as determined by the configuration.
communicatorA communicator for use by the service.
argsThe service arguments that were not converted into properties.
Exceptions
IceBox::FailureExceptionRaised if start failed.

◆ stop()

virtual void IceBox::Service::stop ( )
pure virtual

Stop the service.


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