reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
repro::ReproRunner Class Reference

#include <ReproRunner.hxx>

Inheritance diagram for repro::ReproRunner:
[legend]

Public Member Functions

 ReproRunner ()
 
virtual ~ReproRunner ()
 
virtual bool run (int argc, char **argv)
 
virtual void shutdown ()
 
virtual void restart ()
 
virtual void onReload ()
 
virtual Proxy * getProxy ()
 
virtual bool operator() (resip::StatisticsMessage &statsMessage)
 
- Public Member Functions inherited from resip::ServerProcess
 ServerProcess (std::chrono::milliseconds waitPeriod=std::chrono::milliseconds(50))
 
virtual ~ServerProcess ()
 
void mainLoop ()
 
void onSignal (int signo)
 
- Public Member Functions inherited from resip::ExternalStatsHandler
virtual ~ExternalStatsHandler ()=0
 

Protected Types

typedef std::map< unsigned int, resip::NameAddr > TransportRecordRouteMap
 

Protected Member Functions

virtual void cleanupObjects ()
 
virtual bool loadPlugins ()
 
virtual void setOpenSSLCTXOptionsFromConfig (const resip::Data &configVar, long &opts)
 
virtual bool createSipStack ()
 
virtual bool createDatastore ()
 
virtual bool createProxy ()
 
virtual void populateRegistrations ()
 
virtual bool createWebAdmin ()
 
virtual void createAuthenticatorFactory ()
 
virtual void createDialogUsageManager ()
 
virtual void createRegSync ()
 
virtual void createCommandServer ()
 
virtual void initDomainMatcher ()
 
virtual void addDomains (resip::TransactionUser &tu)
 
virtual bool addTransports (bool &allTransportsSpecifyRecordRoute)
 
virtual void addProcessor (repro::ProcessorChain &chain, std::unique_ptr< repro::Processor > processor)
 
virtual void makeRequestProcessorChain (repro::ProcessorChain &chain)
 
virtual void makeResponseProcessorChain (repro::ProcessorChain &chain)
 
virtual void makeTargetProcessorChain (repro::ProcessorChain &chain)
 
- Protected Member Functions inherited from resip::ServerProcess
bool checkPosixProcessControl (const Data &dependentSettings)
 
void installSignalHandler ()
 
void dropPrivileges (const Data &runAsUser, const Data &runAsGroup)
 
bool isAlreadyRunning ()
 
void daemonize ()
 
void setPidFile (const Data &pidFile)
 
virtual void doWait ()
 
virtual void onLoop ()
 

Protected Attributes

bool mRunning
 
bool mRestarting
 
int mArgc
 
char ** mArgv
 
bool mThreadedStack
 
resip::Data mHttpRealm
 
bool mUseV4
 
bool mUseV6
 
int mRegSyncPort
 
ProxyConfig * mProxyConfig
 
resip::FdPollGrp * mFdPollGrp
 
resip::AsyncProcessHandler * mAsyncProcessHandler
 
resip::SipStack * mSipStack
 
resip::ThreadIf * mStackThread
 
AbstractDb * mAbstractDb
 
AbstractDb * mRuntimeAbstractDb
 
resip::RegistrationPersistenceManager * mRegistrationPersistenceManager
 
resip::PublicationPersistenceManager * mPublicationPersistenceManager
 
AuthenticatorFactory * mAuthFactory
 
resip::Dispatcher * mAsyncProcessorDispatcher
 
ProcessorChain * mMonkeys
 
ProcessorChain * mLemurs
 
ProcessorChain * mBaboons
 
Proxy * mProxy
 
std::list< WebAdmin * > mWebAdminList
 
WebAdminThread * mWebAdminThread
 
Registrar * mRegistrar
 
PresenceServer * mPresenceServer
 
resip::DialogUsageManager * mDum
 
resip::ThreadIf * mDumThread
 
CertServer * mCertServer
 
RegSyncClient * mRegSyncClient
 
RegSyncServer * mRegSyncServerV4
 
RegSyncServer * mRegSyncServerV6
 
