#include <ITVCaster.hpp>

Public Member Functions | |
| ITVCaster () | |
| ITVCaster (NMM::NMMObject &parent) | |
| virtual | ~ITVCaster () |
| virtual string | getInterfaceType () const |
| This method returns the typename of this interface. | |
| NMM::Interface * | copy () const |
| Virtual Copy Constructor. | |
| DECLARE_USING (USED_METHOD_NAME) | |
| This interface is used. | |
| virtual vector< string > | getStreamingModes () |
| Get streaming modes. | |
| virtual vector< StreamEntry > | getStreams () |
| Gets information about all streams. | |
| virtual vector< DVBCardEntry > | getDVBCards () |
| Gets information about all DVB devices. | |
| virtual vector< ClientEntry > | getClients () |
| Gets information about all NMM clients. | |
| virtual vector< ClientEntry > | getProcessingHosts () |
| Gets information about all NMM processing hosts. | |
| virtual vector< string > | getChannelList (const string &dvb_host, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Gets the channel list for a specific DVB device. | |
| virtual vector< nmm_int32 > | getCurrentChannels (const string &dvb_host, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Gets the current channel list for a specific DVB device. | |
| virtual vector< SignalInformation > | getSignalInformations (const string &dvb_host, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Get signal information for all channels. | |
| virtual vector< string > | getClientChannelList (const string &client_id) throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) |
| Gets the channel list for a specific client. | |
| virtual vector< DVBCardEntry > | discoverDVBCards () |
| Discovers all DVB devices in the network. | |
| virtual vector< ClientEntry > | discoverClients () |
| Discovers all NMM clients in the network. | |
| virtual vector< ClientEntry > | discoverProcessingHosts () |
| Discovers all NMM processing hosts in the network. | |
| virtual void | updateDVBConfig (const string &dvb_source_hostname, const nmm_int32 &card_id, const string &streaming_mode) throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) |
| Sets the streaming mode of a DVB device. | |
| virtual void | updateCardName (const string &dvb_source_hostname, const nmm_int32 &card_id, const string &card_name) throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) |
| Sets the card name of a specific DVB device. | |
| virtual void | updateChannelAssignment (const string &dvb_source_hostname, const nmm_int32 &card_id, const nmm_int32 &channel_id, const string &remux_location) throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) |
| Assigns a channel to a DVB device configured for Corporate Mode. | |
| virtual void | updateClientAssignment (const string &dvb_source_hostname, const nmm_int32 &card_id, const string &client_id) throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) |
| Assigns a DVB device to an NMM client. | |
| virtual void | updateClientConfig (const string &client_name, const string &client_ip, const string &client_mac) throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) |
| Updates the configuration of an NMM client in Home Mode. | |
| virtual void | importChannelsConfig (const string &dvb_source_hostname, const nmm_int32 &card_id, const vector< string > &channels) throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) |
| Imports the channel configuration of a specific DVB device. | |
| virtual vector< string > | exportChannelsConfig (const string &dvb_source_hostname, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&, const InvalidConfigException&) |
| Exports the channel configuration of a specific DVB device. | |
| virtual void | importTransponderList (const string &dvb_source_hostname, const nmm_int32 &card_id, const vector< string > &transponder_list, const string &filename) throw (const std::exception&, const InvalidDeviceException&) |
| Imports a transponder list of a specific DVB device. | |
| virtual vector< string > | exportTransponderList (const string &dvb_source_hostname, const nmm_int32 &card_id, const string &filename) throw (const std::exception&, const InvalidDeviceException&) |
| Exports a transponder list of a specific DVB device. | |
| virtual void | startChannelSearch (const string &dvb_source_hostname, const nmm_int32 &card_id, const string &initial_tuning_file) throw (const std::exception&, const InvalidDeviceException&) |
| Starts a channel search. | |
| virtual void | stopChannelSearch (const string &dvb_source_hostname, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Stops a channel search. | |
| virtual vector< string > | getInitialTuningFiles (const string &dvb_source_hostname, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Gets a list of initial tuning files. | |
| virtual nmm_int32 | getSearchTransponders (const string &dvb_source_hostname, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Gets the number of transponders used by the channel search. | |
| virtual nmm_int32 | getSearchCompletedTransponders (const string &dvb_source_hostname, const nmm_int32 &card_id) throw (const std::exception&, const InvalidDeviceException&) |
| Gets the number of completed transponders. | |
| virtual nmm_uint32 | getNumberOfStreams () |
| Gets the number of streams. | |
| virtual nmm_float | getOutgoingBandwidthGbE () |
| Gets the outgoing bandwidth of the GbE (gigabit ethernet) port. | |
| virtual nmm_float | getOutgoingBandwidthMgmt () |
| Gets the outgoing bandwidth of the Mgmt (management) port. | |
| virtual nmm_float | getCPULoad () |
| Gets the CPU load. | |
| virtual string | getDiskUsageAll () |
| Get the disk usage of the "/" directory. | |
| virtual string | getDiskUsageHome () |
| Get the disk usage of the "/home" directory. | |
| virtual string | getDiskUsageVideo () |
| Get the disk usage of the "/home/nmm/video" directory. | |
| virtual nmm_float | getPercentageDiskUsageHome () |
| Get the percentage disk usage of the "/home" directory in percent. | |
| virtual nmm_float | getPercentageDiskUsageAll () |
| Get the percentage disk usage of the "/" directory in percent. | |
| virtual nmm_float | getPercentageDiskUsageVideo () |
| Get the percentage disk usage of the "/home/nmm/video" directory in percent. | |
| virtual nmm_uint32 | getTotalMemory () |
| Get the total amount of physical memory. | |
| virtual nmm_uint32 | getUsedMemory () |
| Get the used amount of physical memory. | |
| virtual nmm_uint32 | getFreeMemory () |
| Get the free amount of physical memory. | |
| virtual nmm_float | getPercentageMemoryUsage () |
| Get the percentage of used physical memory. | |
| virtual nmm_uint32 | getTotalSwapSpace () |
| Get the total amount of swap space. | |
| virtual nmm_uint32 | getUsedSwapSpace () |
| Get the used amount of swap space. | |
| virtual nmm_uint32 | getFreeSwapSpace () |
| Get the free amount of swap space. | |
| virtual nmm_float | getPercentageSwapSpaceUsage () |
| Get the percentage of used swap space. | |
| virtual nmm_uint32 | getMaxNumberOfStreams () |
| Gets the maximum recommended number of streams. | |
| virtual nmm_float | getMaxOutgoingBandwidth () |
| Gets the maximum recommended outgoing bandwidth. | |
| virtual nmm_float | getMaxCPULoad () |
| Gets the maximum recommended CPU load. | |
| virtual nmm_float | getMaxDiskUsage () |
| Gets the maximum recommended disk usage. | |
| virtual void | resetExceptionCounter (const nmm_uint32 &throwing_value=1, const nmm_uint32 &exception_counter=0) |
| This method is for testing only and resets the internal exception counter to 0. | |
Static Public Attributes | |
| static const char * | ITVCaster_type = "ITVCaster" |
| static const char * | getStreamingModes_event = "ITVCaster::getStreamingModes" |
| static const char * | getStreams_event = "ITVCaster::getStreams" |
| static const char * | getDVBCards_event = "ITVCaster::getDVBCards" |
| static const char * | getClients_event = "ITVCaster::getClients" |
| static const char * | getProcessingHosts_event = "ITVCaster::getProcessingHosts" |
| static const char * | getChannelList_event = "ITVCaster::getChannelList" |
| static const char * | getCurrentChannels_event = "ITVCaster::getCurrentChannels" |
| static const char * | getSignalInformations_event = "ITVCaster::getSignalInformations" |
| static const char * | getClientChannelList_event = "ITVCaster::getClientChannelList" |
| static const char * | discoverDVBCards_event = "ITVCaster::discoverDVBCards" |
| static const char * | discoverClients_event = "ITVCaster::discoverClients" |
| static const char * | discoverProcessingHosts_event = "ITVCaster::discoverProcessingHosts" |
| static const char * | updateDVBConfig_event = "ITVCaster::updateDVBConfig" |
| static const char * | updateCardName_event = "ITVCaster::updateCardName" |
| static const char * | updateChannelAssignment_event = "ITVCaster::updateChannelAssignment" |
| static const char * | updateClientAssignment_event = "ITVCaster::updateClientAssignment" |
| static const char * | updateClientConfig_event = "ITVCaster::updateClientConfig" |
| static const char * | importChannelsConfig_event = "ITVCaster::importChannelsConfig" |
| static const char * | exportChannelsConfig_event = "ITVCaster::exportChannelsConfig" |
| static const char * | importTransponderList_event = "ITVCaster::importTransponderList" |
| static const char * | exportTransponderList_event = "ITVCaster::exportTransponderList" |
| static const char * | startChannelSearch_event = "ITVCaster::startChannelSearch" |
| static const char * | stopChannelSearch_event = "ITVCaster::stopChannelSearch" |
| static const char * | getInitialTuningFiles_event = "ITVCaster::getInitialTuningFiles" |
| static const char * | getSearchTransponders_event = "ITVCaster::getSearchTransponders" |
| static const char * | getSearchCompletedTransponders_event = "ITVCaster::getSearchCompletedTransponders" |
| static const char * | getNumberOfStreams_event = "ITVCaster::getNumberOfStreams" |
| static const char * | getOutgoingBandwidthGbE_event = "ITVCaster::getOutgoingBandwidthGbE" |
| static const char * | getOutgoingBandwidthMgmt_event = "ITVCaster::getOutgoingBandwidthMgmt" |
| static const char * | getCPULoad_event = "ITVCaster::getCPULoad" |
| static const char * | getDiskUsageAll_event = "ITVCaster::getDiskUsageAll" |
| static const char * | getDiskUsageHome_event = "ITVCaster::getDiskUsageHome" |
| static const char * | getDiskUsageVideo_event = "ITVCaster::getDiskUsageVideo" |
| static const char * | getPercentageDiskUsageHome_event = "ITVCaster::getPercentageDiskUsageHome" |
| static const char * | getPercentageDiskUsageAll_event = "ITVCaster::getPercentageDiskUsageAll" |
| static const char * | getPercentageDiskUsageVideo_event = "ITVCaster::getPercentageDiskUsageVideo" |
| static const char * | getTotalMemory_event = "ITVCaster::getTotalMemory" |
| static const char * | getUsedMemory_event = "ITVCaster::getUsedMemory" |
| static const char * | getFreeMemory_event = "ITVCaster::getFreeMemory" |
| static const char * | getPercentageMemoryUsage_event = "ITVCaster::getPercentageMemoryUsage" |
| static const char * | getTotalSwapSpace_event = "ITVCaster::getTotalSwapSpace" |
| static const char * | getUsedSwapSpace_event = "ITVCaster::getUsedSwapSpace" |
| static const char * | getFreeSwapSpace_event = "ITVCaster::getFreeSwapSpace" |
| static const char * | getPercentageSwapSpaceUsage_event = "ITVCaster::getPercentageSwapSpaceUsage" |
| static const char * | getMaxNumberOfStreams_event = "ITVCaster::getMaxNumberOfStreams" |
| static const char * | getMaxOutgoingBandwidth_event = "ITVCaster::getMaxOutgoingBandwidth" |
| static const char * | getMaxCPULoad_event = "ITVCaster::getMaxCPULoad" |
| static const char * | getMaxDiskUsage_event = "ITVCaster::getMaxDiskUsage" |
| static const char * | resetExceptionCounter_event = "ITVCaster::resetExceptionCounter" |
Definition at line 75 of file ITVCaster.hpp.
| NMM::ITVCaster::ITVCaster | ( | ) | [inline] |
Definition at line 77 of file ITVCaster.hpp.
| NMM::ITVCaster::ITVCaster | ( | NMM::NMMObject & | parent | ) | [inline] |
Definition at line 79 of file ITVCaster.hpp.
| virtual NMM::ITVCaster::~ITVCaster | ( | ) | [inline, virtual] |
Definition at line 81 of file ITVCaster.hpp.
| virtual string NMM::ITVCaster::getInterfaceType | ( | ) | const [inline, virtual] |
This method returns the typename of this interface.
Reimplemented from NMM::IStreamControlCorporate.
Definition at line 85 of file ITVCaster.hpp.
| NMM::Interface* NMM::ITVCaster::copy | ( | ) | const [inline, virtual] |
Virtual Copy Constructor.
Reimplemented from NMM::IStreamControlCorporate.
Definition at line 87 of file ITVCaster.hpp.
| NMM::ITVCaster::DECLARE_USING | ( | USED_METHOD_NAME | ) |
This interface is used.
This is an empty method which must be overloaded in all subclasses and implemented in the .cpp file (it must not be inlined!). Its purpose is to force the linker to link against the library containing he interface class definition.
This method is generated automatically by the IDL compiler.
Reimplemented from NMM::IStreamControlCorporate.
| vector< string > NMM::ITVCaster::getStreamingModes | ( | ) | [virtual] |
Get streaming modes.
Returns the names pf all available streaming modes.
Definition at line 37 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< StreamEntry > NMM::ITVCaster::getStreams | ( | ) | [virtual] |
Gets information about all streams.
Returns information about all currently active streams.
Definition at line 50 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< DVBCardEntry > NMM::ITVCaster::getDVBCards | ( | ) | [virtual] |
Gets information about all DVB devices.
Gets information all available DVB devices and their current configuration.
Definition at line 63 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< ClientEntry > NMM::ITVCaster::getClients | ( | ) | [virtual] |
Gets information about all NMM clients.
Gets information about all NMM clients and their current configuration.
Definition at line 76 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< ClientEntry > NMM::ITVCaster::getProcessingHosts | ( | ) | [virtual] |
Gets information about all NMM processing hosts.
Gets information about all NMM processing hosts and their current configuration.
Definition at line 89 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< string > NMM::ITVCaster::getChannelList | ( | const string & | dvb_host, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Gets the channel list for a specific DVB device.
Gets the list of known channels from a DVB device on the system with the given card ID.
| dvb_host | Hostname of system on which DVB device is installed | |
| card_id | Card ID of DVB device on the given system |
| InvalidDeviceException | Thrown if the specified device is invalid |
Definition at line 102 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< nmm_int32 > NMM::ITVCaster::getCurrentChannels | ( | const string & | dvb_host, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Gets the current channel list for a specific DVB device.
Gets the list of currently available channels from a DVB device on the system with the given card ID.
| dvb_host | Hostname of system on which DVB device is installed | |
| card_id | Card ID of DVB device on the given system |
| InvalidDeviceException | Thrown if the specified device is invalid |
Definition at line 118 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< SignalInformation > NMM::ITVCaster::getSignalInformations | ( | const string & | dvb_host, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Get signal information for all channels.
Gets the signal information for all known channels from a DVB device on the system with the given card ID.
| dvb_host | Hostname of system on which DVB device is installed | |
| card_id | Card ID of DVB device on the given system |
| InvalidDeviceException | Thrown if the specified device is invalid |
Definition at line 134 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< string > NMM::ITVCaster::getClientChannelList | ( | const string & | client_id | ) | throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) [virtual] |
Gets the channel list for a specific client.
Gets the list of known channels from the DVB device which is assigned to the NMM client with the the given client ID.
| client_id | Client ID of the NMM client |
| InvalidClientException | Thrown if the specified client_id is invalid | |
| InvalidDeviceException | Thrown if the specified assigned is invalid |
Definition at line 150 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< DVBCardEntry > NMM::ITVCaster::discoverDVBCards | ( | ) | [virtual] |
Discovers all DVB devices in the network.
Discovers all DVB devices in the network as follows:
Definition at line 165 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< ClientEntry > NMM::ITVCaster::discoverClients | ( | ) | [virtual] |
Discovers all NMM clients in the network.
Discovers all NMM clients which run a serverregistry in the network
Definition at line 178 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| vector< ClientEntry > NMM::ITVCaster::discoverProcessingHosts | ( | ) | [virtual] |
Discovers all NMM processing hosts in the network.
Searches all NMM hosts in the network which can be used for processing of specific tasks (e.g. remultiplexing)
Definition at line 191 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::updateDVBConfig | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const string & | streaming_mode | |||
| ) | throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) [virtual] |
Sets the streaming mode of a DVB device.
Sets the streaming mode of the DVB device with the given card ID on the given system. The list of available streaming modes can be obtained by calling getStreamingModes().
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| streaming_mode | Name of streaming mode to be set |
| InvalidDeviceException | Thrown if the specified device is invalid | |
| UpdateConfigFailedException | Thrown if updating of the configuration failed |
Definition at line 204 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::updateCardName | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const string & | card_name | |||
| ) | throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) [virtual] |
Sets the card name of a specific DVB device.
Sets the card name of the DVB device with the given card ID on the given system. The card name is purely descriptive and optional.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| card_name | Card name to be set |
| InvalidDeviceException | Thrown if the specified device is invalid | |
| UpdateConfigFailedException | Thrown if updating of the configuration failed |
Definition at line 218 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::updateChannelAssignment | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const nmm_int32 & | channel_id, | |||
| const string & | remux_location | |||
| ) | throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) [virtual] |
Assigns a channel to a DVB device configured for Corporate Mode.
Sets the channel of a DVB device configured for Corporate Mode. This makes the channel and all other channels on the same transponder available for streaming.
Also assigns an NMM processing host to the card for remultiplexing. Typically, this is the host on which the DVB device is installed (i.e. remux_location and dvb_source_hostname are identical). However, it is possible to use any available NMM processing host.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| channel_id | Index of the channel in the channel list | |
| remux_location | Host name of NMM processing host for remultiplexing |
| InvalidDeviceException | Thrown if the specified device is invalid | |
| UpdateConfigFailedException | Thrown if updating of the configuration failed |
Definition at line 232 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::updateClientAssignment | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const string & | client_id | |||
| ) | throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) [virtual] |
Assigns a DVB device to an NMM client.
Assigns the DVB device with the given card ID on the given system to the NMM client with the given client ID. The DVB device must be configured for Home Mode.
A DVB device may be assigned to at most one client. To assign a DVB device to no client, pass "None" or an empty string as client_id .
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| client_id | Client ID (MAC address) or "None" or "" |
| InvalidClientException | Thrown if the specified client is invalid | |
| InvalidDeviceException | Thrown if the specified device is invalid |
Definition at line 247 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::updateClientConfig | ( | const string & | client_name, | |
| const string & | client_ip, | |||
| const string & | client_mac | |||
| ) | throw (const std::exception&, const InvalidClientException&, const InvalidDeviceException&) [virtual] |
Updates the configuration of an NMM client in Home Mode.
This method updates the configuration (client name and IP address) of the NMM client with the given client ID.
| client_name | New name of the client | |
| client_ip | New IP address of the client | |
| client_mac | Client ID (MAC address) |
| InvalidClientException | Thrown if the specified client is invalid |
Definition at line 261 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::importChannelsConfig | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const vector< string > & | channels | |||
| ) | throw (const std::exception&, const InvalidDeviceException&, const UpdateConfigFailedException&) [virtual] |
Imports the channel configuration of a specific DVB device.
Imports the channel configuration of the DVB device with the given card ID on the given system from a list of channel configuration strings. The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| channels | Array with channel configuration strings |
| InvalidDeviceException | Thrown if the specified device is invalid | |
| UpdateConfigFailedException | Thrown if import of the channels config failed |
Definition at line 275 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| vector< string > NMM::ITVCaster::exportChannelsConfig | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&, const InvalidConfigException&) [virtual] |
Exports the channel configuration of a specific DVB device.
Exports the channel configuration of the DVB device with the given card ID on the given system to a list of channel configuration strings. The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device |
| InvalidDeviceException | Thrown if the specified device is invalid | |
| InvalidConfigException | Thrown if export failed |
Definition at line 289 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::importTransponderList | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const vector< string > & | transponder_list, | |||
| const string & | filename | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Imports a transponder list of a specific DVB device.
Imports a transponder list from a file of the DVB device with the given card ID on the given system.
The file is stored in the directory $HOME/.nmm/<DEVICE_TYPE> where <DEVICE_TYPE> is the type of the DVB device (e.g. "DVB-S2").
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| transponder_list | Array with transponder configuration strings | |
| filename | Name of file containing the transponder list |
Definition at line 305 of file ITVCaster.cpp.
References NMM::FAILURE, filename, NMM::Event::getException(), and NMM::Interface::sendEvent().
| vector< string > NMM::ITVCaster::exportTransponderList | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const string & | filename | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Exports a transponder list of a specific DVB device.
Exports a transponder list of the DVB device with the given card ID on the given system to a file.
The file is stored in the directory $HOME/.nmm/<DEVICE_TYPE> where <DEVICE_TYPE> is the type of the DVB device (e.g. "DVB-S2").
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| filename | Name of file containing the transponder list |
Definition at line 320 of file ITVCaster.cpp.
References NMM::FAILURE, filename, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::startChannelSearch | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id, | |||
| const string & | initial_tuning_file | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Starts a channel search.
Starts a channel search on the DVB device with the given card ID on the given system by tuning to each transponder of the initial tuning file and parsing PAT, PMT and SDT tables.
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device | |
| initial_tuning_file | Location of file which contains initial tuning information |
Definition at line 337 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::stopChannelSearch | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Stops a channel search.
Stops a running channel search on the DVB device with the given card ID on the given system.
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device |
Definition at line 351 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
| vector< string > NMM::ITVCaster::getInitialTuningFiles | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Gets a list of initial tuning files.
Gets a list of initial tuning files located in the directory <RESOURCE_DIR>/dvb/initial_tuning_files/<DEVICE_TYPE> for the DVB device with the given card ID on the given system, where <DEVICE_TYPE> is the type of the DVB device (e.g. "DVB-S2") and <RESOURCE_DIR> is a subdirectory of the installation directory of the TVCaster software.
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device |
Definition at line 364 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_int32 NMM::ITVCaster::getSearchTransponders | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Gets the number of transponders used by the channel search.
Gets the number of transponders which have been loaded from the initial tuning file and are used by the channel search.
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device |
Definition at line 380 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_int32 NMM::ITVCaster::getSearchCompletedTransponders | ( | const string & | dvb_source_hostname, | |
| const nmm_int32 & | card_id | |||
| ) | throw (const std::exception&, const InvalidDeviceException&) [virtual] |
Gets the number of completed transponders.
Gets the number of transponders which have already been searched by the channel search.
The streaming mode of the DVB device must be set to Configure Mode.
| dvb_source_hostname | Host name of system where DVB device is installed | |
| card_id | Card ID of DVB device |
Definition at line 396 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getNumberOfStreams | ( | ) | [virtual] |
Gets the number of streams.
This method returns the actual number of streams on both, GbE (gigabit ethernet) and Mgmt (management) port.
Definition at line 412 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getOutgoingBandwidthGbE | ( | ) | [virtual] |
Gets the outgoing bandwidth of the GbE (gigabit ethernet) port.
This method returns the outgoing bandwidth of the GbE (gigabit ethernet) port in Mbps.
Definition at line 425 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getOutgoingBandwidthMgmt | ( | ) | [virtual] |
Gets the outgoing bandwidth of the Mgmt (management) port.
This method returns the outgoing bandwidth of the Mgmt (management) port in Mbps.
Definition at line 438 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getCPULoad | ( | ) | [virtual] |
Gets the CPU load.
This method returns the CPU load of the server
Definition at line 451 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| string NMM::ITVCaster::getDiskUsageAll | ( | ) | [virtual] |
Get the disk usage of the "/" directory.
This method returns the disk usage of the "/" directory.
Definition at line 464 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| string NMM::ITVCaster::getDiskUsageHome | ( | ) | [virtual] |
Get the disk usage of the "/home" directory.
This method returns he disk usage of the "/home" directory.
Definition at line 477 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| string NMM::ITVCaster::getDiskUsageVideo | ( | ) | [virtual] |
Get the disk usage of the "/home/nmm/video" directory.
This method returns he disk usage of the "/home/nmm/video" directory.
Definition at line 490 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getPercentageDiskUsageHome | ( | ) | [virtual] |
Get the percentage disk usage of the "/home" directory in percent.
This method returns the percentage disk usage of the "/home" directory.
Definition at line 503 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getPercentageDiskUsageAll | ( | ) | [virtual] |
Get the percentage disk usage of the "/" directory in percent.
This method returns the percentage disk usage of the "/" directory.
Definition at line 516 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getPercentageDiskUsageVideo | ( | ) | [virtual] |
Get the percentage disk usage of the "/home/nmm/video" directory in percent.
This method returns the percentage disk usage of the "/home/nmm/video" directory.
Definition at line 529 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getTotalMemory | ( | ) | [virtual] |
Get the total amount of physical memory.
This method returns the total amount of physical memory.
Definition at line 542 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getUsedMemory | ( | ) | [virtual] |
Get the used amount of physical memory.
This method returns the amount of physical memory used by all processes.
Definition at line 555 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getFreeMemory | ( | ) | [virtual] |
Get the free amount of physical memory.
This method returns the free amount of physical memory.
Definition at line 568 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getPercentageMemoryUsage | ( | ) | [virtual] |
Get the percentage of used physical memory.
This method returns the percentage of total physical memory used by all processes.
Definition at line 581 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getTotalSwapSpace | ( | ) | [virtual] |
Get the total amount of swap space.
This method returns the total amount of swap space.
Definition at line 594 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getUsedSwapSpace | ( | ) | [virtual] |
Get the used amount of swap space.
This method returns the amount of swap space used by all processes.
Definition at line 607 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getFreeSwapSpace | ( | ) | [virtual] |
Get the free amount of swap space.
This method returns the free amount of swap space.
Definition at line 620 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getPercentageSwapSpaceUsage | ( | ) | [virtual] |
Get the percentage of used swap space.
This method returns the percentage of total swap space used by all processes.
Definition at line 633 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_uint32 NMM::ITVCaster::getMaxNumberOfStreams | ( | ) | [virtual] |
Gets the maximum recommended number of streams.
This method returns the maximum recommended number of streams.
Definition at line 646 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getMaxOutgoingBandwidth | ( | ) | [virtual] |
Gets the maximum recommended outgoing bandwidth.
This method returns the maximum recommended outgoing bandwidth.
Definition at line 659 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getMaxCPULoad | ( | ) | [virtual] |
Gets the maximum recommended CPU load.
This method returns the maximum recommended CPU load.
Definition at line 672 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| nmm_float NMM::ITVCaster::getMaxDiskUsage | ( | ) | [virtual] |
Gets the maximum recommended disk usage.
This method returns maximum recommended disk usage.
Definition at line 685 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), NMM::TValue< T >::getRValue(), and NMM::Interface::sendEvent().
| void NMM::ITVCaster::resetExceptionCounter | ( | const nmm_uint32 & | throwing_value = 1, |
|
| const nmm_uint32 & | exception_counter = 0 | |||
| ) | [virtual] |
This method is for testing only and resets the internal exception counter to 0.
| throwing_value | specifies how much test exception should occur before an exception is thrown. Default value is 1. Note that a value of 0 disables exception test. | |
| exception_counter | specifies how many exception have been passed so far. Default value which resets the counter |
Definition at line 698 of file ITVCaster.cpp.
References NMM::FAILURE, NMM::Event::getException(), and NMM::Interface::sendEvent().
const char * NMM::ITVCaster::ITVCaster_type = "ITVCaster" [static] |
Definition at line 81 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getStreamingModes_event = "ITVCaster::getStreamingModes" [static] |
Definition at line 89 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getStreams_event = "ITVCaster::getStreams" [static] |
Definition at line 90 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getDVBCards_event = "ITVCaster::getDVBCards" [static] |
Definition at line 91 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getClients_event = "ITVCaster::getClients" [static] |
Definition at line 92 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getProcessingHosts_event = "ITVCaster::getProcessingHosts" [static] |
Definition at line 93 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getChannelList_event = "ITVCaster::getChannelList" [static] |
Definition at line 94 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getCurrentChannels_event = "ITVCaster::getCurrentChannels" [static] |
Definition at line 95 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getSignalInformations_event = "ITVCaster::getSignalInformations" [static] |
Definition at line 96 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getClientChannelList_event = "ITVCaster::getClientChannelList" [static] |
Definition at line 97 of file ITVCaster.hpp.
const char * NMM::ITVCaster::discoverDVBCards_event = "ITVCaster::discoverDVBCards" [static] |
Definition at line 98 of file ITVCaster.hpp.
const char * NMM::ITVCaster::discoverClients_event = "ITVCaster::discoverClients" [static] |
Definition at line 99 of file ITVCaster.hpp.
const char * NMM::ITVCaster::discoverProcessingHosts_event = "ITVCaster::discoverProcessingHosts" [static] |
Definition at line 100 of file ITVCaster.hpp.
const char * NMM::ITVCaster::updateDVBConfig_event = "ITVCaster::updateDVBConfig" [static] |
Definition at line 101 of file ITVCaster.hpp.
const char * NMM::ITVCaster::updateCardName_event = "ITVCaster::updateCardName" [static] |
Definition at line 102 of file ITVCaster.hpp.
const char * NMM::ITVCaster::updateChannelAssignment_event = "ITVCaster::updateChannelAssignment" [static] |
Definition at line 103 of file ITVCaster.hpp.
const char * NMM::ITVCaster::updateClientAssignment_event = "ITVCaster::updateClientAssignment" [static] |
Definition at line 104 of file ITVCaster.hpp.
const char * NMM::ITVCaster::updateClientConfig_event = "ITVCaster::updateClientConfig" [static] |
Definition at line 105 of file ITVCaster.hpp.
const char * NMM::ITVCaster::importChannelsConfig_event = "ITVCaster::importChannelsConfig" [static] |
Definition at line 106 of file ITVCaster.hpp.
const char * NMM::ITVCaster::exportChannelsConfig_event = "ITVCaster::exportChannelsConfig" [static] |
Definition at line 107 of file ITVCaster.hpp.
const char * NMM::ITVCaster::importTransponderList_event = "ITVCaster::importTransponderList" [static] |
Definition at line 108 of file ITVCaster.hpp.
const char * NMM::ITVCaster::exportTransponderList_event = "ITVCaster::exportTransponderList" [static] |
Definition at line 109 of file ITVCaster.hpp.
const char * NMM::ITVCaster::startChannelSearch_event = "ITVCaster::startChannelSearch" [static] |
Definition at line 110 of file ITVCaster.hpp.
const char * NMM::ITVCaster::stopChannelSearch_event = "ITVCaster::stopChannelSearch" [static] |
Definition at line 111 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getInitialTuningFiles_event = "ITVCaster::getInitialTuningFiles" [static] |
Definition at line 112 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getSearchTransponders_event = "ITVCaster::getSearchTransponders" [static] |
Definition at line 113 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getSearchCompletedTransponders_event = "ITVCaster::getSearchCompletedTransponders" [static] |
Definition at line 114 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getNumberOfStreams_event = "ITVCaster::getNumberOfStreams" [static] |
Definition at line 115 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getOutgoingBandwidthGbE_event = "ITVCaster::getOutgoingBandwidthGbE" [static] |
Definition at line 116 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getOutgoingBandwidthMgmt_event = "ITVCaster::getOutgoingBandwidthMgmt" [static] |
Definition at line 117 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getCPULoad_event = "ITVCaster::getCPULoad" [static] |
Definition at line 118 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getDiskUsageAll_event = "ITVCaster::getDiskUsageAll" [static] |
Definition at line 119 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getDiskUsageHome_event = "ITVCaster::getDiskUsageHome" [static] |
Definition at line 120 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getDiskUsageVideo_event = "ITVCaster::getDiskUsageVideo" [static] |
Definition at line 121 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getPercentageDiskUsageHome_event = "ITVCaster::getPercentageDiskUsageHome" [static] |
Definition at line 122 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getPercentageDiskUsageAll_event = "ITVCaster::getPercentageDiskUsageAll" [static] |
Definition at line 123 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getPercentageDiskUsageVideo_event = "ITVCaster::getPercentageDiskUsageVideo" [static] |
Definition at line 124 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getTotalMemory_event = "ITVCaster::getTotalMemory" [static] |
Definition at line 125 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getUsedMemory_event = "ITVCaster::getUsedMemory" [static] |
Definition at line 126 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getFreeMemory_event = "ITVCaster::getFreeMemory" [static] |
Definition at line 127 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getPercentageMemoryUsage_event = "ITVCaster::getPercentageMemoryUsage" [static] |
Definition at line 128 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getTotalSwapSpace_event = "ITVCaster::getTotalSwapSpace" [static] |
Definition at line 129 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getUsedSwapSpace_event = "ITVCaster::getUsedSwapSpace" [static] |
Definition at line 130 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getFreeSwapSpace_event = "ITVCaster::getFreeSwapSpace" [static] |
Definition at line 131 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getPercentageSwapSpaceUsage_event = "ITVCaster::getPercentageSwapSpaceUsage" [static] |
Definition at line 132 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getMaxNumberOfStreams_event = "ITVCaster::getMaxNumberOfStreams" [static] |
Definition at line 133 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getMaxOutgoingBandwidth_event = "ITVCaster::getMaxOutgoingBandwidth" [static] |
Definition at line 134 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getMaxCPULoad_event = "ITVCaster::getMaxCPULoad" [static] |
Definition at line 135 of file ITVCaster.hpp.
const char * NMM::ITVCaster::getMaxDiskUsage_event = "ITVCaster::getMaxDiskUsage" [static] |
Definition at line 136 of file ITVCaster.hpp.
const char * NMM::ITVCaster::resetExceptionCounter_event = "ITVCaster::resetExceptionCounter" [static] |
Definition at line 137 of file ITVCaster.hpp.
1.5.5
Network-Integrated Multimedia Middleware (NMM)This document was generated automatically from the Open Source version of NMM released under the GNU General Public License. This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.