- 04 Feb, 2009 2 commits
-
-
Steven Murray authored
letter P at the end of the name. There are now two macros to help generate log messages with the contextual information of file, line and function: CASTOR_DLF_WRITEC CASTOR_DLF_WRITECP The first macro logs a message without parameters accept for the three contextual ones of file, line and function. The second macro logs a message with parameters to which the three contextual ones are prepended. The meaning of the letter C at the end of the CASTOR_DLF_WRITEC is 'C'onextual log. The meaning iof the letter P at the end of CASTOR_DLF_WRITECP is with 'P'arameters.
-
Steven Murray authored
This macro should be used when it is desirable to include the file, line and function context information in a log. It is advised to include such information when logging an error for the developers, but not to use it for monitoring logs where operators are informed of what is happening and they do not need or want to know the details of the source code. The CASTOR_DLF_WRITEPC macro macro generates the file, line and function context information automatically and passes it on down the DLF logging chain. This means developers do not need to use the __FILE__, __LINE__, __PRETTY_FUNCTION__ macros in their application code when logging. Here is an example of using this macro: try { ... } catch(castor::exception::Exception &ex) { castor::dlf::Param params[] = { castor::dlf::Param("volReqId", vdqmJobRequest.tapeRequestId), castor::dlf::Param("Message" , ex.getMessage().str() ), castor::dlf::Param("Code" , ex.code() )}; CASTOR_DLF_WRITEPC(cuuid, DLF_LVL_ERROR, AGGREGATOR_MAIN_SELECT_FAILED, params); }
-
- 03 Feb, 2009 5 commits
-
-
Steven Murray authored
loop.
-
Steven Murray authored
request messages. Support is now given for file and tape request messages with and without error appendices.
-
Steven Murray authored
the copy and paste demon.
-
Steven Murray authored
readable log messages.
-
Steven Murray authored
it from RtcpAcknowledgeMsgBody to RtcpAcknowledgeMsg.
-
- 02 Feb, 2009 5 commits
-
-
Steven Murray authored
test out some theories. We have now managed to get the disk and tape I/O threads of rtcpd to connect back to us and ask for more work. The 'crazy' code will need to be re-written into something structured.
-
Steven Murray authored
the reception of an RTCP message into two separate function calls; the reception of the header and then the reception of the body. This modification was needed in order to deal with the next step of the RTCOPY protocol where the main select loop has to deal with different types of incoming RTCOPY messages comming from different RTCPD threads.i Immediately after a call to select which indicates an incoming message, the tape aggregator needs to use the Transceiever to just read in the RTCP message header so it can then dispatch the receptionm of the body of the incomming message to the appropriate Transceiver body reception function.
-
Steven Murray authored
bits in the file descriptpor set is taken into account.
-
Steven Murray authored
Kerberos V.
-
Steven Murray authored
the tape and disk I/O threads of RTCPD: castor::tape::aggregator::VdqmRequestHandlerThread::processTapeDiskIoConnections
-
- 31 Jan, 2009 1 commit
-
-
Steven Murray authored
function in order to allow developers to call the function without the need to specify the size of the params array: template<int n> void dlf_writep (Cuuid_t uuid, int severity, int message_no, castor::dlf::Param (¶ms)[n], struct Cns_fileid *ns_invariant = 0) throw() { dlf_writep(uuid, severity, message_no, n, params, 0); } The template causes the size of the array to be determied at compile time. A pointer to castor::dlf::Param will of course not work. The original castor::dlf::dlf_writep function can be used as usual in this case. The following code snippet shows an example of using the new template: castor::dlf::Param params[] = { castor::dlf::Param("volReqId", vdqmJobRequest.tapeRequestId), castor::dlf::Param("vid" , request.vid ), castor::dlf::Param("vsn" , request.vsn ), castor::dlf::Param("label" , request.label ), castor::dlf::Param("devtype" , request.devtype ), castor::dlf::Param("density" , request.density )}; castor::dlf::dlf_writep(cuuid, DLF_LVL_SYSTEM, AGGREGATOR_GAVE_VOLUME_INFO, params);
-
- 30 Jan, 2009 6 commits
-
-
Steven Murray authored
the initial connection from RTCPD. The main select loop is now in place so that we can see many messages and connections at the same time. However we still have not seen the incoming connections we expect for the tape and disk I/O threads.
-
Dennis Waldron authored
-
Dennis Waldron authored
-
Steven Murray authored
will deal with the following: * The incoming callback connection request from the tape I/O thread. * The incoming callback connection requests from the disk I/O threads. * Any incoming messages sent from RTCPD over any of the connected sockets, including the initial RTCPD connection.
-
Steven Murray authored
will facilitate implementing the RTPCD prototcol in a multi-threaded server. We need to be able to create an RTCPD callback listener socket within the run function of a thread and then accept the initial connection made by RTCPD (as opposed to the 4 or more connections we will later receive from the TAPE IO and DISK IO threads). This accept must have a timeout otherwise we could easily have a server that simply locks up if RTCPD never connects back.
-
Giulia Taurelli authored
-
- 29 Jan, 2009 4 commits
-
-
Steven Murray authored
own function: castor::tape:aggregator::VdqmRequestHandlerThread::processJobSubmissionRequest Started to refactorise out the giving of file lists to RTCPD.
-
Giulia Taurelli authored
-
Giulia Taurelli authored
-
Arne Wiebalck authored
-
- 28 Jan, 2009 5 commits
-
-
Sebastien Ponce authored
-
Giulia Taurelli authored
-
Giulia Taurelli authored
-
Ignacio Reguero authored
-
Ignacio Reguero authored
Fix checksum comparison so that is does give false positives due to string comparison of a hex number with a 0 on the left.
-
- 27 Jan, 2009 8 commits
-
-
Nicola Bessone authored
check set of messages which occure after the sending of the initial request list and before the creation of the abort/ping thread of RTPCD.
-
Dennis Waldron authored
-
Giulia Taurelli authored
-
Giulia Taurelli authored
extended gettapestocheck with the cleanup. changed the way that filerecallfailed is called by updateRecRetryPolicy.
-
Giulia Taurelli authored
-
Giulia Taurelli authored
-
Giulia Taurelli authored
added the procedures for the tapegateway, forwardport of the fix for besttapecopyforstream and resetstreams
-
Giulia Taurelli authored
-
- 26 Jan, 2009 4 commits
-
-
Giulia Taurelli authored
-
Dennis Waldron authored
-
Dennis Waldron authored
-
Dennis Waldron authored
Fixed: 'assignment discards qualifiers from pointer target type' compilation warning. Also lower-cased the secOn flag to conform to name server variable naming conventions
-