Commit e618c95f authored by Steven Murray's avatar Steven Murray
Browse files

Replaced NotifyDriveBeforeMountStarted with more specific messages

parent 70689f36
...@@ -45,27 +45,27 @@ public: ...@@ -45,27 +45,27 @@ public:
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
virtual void tapeMountedForRead(const std::string &vid, uint32_t jid) virtual void tapeMountedForRead(const std::string &vid, const uint32_t jid)
= 0; = 0;
/** /**
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
virtual void tapeMountedForWrite(const std::string &vid, uint32_t jid) virtual void tapeMountedForWrite(const std::string &vid, const uint32_t jid)
= 0; = 0;
/** /**
* Gets information from vmgrd about the specified tape * Gets information from vmgrd about the specified tape
* *
* @param vid The volume identifier of the tape. * @param vid The volume identifier of the tape.
* @param reply The structure containing the reply from vmgrd * @return The reply from the vmgrd daemon.
*/ */
virtual void queryTape(const std::string &vid, legacymsg::VmgrTapeInfoMsgBody &reply) = 0; virtual legacymsg::VmgrTapeInfoMsgBody queryTape(const std::string &vid) = 0;
}; // class VmgrProxy }; // class VmgrProxy
......
...@@ -30,20 +30,22 @@ castor::legacymsg::VmgrProxyDummy::~VmgrProxyDummy() throw() { ...@@ -30,20 +30,22 @@ castor::legacymsg::VmgrProxyDummy::~VmgrProxyDummy() throw() {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// tapeMountedForRead // tapeMountedForRead
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyDummy::tapeMountedForRead(const std::string &vid, uint32_t jid) void castor::legacymsg::VmgrProxyDummy::tapeMountedForRead(
{ const std::string &vid, const uint32_t jid) {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// tapeMountedForWrite // tapeMountedForWrite
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyDummy::tapeMountedForWrite(const std::string &vid, uint32_t jid) void castor::legacymsg::VmgrProxyDummy::tapeMountedForWrite(
{ const std::string &vid, const uint32_t jid) {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// getTapeInfo // getTapeInfo
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyDummy::queryTape(const std::string &vid, legacymsg::VmgrTapeInfoMsgBody &reply) castor::legacymsg::VmgrTapeInfoMsgBody
{ castor::legacymsg::VmgrProxyDummy::queryTape(const std::string &vid) {
legacymsg::VmgrTapeInfoMsgBody reply;
return reply;
} }
...@@ -43,25 +43,25 @@ public: ...@@ -43,25 +43,25 @@ public:
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
void tapeMountedForRead(const std::string &vid, uint32_t jid); void tapeMountedForRead(const std::string &vid, const uint32_t jid);
/** /**
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
void tapeMountedForWrite(const std::string &vid, uint32_t jid); void tapeMountedForWrite(const std::string &vid, const uint32_t jid);
/** /**
* Gets information from vmgrd about the specified tape * Gets information from vmgrd about the specified tape
* *
* @param vid The volume identifier of the tape. * @param vid The volume identifier of the tape.
* @param reply The structure containing the reply from vmgrd * @return The reply from the vmgrd daemon.
*/ */
void queryTape(const std::string &vid, legacymsg::VmgrTapeInfoMsgBody &reply); legacymsg::VmgrTapeInfoMsgBody queryTape(const std::string &vid);
}; // class VmgrProxyDummy }; // class VmgrProxyDummy
......
...@@ -117,7 +117,8 @@ castor::legacymsg::MessageHeader castor::legacymsg::VmgrProxyTcpIp::readRcReplyM ...@@ -117,7 +117,8 @@ castor::legacymsg::MessageHeader castor::legacymsg::VmgrProxyTcpIp::readRcReplyM
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// writeDriveStatusMsg // writeDriveStatusMsg
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::writeTapeMountNotificationMsg(const int fd, const legacymsg::VmgrTapeMountedMsgBody &body) { void castor::legacymsg::VmgrProxyTcpIp::writeTapeMountNotificationMsg(
const int fd, const legacymsg::VmgrTapeMountedMsgBody &body) {
char buf[REQBUFSZ]; char buf[REQBUFSZ];
const size_t len = legacymsg::marshal(buf, body); const size_t len = legacymsg::marshal(buf, body);
...@@ -134,7 +135,8 @@ void castor::legacymsg::VmgrProxyTcpIp::writeTapeMountNotificationMsg(const int ...@@ -134,7 +135,8 @@ void castor::legacymsg::VmgrProxyTcpIp::writeTapeMountNotificationMsg(const int
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// setDriveStatus // setDriveStatus
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::sendNotificationAndReceiveReply(const legacymsg::VmgrTapeMountedMsgBody &body) { void castor::legacymsg::VmgrProxyTcpIp::sendNotificationAndReceiveReply(
const legacymsg::VmgrTapeMountedMsgBody &body) {
castor::utils::SmartFd fd(connectToVmgr()); castor::utils::SmartFd fd(connectToVmgr());
writeTapeMountNotificationMsg(fd.get(), body); writeTapeMountNotificationMsg(fd.get(), body);
readVmgrRcReply(fd.get()); readVmgrRcReply(fd.get());
...@@ -143,8 +145,8 @@ void castor::legacymsg::VmgrProxyTcpIp::sendNotificationAndReceiveReply(const le ...@@ -143,8 +145,8 @@ void castor::legacymsg::VmgrProxyTcpIp::sendNotificationAndReceiveReply(const le
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// tapeMountedForRead // tapeMountedForRead
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForRead(const std::string &vid, uint32_t jid) void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForRead(
{ const std::string &vid, const uint32_t jid) {
try { try {
castor::legacymsg::VmgrTapeMountedMsgBody msg; castor::legacymsg::VmgrTapeMountedMsgBody msg;
msg.uid = geteuid(); msg.uid = geteuid();
...@@ -165,8 +167,8 @@ void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForRead(const std::string &vi ...@@ -165,8 +167,8 @@ void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForRead(const std::string &vi
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// tapeMountedForWrite // tapeMountedForWrite
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForWrite(const std::string &vid, uint32_t jid) void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForWrite(
{ const std::string &vid, const uint32_t jid) {
try { try {
castor::legacymsg::VmgrTapeMountedMsgBody msg; castor::legacymsg::VmgrTapeMountedMsgBody msg;
msg.uid = geteuid(); msg.uid = geteuid();
...@@ -205,33 +207,39 @@ int castor::legacymsg::VmgrProxyTcpIp::connectToVmgr() const { ...@@ -205,33 +207,39 @@ int castor::legacymsg::VmgrProxyTcpIp::connectToVmgr() const {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// marshalQueryTapeRequest // marshalQueryTapeRequest
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::marshalQueryTapeRequest(const std::string &vid, legacymsg::VmgrTapeInfoRqstMsgBody &request, char *buf, size_t bufLen, size_t &totalLen) { size_t castor::legacymsg::VmgrProxyTcpIp::marshalQueryTapeRequest(
const std::string &vid, legacymsg::VmgrTapeInfoRqstMsgBody &request,
char *buf, size_t bufLen) {
try { try {
totalLen = legacymsg::marshal(buf, bufLen, request); return legacymsg::marshal(buf, bufLen, request);
} catch(castor::exception::Exception &ne) { } catch(castor::exception::Exception &ne) {
castor::exception::Exception ex; castor::exception::Exception ex;
ex.getMessage() << "Failed to marshal request for tape information: vid=" << vid ex.getMessage() << "Failed to marshal request for tape information: vid=" << vid
<< ". Reason: " << ne.getMessage().str(); << ". Reason: " << ne.getMessage().str();
throw ex;
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// sendQueryTapeRequest // sendQueryTapeRequest
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::sendQueryTapeRequest(const std::string &vid, const int fd, char *buf, size_t totalLen) { void castor::legacymsg::VmgrProxyTcpIp::sendQueryTapeRequest(
const std::string &vid, const int fd, char *buf, size_t totalLen) {
try { try {
io::writeBytes(fd, m_netTimeout, totalLen, buf); io::writeBytes(fd, m_netTimeout, totalLen, buf);
} catch(castor::exception::Exception &ne) { } catch(castor::exception::Exception &ne) {
castor::exception::Exception ex; castor::exception::Exception ex;
ex.getMessage() << "Failed to send request for tape information to the VMGR: vid=" << vid ex.getMessage() << "Failed to send request for tape information to the VMGR: vid=" << vid
<< ". Reason: " << ne.getMessage().str(); << ". Reason: " << ne.getMessage().str();
throw ex;
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// receiveQueryTapeReplyHeader // receiveQueryTapeReplyHeader
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::receiveQueryTapeReplyHeader(const std::string &vid, const int fd, legacymsg::MessageHeader &replyHeader) { void castor::legacymsg::VmgrProxyTcpIp::receiveQueryTapeReplyHeader(
const std::string &vid, const int fd, legacymsg::MessageHeader &replyHeader) {
const size_t bufLen = 12; // Magic + type + len const size_t bufLen = 12; // Magic + type + len
size_t len = bufLen; size_t len = bufLen;
char buf[bufLen]; char buf[bufLen];
...@@ -252,8 +260,10 @@ void castor::legacymsg::VmgrProxyTcpIp::receiveQueryTapeReplyHeader(const std::s ...@@ -252,8 +260,10 @@ void castor::legacymsg::VmgrProxyTcpIp::receiveQueryTapeReplyHeader(const std::s
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// handleErrorReply // handleErrorReply
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::handleErrorReply(const std::string &vid, const int fd, legacymsg::MessageHeader &replyHeader) castor::exception::Exception castor::legacymsg::VmgrProxyTcpIp::
{ handleErrorReply(const std::string &vid, const int fd,
const legacymsg::MessageHeader &replyHeader) {
// Length of body buffer = Length of message buffer - length of header // Length of body buffer = Length of message buffer - length of header
char bodyBuf[VMGR_REPLY_BUFSIZE - 3 * sizeof(uint32_t)]; char bodyBuf[VMGR_REPLY_BUFSIZE - 3 * sizeof(uint32_t)];
...@@ -272,7 +282,7 @@ void castor::legacymsg::VmgrProxyTcpIp::handleErrorReply(const std::string &vid, ...@@ -272,7 +282,7 @@ void castor::legacymsg::VmgrProxyTcpIp::handleErrorReply(const std::string &vid,
castor::exception::Exception ex; castor::exception::Exception ex;
ex.getMessage() << "Failed to receive error string from VMGR: reqType=MSG_ERR: vid=" << vid ex.getMessage() << "Failed to receive error string from VMGR: reqType=MSG_ERR: vid=" << vid
<< ". Reason: " << ne.getMessage().str(); << ". Reason: " << ne.getMessage().str();
throw ne; throw ex;
} }
// Ensure the error string is null terminated // Ensure the error string is null terminated
...@@ -282,7 +292,7 @@ void castor::legacymsg::VmgrProxyTcpIp::handleErrorReply(const std::string &vid, ...@@ -282,7 +292,7 @@ void castor::legacymsg::VmgrProxyTcpIp::handleErrorReply(const std::string &vid,
castor::exception::Exception ex; castor::exception::Exception ex;
ex.getMessage() << "Received an error string from the VMGR: reqType=MSG_ERR: vid=" << vid ex.getMessage() << "Received an error string from the VMGR: reqType=MSG_ERR: vid=" << vid
<< ": VMGR error string=" << bodyBuf; << ": VMGR error string=" << bodyBuf;
throw ex; return ex;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
...@@ -330,7 +340,8 @@ void castor::legacymsg::VmgrProxyTcpIp::handleDataReply(const std::string &vid, ...@@ -330,7 +340,8 @@ void castor::legacymsg::VmgrProxyTcpIp::handleDataReply(const std::string &vid,
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// queryTape // queryTape
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacymsg::VmgrTapeInfoMsgBody &reply) { castor::legacymsg::VmgrTapeInfoMsgBody
castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid) {
try { try {
castor::utils::SmartFd fd(connectToVmgr()); castor::utils::SmartFd fd(connectToVmgr());
...@@ -342,8 +353,8 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy ...@@ -342,8 +353,8 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy
request.side = 0; // HARDCODED side request.side = 0; // HARDCODED side
char buf[VMGR_REQUEST_BUFSIZE]; char buf[VMGR_REQUEST_BUFSIZE];
size_t totalLen = 0; const size_t totalLen = marshalQueryTapeRequest(vid, request, buf,
marshalQueryTapeRequest(vid, request, buf, VMGR_REQUEST_BUFSIZE, totalLen); VMGR_REQUEST_BUFSIZE);
sendQueryTapeRequest(vid, fd.get(), buf, totalLen); sendQueryTapeRequest(vid, fd.get(), buf, totalLen);
legacymsg::MessageHeader replyHeader; legacymsg::MessageHeader replyHeader;
receiveQueryTapeReplyHeader(vid, fd.get(), replyHeader); receiveQueryTapeReplyHeader(vid, fd.get(), replyHeader);
...@@ -357,7 +368,6 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy ...@@ -357,7 +368,6 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy
ex.getMessage() << "VMGR unexpectedly wishes to keep the connection open: reqType=VMGR_IRC: vid=" << vid; ex.getMessage() << "VMGR unexpectedly wishes to keep the connection open: reqType=VMGR_IRC: vid=" << vid;
throw ex; throw ex;
} }
break;
// The VMGR has returned an error code // The VMGR has returned an error code
case VMGR_RC: case VMGR_RC:
...@@ -366,17 +376,21 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy ...@@ -366,17 +376,21 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy
ex.getMessage() << "Received an error code from the VMGR: reqType=VMGR_RC: vid=" << vid << ": VMGR error code=" << replyHeader.lenOrStatus; ex.getMessage() << "Received an error code from the VMGR: reqType=VMGR_RC: vid=" << vid << ": VMGR error code=" << replyHeader.lenOrStatus;
throw ex; throw ex;
} }
break;
// The VMGR has returned an error string // The VMGR has returned an error string
case MSG_ERR: case MSG_ERR:
handleErrorReply(vid, fd.get(), replyHeader); {
break; castor::exception::Exception ex = handleErrorReply(vid, fd.get(), replyHeader);
throw ex;
}
// The VMGR returned the tape information // The VMGR returned the tape information
case MSG_DATA: case MSG_DATA:
handleDataReply(vid, fd.get(), replyHeader, reply); {
break; legacymsg::VmgrTapeInfoMsgBody reply;
handleDataReply(vid, fd.get(), replyHeader, reply);
return reply;
}
// The VMGR returned an unknown message type // The VMGR returned an unknown message type
default: default:
...@@ -385,7 +399,6 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy ...@@ -385,7 +399,6 @@ void castor::legacymsg::VmgrProxyTcpIp::queryTape(const std::string &vid, legacy
ex.getMessage() << "Received an unkown message type from the VMGR: reqType=" << replyHeader.reqType << ": vid=" << vid; ex.getMessage() << "Received an unkown message type from the VMGR: reqType=" << replyHeader.reqType << ": vid=" << vid;
throw ex; throw ex;
} }
break;
} }
} catch(castor::exception::Exception &ne) { } catch(castor::exception::Exception &ne) {
......
...@@ -61,25 +61,25 @@ public: ...@@ -61,25 +61,25 @@ public:
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
void tapeMountedForRead(const std::string &vid, uint32_t jid); void tapeMountedForRead(const std::string &vid, const uint32_t jid);
/** /**
* Notifies the vmgrd daemon that the specified tape has been mounted for read. * Notifies the vmgrd daemon that the specified tape has been mounted for read.
* *
* @param vid The volume identifier of the mounted tape. * @param vid The volume identifier of the mounted tape.
* @param * @param jid The ID of the process that mounted the tape.
*/ */
void tapeMountedForWrite(const std::string &vid, uint32_t jid); void tapeMountedForWrite(const std::string &vid, const uint32_t jid);
/** /**
* Gets information from vmgrd about the specified tape * Gets information from vmgrd about the specified tape
* *
* @param vid The volume identifier of the tape. * @param vid The volume identifier of the tape.
* @param reply The structure containing the reply from vmgrd * @return The reply from the vmgrd daemon.
*/ */
void queryTape(const std::string &vid, legacymsg::VmgrTapeInfoMsgBody &reply); legacymsg::VmgrTapeInfoMsgBody queryTape(const std::string &vid);
private: private:
...@@ -147,9 +147,10 @@ private: ...@@ -147,9 +147,10 @@ private:
* *
* @param request Source request * @param request Source request
* @param buf Destination buffer * @param buf Destination buffer
* @param totalLen Total length of bytes marshaled * @return Total length of bytes marshaled
*/ */
void marshalQueryTapeRequest(const std::string &vid, legacymsg::VmgrTapeInfoRqstMsgBody &request, char *buf, size_t bufLen, size_t &totalLen); size_t marshalQueryTapeRequest(const std::string &vid,
legacymsg::VmgrTapeInfoRqstMsgBody &request, char *buf, size_t bufLen);
/** /**
* Send the request out to the VMGR * Send the request out to the VMGR
...@@ -158,7 +159,8 @@ private: ...@@ -158,7 +159,8 @@ private:
* @param buf Source buffer * @param buf Source buffer
* @param totalLen Buffer length * @param totalLen Buffer length
*/ */
void sendQueryTapeRequest(const std::string &vid, const int fd, char *buf, size_t totalLen); void sendQueryTapeRequest(const std::string &vid, const int fd, char *buf,
size_t totalLen);
/** /**
* Receives the header of the reply coming from the VMGR * Receives the header of the reply coming from the VMGR
...@@ -166,15 +168,19 @@ private: ...@@ -166,15 +168,19 @@ private:
* @param fd File descriptor of the connection * @param fd File descriptor of the connection
* @param replyHeader Destination structure for the header * @param replyHeader Destination structure for the header
*/ */
void receiveQueryTapeReplyHeader(const std::string &vid, const int fd, legacymsg::MessageHeader &replyHeader); void receiveQueryTapeReplyHeader(const std::string &vid, const int fd,
legacymsg::MessageHeader &replyHeader);
/** /**
* Function that receives and handles the error string coming from the VMGR * Function that receives and handles the error string coming from the VMGR
* *
* @param fd File descriptor of the connection * @param fd File descriptor of the connection
* @param replyHeader Reply header * @param replyHeader Reply header
* @return The error string from the VMGR converted into a CASTOR
* exception.
*/ */
void handleErrorReply(const std::string &vid, const int fd, legacymsg::MessageHeader &replyHeader); castor::exception::Exception handleErrorReply(const std::string &vid,
const int fd, const legacymsg::MessageHeader &replyHeader);
/** /**
* Function that receives and unmarshals the reply data coming from the VMGR * Function that receives and unmarshals the reply data coming from the VMGR
......
...@@ -7,17 +7,25 @@ add_library(castormessages SHARED ...@@ -7,17 +7,25 @@ add_library(castormessages SHARED
Header.pb.cc Header.pb.cc
Heartbeat.pb.cc Heartbeat.pb.cc
messages.cpp messages.cpp
NotifyDrive.pb.cc MigrationJobFromTapeGateway.pb.cc
MigrationJobFromWriteTp.pb.cc
NbFilesOnTape.pb.cc
ProcessCrashed.pb.cc ProcessCrashed.pb.cc
ProcessExited.pb.cc ProcessExited.pb.cc
RecallJobFromReadTp.pb.cc
RecallJobFromTapeGateway.pb.cc
ReplyContainer.cpp ReplyContainer.cpp
StopProcessForker.pb.cc StopProcessForker.pb.cc
TapeMountedForMigration.pb.cc
TapeMountedForRecall.pb.cc
TapeserverProxy.cpp TapeserverProxy.cpp
TapeserverProxyDummy.cpp TapeserverProxyDummy.cpp
TapeserverProxyDummyFactory.cpp TapeserverProxyDummyFactory.cpp
TapeserverProxyFactory.cpp TapeserverProxyFactory.cpp
TapeserverProxyZmq.cpp TapeserverProxyZmq.cpp
TapeserverProxyZmqFactory.cpp TapeserverProxyZmqFactory.cpp
TapeUnmountStarted.pb.cc
TapeUnmounted.pb.cc
) )
target_link_libraries(castormessages protobuf ssl) target_link_libraries(castormessages protobuf ssl)
......
...@@ -33,11 +33,15 @@ namespace castor { ...@@ -33,11 +33,15 @@ namespace castor {
enum { enum {
ReturnValue, ReturnValue,
Heartbeat, Heartbeat,
NotifyDriveBeforeMountStarted, MigrationJobFromTapeGateway,
NotifyDriveTapeMounted, MigrationJobFromWriteTp,
NotifyDriveUnmountStarted, NbFilesOnTape,
NotifyDriveTapeUnmounted, RecallJobFromReadTp,
NotifyDriveBeforeMountStartedAnswer, RecallJobFromTapeGateway,
TapeMountedForMigration,
TapeMountedForRecall,
TapeUnmountStarted,
TapeUnmounted
}; };
}; };
struct protocolVersion{ struct protocolVersion{
...@@ -46,4 +50,4 @@ namespace castor { ...@@ -46,4 +50,4 @@ namespace castor {
}; };
}; };
} }
} }
\ No newline at end of file
// Generated by the protocol buffer compiler. DO NOT EDIT!
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "MigrationJobFromTapeGateway.pb.h"
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace castor {
namespace messages {
namespace {
const ::google::protobuf::Descriptor* MigrationJobFromTapeGateway_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
MigrationJobFromTapeGateway_reflection_ = NULL;
} // namespace