RegSyncServer * mRegSyncServerAMQP
 
RegSyncServerThread * mRegSyncServerThread
 
std::list< CommandServer * > mCommandServerList
 
CommandServerThread * mCommandServerThread
 
resip::CongestionManager * mCongestionManager
 
TransportRecordRouteMap mStartupTransportRecordRoutes
 
std::shared_ptr< resip::DomainMatcher > mDomainMatcher
 
resip::Data mDefaultRealm
 

Detailed Description

Definition at line 48 of file ReproRunner.hxx.

Member Typedef Documentation

◆ TransportRecordRouteMap

Constructor & Destructor Documentation

◆ ReproRunner()

ReproRunner::ReproRunner ( )

Definition at line 217 of file ReproRunner.cxx.

◆ ~ReproRunner()

ReproRunner::~ReproRunner ( )
virtual

Definition at line 255 of file ReproRunner.cxx.

Member Function Documentation

◆ addDomains()

void ReproRunner::addDomains ( resip::TransactionUser &  tu)
protectedvirtual

Definition at line 1593 of file ReproRunner.cxx.

◆ addProcessor()

void ReproRunner::addProcessor ( repro::ProcessorChain &  chain,
std::unique_ptr< repro::Processor >  processor 
)
protectedvirtual

Definition at line 1882 of file ReproRunner.cxx.

◆ addTransports()

bool ReproRunner::addTransports ( bool &  allTransportsSpecifyRecordRoute)
protectedvirtual

Definition at line 1603 of file ReproRunner.cxx.

◆ cleanupObjects()

void ReproRunner::cleanupObjects ( )
protectedvirtual

Definition at line 516 of file ReproRunner.cxx.

◆ createAuthenticatorFactory()

void ReproRunner::createAuthenticatorFactory ( )
protectedvirtual

Definition at line 966 of file ReproRunner.cxx.

◆ createCommandServer()

void ReproRunner::createCommandServer ( )
protectedvirtual

Definition at line 1405 of file ReproRunner.cxx.

◆ createDatastore()

bool ReproRunner::createDatastore ( )
protectedvirtual

Definition at line 866 of file ReproRunner.cxx.

◆ createDialogUsageManager()

void ReproRunner::createDialogUsageManager ( )
protectedvirtual

Definition at line 974 of file ReproRunner.cxx.

◆ createProxy()

bool ReproRunner::createProxy ( )
protectedvirtual

Definition at line 1116 of file ReproRunner.cxx.

◆ createRegSync()

void ReproRunner::createRegSync ( )
protectedvirtual

Definition at line 1347 of file ReproRunner.cxx.

◆ createSipStack()

bool ReproRunner::createSipStack ( )
protectedvirtual

Definition at line 603 of file ReproRunner.cxx.

◆ createWebAdmin()

bool ReproRunner::createWebAdmin ( )
protectedvirtual

Definition at line 1245 of file ReproRunner.cxx.

◆ getProxy()

virtual Proxy * repro::ReproRunner::getProxy ( )
inlinevirtual

Definition at line 61 of file ReproRunner.hxx.

◆ initDomainMatcher()

void ReproRunner::initDomainMatcher ( )
protectedvirtual

Definition at line 1509 of file ReproRunner.cxx.

◆ loadPlugins()

bool ReproRunner::loadPlugins ( )
protectedvirtual

Definition at line 569 of file ReproRunner.cxx.

◆ makeRequestProcessorChain()

void ReproRunner::makeRequestProcessorChain ( repro::ProcessorChain &  chain)
protectedvirtual

Definition at line 1888 of file ReproRunner.cxx.

◆ makeResponseProcessorChain()

void ReproRunner::makeResponseProcessorChain ( repro::ProcessorChain &  chain)
protectedvirtual

Definition at line 1978 of file ReproRunner.cxx.

◆ makeTargetProcessorChain()

void ReproRunner::makeTargetProcessorChain ( repro::ProcessorChain &  chain)
protectedvirtual

Definition at line 1994 of file ReproRunner.cxx.

