pelican/server/src/AbstractChunker.cpp
/**
 * @details
 * Setup options in the configuration file:
 *
 * listen to an incoming port
 *   <connection host="dataHost" port="12345" />
 *
 * To set the stream name for the chunker
 *   <data type="streamName" />
 *
 * To set a default adapter for the specific stream
 *   <data type="streamName" adapter="AdapterType" />
 */
@details
Setup options in the configuration file.

listen to an incoming port


To set the stream name for the chunker


To set a default adapter for the specific stream

@details Setup options in the configuration file . listen to an incoming port To set the stream name for the chunker To set a default adapter for the specific stream
AbstractChunker::AbstractChunker(const ConfigNode& config)
{
    _dataManager = 0;
    _chunkTypes = config.getOptionList("data", "type");
    _adapterTypes = config.getOptionHash("data", "type", "adapter");
    _host = config.getOption("connection", "host", "");
    _port = (quint16)config.getOption("connection", "port", "0").toUInt();
    _active = true; 
}
AbstractChunker :: AbstractChunker ( const ConfigNode & config ) { _dataManager = 0 ; _chunkTypes = config . getOptionList ( " " , " " ) ; _adapterTypes = config . getOptionHash ( " " , " " , " " ) ; _host = config . getOption ( " " , " " , " " ) ; _port = ( quint16 ) config . getOption ( " " , " " , " " ) . toUInt ( ) ; _active = true ; }
@details
 Setup options in the configuration file:
@details Setup options in the configuration file :
// Initialise members. // NOTE Why do chunkers need to know adapter types... ? // NOTE host and port is only valid for socket chunkers, sort out what // happens for file chunkers. // XXX is this right?