Changeset 3512
- Timestamp:
- 04/27/07 17:25:14 (6 years ago)
- Location:
- platform/logService
- Files:
-
- 5 modified
-
LogAdministrator_impl.cpp (modified) (1 diff)
-
LogConsumer_impl.cpp (modified) (4 diffs)
-
LogProducer_impl.cpp (modified) (1 diff)
-
LogStatus_impl.cpp (modified) (1 diff)
-
LogStatus_impl.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/logService/LogAdministrator_impl.cpp
r3510 r3512 14 14 void LogAdministrator_impl::set_max_size(CORBA::ULongLong size) 15 15 { 16 // N ot true maximum17 log_record_sequence->maximum(size);16 // Needs defining 17 return; 18 18 } 19 19 -
platform/logService/LogConsumer_impl.cpp
r3510 r3512 23 23 // Return pointer is callers responsibilty to deallocate 24 24 CosLwLog::LogRecordSequence* return_sequence; 25 26 // Good enough solution until log sequences get extrememly large 27 test_mutex->acquire(); 25 28 return_sequence = new CosLwLog::LogRecordSequence(*log_record_sequence); 29 test_mutex->release(); 30 26 31 return return_sequence; 27 32 … … 32 37 CORBA::ULong& howMany, const CosLwLog::LogLevelSequence& valueList) 33 38 { 34 CosLwLog::LogRecordSequence* return_sequence; 35 return_sequence = new CosLwLog::LogRecordSequence(*log_record_sequence); 36 return return_sequence; 39 return LogConsumer_impl::retrieve_records(currentId, howMany); 37 40 } 38 41 … … 41 44 CORBA::ULong& howMany, const CosLwLog::StringSeq& valueList) 42 45 { 43 CosLwLog::LogRecordSequence* return_sequence; 44 return_sequence = new CosLwLog::LogRecordSequence(*log_record_sequence); 45 return return_sequence; 46 return LogConsumer_impl::retrieve_records(currentId, howMany); 46 47 } 47 48 … … 50 51 CORBA::ULong& howMany, const CosLwLog::StringSeq& valueList) 51 52 { 52 CosLwLog::LogRecordSequence* return_sequence; 53 return_sequence = new CosLwLog::LogRecordSequence(*log_record_sequence); 54 return return_sequence; 53 return LogConsumer_impl::retrieve_records(currentId, howMany); 55 54 } 56 55 -
platform/logService/LogProducer_impl.cpp
r3510 r3512 46 46 47 47 // Add entry to sequence 48 test_mutex->acquire(); 48 49 int indx = log_record_sequence->length(); 49 50 (*log_record_sequence)[indx] = newLogRecord; 51 test_mutex->release(); 50 52 } 51 53 -
platform/logService/LogStatus_impl.cpp
r3510 r3512 1 1 #include "LogStatus_impl.h" 2 3 #include <iostream> 2 4 3 5 LogStatus_impl::LogStatus_impl() 4 6 { 5 7 // Lock this stuff later 8 9 test_mutex = new omni_mutex(); 10 6 11 log_record_sequence = new CosLwLog::LogRecordSequence(1000); 7 12 -
platform/logService/LogStatus_impl.h
r3486 r3512 4 4 { 5 5 6 private: 7 6 8 protected: 9 omni_mutex *test_mutex; 10 7 11 CosLwLog::LogRecordSequence* log_record_sequence; 8 12 CosLwLog::OperationalState operational_state; … … 10 14 CosLwLog::LogFullAction log_full_action; 11 15 CosLwLog::AvailabilityStatus availability_status; 12 13 /*14 CosLwLog::OperationalState operationalState();15 void operationalState(CosLwLog::OperationalState);16 17 CosLwLog::AdministrativeState administrativeState();18 void administrativeState(CosLwLog::AdministrativeState);19 20 CosLwLog::LogFullAction logFullAction();21 void logFullACtion(CosLwLog::LogFullAction);22 23 CosLwLog::AvailabilityStatus ;24 void availabilityStatus(CosLwLog::AvailabilityStatus);25 */26 16 27 17 public: