Detailed Description
The main OlaServer class.
Static Public Attributes |
static const unsigned int | DEFAULT_HTTP_PORT = 9090 |
static const unsigned int | DEFAULT_RPC_PORT = OLA_DEFAULT_PORT |
Constructor & Destructor Documentation
Create a new instance of the OlaServer.
- Parameters
-
plugin_loaders | A list of PluginLoaders to use to find plugins. |
preferences_factory | The factory to use when creating Preference objects. |
ss | The SelectServer. |
ola_options | The OlaServer options. |
socket | An optional TCPAcceptingSocket in the listen state to use for client RPC calls. Ownership is transferred. |
export_map | An optional ExportMap. If set to NULL a new ExportMap will be created. |
Member Function Documentation
Get the preferences factory.
- Returns
- a pointer to the preferences factory
bool ola::OlaServer::Init |
( |
| ) |
|
Initialize the OlaServer.
- Returns
- true if initialization succeeded, false if it failed.
const std::string ola::OlaServer::InstanceName |
( |
| ) |
|
|
inline |
Get the instance name.
- Returns
- a string which is the instance name
Return the socket address the RPC server is listening on.
- Returns
- A socket address, which is empty if the server hasn't been initialized.
Add a new ConnectedDescriptor to this Server.
- Parameters
-
descriptor | the new ConnectedDescriptor, ownership is transferred. |
void ola::OlaServer::ReloadPidStore |
( |
| ) |
|
Reload the pid store.
This method is thread safe.
void ola::OlaServer::ReloadPlugins |
( |
| ) |
|
Reload all plugins.
This method is thread safe.
void ola::OlaServer::StopServer |
( |
| ) |
|
|
inline |
Stop the OLA Server.
This terminates the underlying SelectServer.
The documentation for this class was generated from the following files: