![]() |
Open Lighting Architecture
0.10.4
|
The main OlaServer class.


Classes | |
| struct | Options |
| Options for the OlaServer. More... | |
Public Member Functions | |
| OlaServer (const std::vector< class PluginLoader * > &plugin_loaders, class PreferencesFactory *preferences_factory, ola::io::SelectServer *ss, const Options &ola_options, ola::network::TCPAcceptingSocket *socket=NULL, ExportMap *export_map=NULL) | |
| Create a new instance of the OlaServer. More... | |
| ~OlaServer () | |
| Shutdown the server. | |
| bool | Init () |
| Initialize the OlaServer. More... | |
| void | ReloadPlugins () |
| Reload all plugins. More... | |
| void | ReloadPidStore () |
| Reload the pid store. More... | |
| void | StopServer () |
| Stop the OLA Server. More... | |
| void | NewConnection (ola::io::ConnectedDescriptor *descriptor) |
| Add a new ConnectedDescriptor to this Server. More... | |
| ola::network::GenericSocketAddress | LocalRPCAddress () const |
| Return the socket address the RPC server is listening on. More... | |
| void | NewClient (ola::rpc::RpcSession *session) |
| Called by the RpcServer when a client connects. More... | |
| void | ClientRemoved (ola::rpc::RpcSession *session) |
| Called by the RpcServer when a client disconnects. More... | |
| const std::string | InstanceName () |
| Get the instance name. More... | |
| const PreferencesFactory * | GetPreferencesFactory () |
| Get the preferences factory. More... | |
Static Public Attributes | |
| static const unsigned int | DEFAULT_HTTP_PORT = 9090 |
| static const unsigned int | DEFAULT_RPC_PORT = OLA_DEFAULT_PORT |
| ola::OlaServer::OlaServer | ( | const std::vector< class PluginLoader * > & | plugin_loaders, |
| class PreferencesFactory * | preferences_factory, | ||
| ola::io::SelectServer * | ss, | ||
| const Options & | ola_options, | ||
| ola::network::TCPAcceptingSocket * | socket = NULL, |
||
| ExportMap * | export_map = NULL |
||
| ) |
Create a new instance of the OlaServer.
| 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. |
|
virtual |
Called by the RpcServer when a client disconnects.
| session | the RpcSession for the client. |
Implements ola::rpc::RpcSessionHandlerInterface.
|
inline |
Get the preferences factory.
| bool ola::OlaServer::Init | ( | ) |
Initialize the OlaServer.
|
inline |
Get the instance name.
| ola::network::GenericSocketAddress ola::OlaServer::LocalRPCAddress | ( | ) | const |
Return the socket address the RPC server is listening on.
|
virtual |
Called by the RpcServer when a client connects.
| session | the RpcSession for the client. |
Implements ola::rpc::RpcSessionHandlerInterface.
| void ola::OlaServer::NewConnection | ( | ola::io::ConnectedDescriptor * | descriptor | ) |
Add a new ConnectedDescriptor to this Server.
| 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.
|
inline |
Stop the OLA Server.
This terminates the underlying SelectServer.
1.8.8