◆ onReload()

void ReproRunner::onReload ( )
virtual

Reimplemented from resip::ServerProcess.

Definition at line 503 of file ReproRunner.cxx.

◆ operator()()

bool ReproRunner::operator() ( resip::StatisticsMessage &  statsMessage)
virtual

Parameters
statsMessagecontains the current stats for the stack.
Returns
true to continue processing this message and perform default handling, false to supress further handling, including default handling.

Implements resip::ExternalStatsHandler.

Definition at line 2016 of file ReproRunner.cxx.

◆ populateRegistrations()

void ReproRunner::populateRegistrations ( )
protectedvirtual

Definition at line 1213 of file ReproRunner.cxx.

◆ restart()

void ReproRunner::restart ( )
virtual

Definition at line 493 of file ReproRunner.cxx.

◆ run()

bool ReproRunner::run ( int  argc,
char **  argv 
)
virtual

Definition at line 261 of file ReproRunner.cxx.

◆ setOpenSSLCTXOptionsFromConfig()

void ReproRunner::setOpenSSLCTXOptionsFromConfig ( const resip::Data &  configVar,
long &  opts 
)
protectedvirtual

Definition at line 586 of file ReproRunner.cxx.

◆ shutdown()

void ReproRunner::shutdown ( )
virtual

Definition at line 415 of file ReproRunner.cxx.

Member Data Documentation

◆ mAbstractDb

AbstractDb* repro::ReproRunner::mAbstractDb
protected

Definition at line 104 of file ReproRunner.hxx.

◆ mArgc

int repro::ReproRunner::mArgc
protected

Definition at line 92 of file ReproRunner.hxx.

◆ mArgv

char** repro::ReproRunner::mArgv
protected

Definition at line 93 of file ReproRunner.hxx.

◆ mAsyncProcessHandler

resip::AsyncProcessHandler* repro::ReproRunner::mAsyncProcessHandler
protected

Definition at line 101 of file ReproRunner.hxx.

◆ mAsyncProcessorDispatcher

resip::Dispatcher* repro::ReproRunner::mAsyncProcessorDispatcher
protected

Definition at line 109 of file ReproRunner.hxx.

◆ mAuthFactory

AuthenticatorFactory* repro::ReproRunner::mAuthFactory
protected

Definition at line 108 of file ReproRunner.hxx.

◆ mBaboons

ProcessorChain* repro::ReproRunner::mBaboons
protected

Definition at line 112 of file ReproRunner.hxx.

◆ mCertServer

CertServer* repro::ReproRunner::mCertServer
protected

Definition at line 120 of file ReproRunner.hxx.

◆ mCommandServerList

std::list<CommandServer*> repro::ReproRunner::mCommandServerList
protected

Definition at line 126 of file ReproRunner.hxx.

◆ mCommandServerThread

CommandServerThread* repro::ReproRunner::mCommandServerThread
protected

Definition at line 127 of file ReproRunner.hxx.

◆ mCongestionManager

resip::CongestionManager* repro::ReproRunner::mCongestionManager
protected

Definition at line 128 of file ReproRunner.hxx.

◆ mDefaultRealm

resip::Data repro::ReproRunner::mDefaultRealm
protected

Definition at line 135 of file ReproRunner.hxx.

◆ mDomainMatcher

std::shared_ptr<resip::DomainMatcher> repro::ReproRunner::mDomainMatcher
protected

Definition at line 134 of file ReproRunner.hxx.

◆ mDum

resip::DialogUsageManager* repro::ReproRunner::mDum
protected

Definition at line 118 of file ReproRunner.hxx.

◆ mDumThread

resip::ThreadIf* repro::ReproRunner::mDumThread
protected

Definition at line 119 of file ReproRunner.hxx.

◆ mFdPollGrp

resip::FdPollGrp* repro::ReproRunner::mFdPollGrp
protected

Definition at line 100 of file ReproRunner.hxx.

◆ mHttpRealm

resip::Data repro::ReproRunner::mHttpRealm
protected

