/*************************************************************************** Replication °ü·Ã Data °´Ã¼ Á¤ÀÇ ----------------------------------------- begin : 2010/03/09 copyright : (C) 2005 Solbox Inc. author : Storage Dev Team email : storage.sd@solbox.com version : 3.3 CopyRight(C) 2005 Solbox Inc. All Rights reserved. Redistribution and use in source and binary forms, with or with out modification, are not permitted in outside of Solbox Inc. ***************************************************************************/ #ifndef __REPLICATION_DATA_H__ #define __REPLICATION_DATA_H__ #include #include #include // CSourceData class class CSourceData { public : // RCDB ÀÇ URI Á¤º¸ std::string m_szURI; // RCDBÀÇ filename_hash Á¤º¸ std::string m_szFileNameHash; // RCDBÀÇ hostname Á¤º¸ std::string m_szOriginHostName; // NEW 2014-06-16 // ¼­ºñ½ºº° RCDB table ºÐ¸® (RCDB ½Å±Ô Çü»ó)¿¡ µû¶ó... // Query 󸮰¡ °£ÆíÇϵµ·Ï ¼­ºñ½º Á¤º¸ Çʵå Ãß°¡ (RCDB sp_svc_tran_id, CCDB svc_seq ) std::string m_szServiceSeq; // ÆÄÀÏÀÇ Å©±â. RCDBÀÇ get_content_length unsigned long long m_nContentLength; // Replication ÇØ¾ßÇÒ °¹¼ö int m_nReplicationCount; }; // CRetryData class class CRetryData { public : // ½ÇÆÐ °³¼ö unsigned int m_uFailCount; // ½ÇÆÐ ½Ã°¢(default=now) time_t m_timeFailed; // ¼º°øÇÑ FHS Á¤º¸ std::list m_listSuccessHost; // ÀÛ¾÷ ½Ãµµ ´ë»ó(source Á¤º¸) CSourceData m_OriginData; // »ý¼ºÀÚ. ÇöÀç ½Ã°¢À¸·Î time¼³Á¤ inline CRetryData() { time(&m_timeFailed); } }; // CCompleteData class class CCompleteData { public : // content °¡ »ý¼ºµÈ Àåºñ host name std::string m_szTargetHostName; // »ý¼ºµÈ content ÀÇ filename_hash Á¤º¸ std::string m_szTargetFileNameHash; // ¿øº» Á¤º¸ CSourceData m_OriginData; }; #endif // __REPLICATION_DATA_H__