00001 /* 00002 * Copyright (C) 2006, Jose Renato Santos. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 /////////////////////////////////////////////////////////////////////////////// 00019 // StreamManagerTypes.h : Data types used for Stream Manager Interface 00020 /////////////////////////////////////////////////////////////////////////////// 00021 00022 #ifndef __STREAMMANAGERTYPES_H_ 00023 #define __STREAMMANAGERTYPES_H_ 00024 00025 class CSystemManager; 00026 class CObjectManager; 00027 class CRouter; 00028 00029 // Stream Config 00030 typedef struct 00031 { 00032 int BlockSize; 00033 int MaxStreams; 00034 double TotalRate; 00035 double NRTReservedRate; 00036 char *FileRoot; 00037 int NumberOfBuffersForEachClient; 00038 int BurstSizeOfEachClient; 00039 bool CollectMeasures; 00040 bool UseNewCAC; 00041 bool UseServerSideBuffers; 00042 double NetworkRate; 00043 double EstimatedTimeParameter; 00044 int NumberOfEmptyTimes; 00045 double MaxIntervalEmpty; 00046 // ------------------------------------------------------------------------ 00047 int MaxPending; 00048 int MaxDiskQueueSize; 00049 int nDisks; 00050 int ExtraStreamRequests; 00051 CObjectManager *ObjectManager; 00052 CSystemManager *SystemManager; 00053 CRouter *Router; 00054 // Novo parametro com o valor inteiro que define (se for diferente de 0) se 00055 // o log da classe deve ser gerado. 00056 int GenerateLogs; 00057 // Novo parametro com o nome do caminho do diretorio onde o log deve ser 00058 // salvo. 00059 char *LogsDirectory; 00060 // Nova variaval com o tempo de timeout das conexoes TCP por inatividade. 00061 unsigned int ClientsTimeOut; 00062 } StreamManagerConfig; 00063 00064 #endif //__STREAMMANAGERTYPES_H_ 00065 /////////////////////////////////////////////////////////////////////////////