Definition at line 95 of file ReproRunner.hxx.

◆ mLemurs

ProcessorChain* repro::ReproRunner::mLemurs
protected

Definition at line 111 of file ReproRunner.hxx.

◆ mMonkeys

ProcessorChain* repro::ReproRunner::mMonkeys
protected

Definition at line 110 of file ReproRunner.hxx.

◆ mPresenceServer

PresenceServer* repro::ReproRunner::mPresenceServer
protected

Definition at line 117 of file ReproRunner.hxx.

◆ mProxy

Proxy* repro::ReproRunner::mProxy
protected

Definition at line 113 of file ReproRunner.hxx.

◆ mProxyConfig

ProxyConfig* repro::ReproRunner::mProxyConfig
protected

Definition at line 99 of file ReproRunner.hxx.

◆ mPublicationPersistenceManager

resip::PublicationPersistenceManager* repro::ReproRunner::mPublicationPersistenceManager
protected

Definition at line 107 of file ReproRunner.hxx.

◆ mRegistrar

Registrar* repro::ReproRunner::mRegistrar
protected

Definition at line 116 of file ReproRunner.hxx.

◆ mRegistrationPersistenceManager

resip::RegistrationPersistenceManager* repro::ReproRunner::mRegistrationPersistenceManager
protected

Definition at line 106 of file ReproRunner.hxx.

◆ mRegSyncClient

RegSyncClient* repro::ReproRunner::mRegSyncClient
protected

Definition at line 121 of file ReproRunner.hxx.

◆ mRegSyncPort

int repro::ReproRunner::mRegSyncPort
protected

Definition at line 98 of file ReproRunner.hxx.

◆ mRegSyncServerAMQP

RegSyncServer* repro::ReproRunner::mRegSyncServerAMQP
protected

Definition at line 124 of file ReproRunner.hxx.

◆ mRegSyncServerThread

RegSyncServerThread* repro::ReproRunner::mRegSyncServerThread
protected

Definition at line 125 of file ReproRunner.hxx.

◆ mRegSyncServerV4

RegSyncServer* repro::ReproRunner::mRegSyncServerV4
protected

Definition at line 122 of file ReproRunner.hxx.

◆ mRegSyncServerV6

RegSyncServer* repro::ReproRunner::mRegSyncServerV6
protected

Definition at line 123 of file ReproRunner.hxx.

◆ mRestarting

bool repro::ReproRunner::mRestarting
protected

Definition at line 91 of file ReproRunner.hxx.

◆ mRunning

bool repro::ReproRunner::mRunning
protected

Definition at line 90 of file ReproRunner.hxx.

◆ mRuntimeAbstractDb

AbstractDb* repro::ReproRunner::mRuntimeAbstractDb
protected

Definition at line 105 of file ReproRunner.hxx.

◆ mSipStack

resip::SipStack* repro::ReproRunner::mSipStack
protected

Definition at line 102 of file ReproRunner.hxx.

◆ mStackThread

resip::ThreadIf* repro::ReproRunner::mStackThread
protected

Definition at line 103 of file ReproRunner.hxx.

◆ mStartupTransportRecordRoutes

TransportRecordRouteMap repro::ReproRunner::mStartupTransportRecordRoutes
protected

Definition at line 133 of file ReproRunner.hxx.

◆ mThreadedStack

bool repro::ReproRunner::mThreadedStack
protected

Definition at line 94 of file ReproRunner.hxx.

◆ mUseV4

bool repro::ReproRunner::mUseV4
protected

Definition at line 96 of file ReproRunner.hxx.

◆ mUseV6

bool repro::ReproRunner::mUseV6
protected

Definition at line 97 of file ReproRunner.hxx.

◆ mWebAdminList

std::list<WebAdmin*> repro::ReproRunner::mWebAdminList
protected

Definition at line 114 of file ReproRunner.hxx.

◆ mWebAdminThread

WebAdminThread* repro::ReproRunner::mWebAdminThread
protected

Definition at line 115 of file ReproRunner.hxx.


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