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

Renamed DriveCatalogue classes to simply Catalogue

parent 1f659d15
......@@ -50,7 +50,7 @@ castor::tape::tapeserver::daemon::AdminAcceptHandler::AdminAcceptHandler(
reactor::ZMQReactor &reactor,
log::Logger &log,
legacymsg::VdqmProxy &vdqm,
DriveCatalogue &driveCatalogue,
Catalogue &driveCatalogue,
const std::string &hostName)
throw():
m_fd(fd),
......
......@@ -22,7 +22,7 @@
#pragma once
#include "castor/log/Logger.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogue.hpp"
#include "castor/tape/tapeserver/daemon/Catalogue.hpp"
#include "castor/legacymsg/MessageHeader.hpp"
#include "castor/legacymsg/TapeConfigRequestMsgBody.hpp"
#include "castor/legacymsg/TapeStatRequestMsgBody.hpp"
......@@ -60,7 +60,7 @@ public:
reactor::ZMQReactor &reactor,
log::Logger &log,
legacymsg::VdqmProxy &vdqm,
DriveCatalogue &driveCatalogue,
Catalogue &driveCatalogue,
const std::string &hostName) throw();
/**
......@@ -126,7 +126,7 @@ private:
/**
* The catalogue of tape drives controlled by the tape server daemon.
*/
DriveCatalogue &m_driveCatalogue;
Catalogue &m_driveCatalogue;
/**
* The name of the host on which tape daemon is running. This name is
......
......@@ -49,7 +49,7 @@ castor::tape::tapeserver::daemon::AdminConnectionHandler::AdminConnectionHandler
const int fd,
reactor::ZMQReactor &reactor,
log::Logger &log,
DriveCatalogue &driveCatalogue)
Catalogue &driveCatalogue)
throw():
m_fd(fd),
m_reactor(reactor),
......@@ -184,7 +184,7 @@ void castor::tape::tapeserver::daemon::AdminConnectionHandler::
const std::string unitName(body.drive);
DriveCatalogueEntry &drive = m_driveCatalogue.findDrive(unitName);
CatalogueDrive &drive = m_driveCatalogue.findDrive(unitName);
const utils::DriveConfig &driveConfig = drive.getConfig();
log::Param params[] = {
......@@ -306,7 +306,7 @@ void castor::tape::tapeserver::daemon::AdminConnectionHandler::
for(std::list<std::string>::const_iterator itor = unitNames.begin();
itor!=unitNames.end() and i<CA_MAXNBDRIVES; itor++) {
const std::string &unitName = *itor;
const DriveCatalogueEntry &drive = m_driveCatalogue.findDrive(unitName);
const CatalogueDrive &drive = m_driveCatalogue.findDrive(unitName);
body.drives[i] = drive.getTapeStatDriveEntry();
i++;
}
......
......@@ -22,7 +22,7 @@
#pragma once
#include "castor/log/Logger.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogue.hpp"
#include "castor/tape/tapeserver/daemon/Catalogue.hpp"
#include "castor/legacymsg/MessageHeader.hpp"
#include "castor/legacymsg/TapeConfigRequestMsgBody.hpp"
#include "castor/legacymsg/TapeStatRequestMsgBody.hpp"
......@@ -58,7 +58,7 @@ public:
const int fd,
reactor::ZMQReactor &reactor,
log::Logger &log,
DriveCatalogue &driveCatalogue) throw();
Catalogue &driveCatalogue) throw();
/**
* Returns the human-readable name this event handler.
......@@ -200,7 +200,7 @@ private:
/**
* The catalogue of tape drives controlled by the tape server daemon.
*/
DriveCatalogue &m_driveCatalogue;
Catalogue &m_driveCatalogue;
/**
* The timeout in seconds to be applied when performing network read and
......
......@@ -8,12 +8,12 @@ add_library(castorTapeServerDaemon
DiskReadTask.cpp
DiskWriteTask.cpp
DiskWriteThreadPool.cpp
DriveCatalogue.cpp
DriveCatalogueEntry.cpp
DriveCatalogueSession.cpp
DriveCatalogueLabelSession.cpp
DriveCatalogueTransferSession.cpp
DriveCatalogueCleanerSession.cpp
Catalogue.cpp
CatalogueDrive.cpp
CatalogueSession.cpp
CatalogueLabelSession.cpp
CatalogueTransferSession.cpp
CatalogueCleanerSession.cpp
TapeServerReporter.cpp
LabelCmdAcceptHandler.cpp
LabelCmdConnectionHandler.cpp
......
......@@ -21,7 +21,7 @@
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include "castor/tape/tapeserver/daemon/DriveCatalogue.hpp"
#include "castor/tape/tapeserver/daemon/Catalogue.hpp"
#include "castor/utils/utils.hpp"
#include <string.h>
......@@ -30,7 +30,7 @@
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogue::DriveCatalogue(
castor::tape::tapeserver::daemon::Catalogue::Catalogue(
const int netTimeout,
log::Logger &log,
const DataTransferSession::CastorConf &dataTransferConfig,
......@@ -48,12 +48,12 @@ castor::tape::tapeserver::daemon::DriveCatalogue::DriveCatalogue(
//-----------------------------------------------------------------------------
// destructor
//-----------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogue::~DriveCatalogue() throw() {
castor::tape::tapeserver::daemon::Catalogue::~Catalogue() throw() {
// Close any label-command connections that are still owned by the
// tape-drive catalogue
for(DriveMap::const_iterator itor = m_drives.begin(); itor != m_drives.end();
itor++) {
const DriveCatalogueEntry *drive = itor->second;
const CatalogueDrive *drive = itor->second;
delete drive;
}
......@@ -62,7 +62,7 @@ castor::tape::tapeserver::daemon::DriveCatalogue::~DriveCatalogue() throw() {
//-----------------------------------------------------------------------------
// populate
//-----------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::DriveCatalogue::populate(
void castor::tape::tapeserver::daemon::Catalogue::populate(
const utils::DriveConfigMap &driveConfigs) {
try {
for(utils::DriveConfigMap::const_iterator itor = driveConfigs.begin();
......@@ -91,7 +91,7 @@ void castor::tape::tapeserver::daemon::DriveCatalogue::populate(
//-----------------------------------------------------------------------------
// enterDriveConfig
//-----------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::DriveCatalogue::enterDriveConfig(
void castor::tape::tapeserver::daemon::Catalogue::enterDriveConfig(
const utils::DriveConfig &driveConfig) {
DriveMap::iterator itor = m_drives.find(driveConfig.unitName);
......@@ -99,9 +99,9 @@ void castor::tape::tapeserver::daemon::DriveCatalogue::enterDriveConfig(
// If the drive is not in the catalogue
if(m_drives.end() == itor) {
// Insert it
m_drives[driveConfig.unitName] = new DriveCatalogueEntry(m_netTimeout,
m_drives[driveConfig.unitName] = new CatalogueDrive(m_netTimeout,
m_log, m_processForker, m_vdqm, m_hostName, driveConfig,
m_dataTransferConfig, DriveCatalogueEntry::DRIVE_STATE_DOWN);
m_dataTransferConfig, CatalogueDrive::DRIVE_STATE_DOWN);
// Else the drive is already in the catalogue
} else {
castor::exception::Exception ex;
......@@ -116,7 +116,7 @@ void castor::tape::tapeserver::daemon::DriveCatalogue::enterDriveConfig(
// getUnitNames
//-----------------------------------------------------------------------------
std::list<std::string>
castor::tape::tapeserver::daemon::DriveCatalogue::getUnitNames() const {
castor::tape::tapeserver::daemon::Catalogue::getUnitNames() const {
std::list<std::string> unitNames;
for(DriveMap::const_iterator itor = m_drives.begin();
......@@ -130,8 +130,8 @@ std::list<std::string>
//-----------------------------------------------------------------------------
// findDrive
//-----------------------------------------------------------------------------
const castor::tape::tapeserver::daemon::DriveCatalogueEntry
&castor::tape::tapeserver::daemon::DriveCatalogue::findDrive(
const castor::tape::tapeserver::daemon::CatalogueDrive
&castor::tape::tapeserver::daemon::Catalogue::findDrive(
const std::string &unitName) const {
std::ostringstream task;
task << "find tape drive in catalogue by unit name: unitName=" << unitName;
......@@ -151,7 +151,7 @@ const castor::tape::tapeserver::daemon::DriveCatalogueEntry
throw ex;
}
const DriveCatalogueEntry &drive = *(itor->second);
const CatalogueDrive &drive = *(itor->second);
const utils::DriveConfig &driveConfig = drive.getConfig();
// Sanity check
......@@ -170,8 +170,8 @@ const castor::tape::tapeserver::daemon::DriveCatalogueEntry
//-----------------------------------------------------------------------------
// findDrive
//-----------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogueEntry
&castor::tape::tapeserver::daemon::DriveCatalogue::findDrive(
castor::tape::tapeserver::daemon::CatalogueDrive
&castor::tape::tapeserver::daemon::Catalogue::findDrive(
const std::string &unitName) {
std::ostringstream task;
task << "find tape drive in catalogue by unit name: unitName=" << unitName;
......@@ -191,7 +191,7 @@ castor::tape::tapeserver::daemon::DriveCatalogueEntry
throw ex;
}
DriveCatalogueEntry &drive = *(itor->second);
CatalogueDrive &drive = *(itor->second);
const utils::DriveConfig &driveConfig = drive.getConfig();
// Sanity check
......@@ -211,8 +211,8 @@ castor::tape::tapeserver::daemon::DriveCatalogueEntry
//-----------------------------------------------------------------------------
// findDrive
//-----------------------------------------------------------------------------
const castor::tape::tapeserver::daemon::DriveCatalogueEntry
&castor::tape::tapeserver::daemon::DriveCatalogue::findDrive(
const castor::tape::tapeserver::daemon::CatalogueDrive
&castor::tape::tapeserver::daemon::Catalogue::findDrive(
const pid_t sessionPid) const {
std::ostringstream task;
task << "find tape drive in catalogue by session pid: sessionPid=" <<
......@@ -229,9 +229,9 @@ const castor::tape::tapeserver::daemon::DriveCatalogueEntry
throw ex;
}
const DriveCatalogueEntry &drive = *(itor->second);
const CatalogueDrive &drive = *(itor->second);
try {
const DriveCatalogueSession &session = drive.getSession();
const CatalogueSession &session = drive.getSession();
if(sessionPid == session.getPid()) {
return drive;
}
......@@ -248,8 +248,8 @@ const castor::tape::tapeserver::daemon::DriveCatalogueEntry
//-----------------------------------------------------------------------------
// findDrive
//-----------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogueEntry
&castor::tape::tapeserver::daemon::DriveCatalogue::findDrive(
castor::tape::tapeserver::daemon::CatalogueDrive
&castor::tape::tapeserver::daemon::Catalogue::findDrive(
const pid_t sessionPid) {
std::ostringstream task;
task << "find tape drive in catalogue by session pid: sessionPid=" <<
......@@ -266,9 +266,9 @@ castor::tape::tapeserver::daemon::DriveCatalogueEntry
throw ex;
}
DriveCatalogueEntry &drive = *(itor->second);
CatalogueDrive &drive = *(itor->second);
try {
const DriveCatalogueSession &session = drive.getSession();
const CatalogueSession &session = drive.getSession();
if(sessionPid == session.getPid()) {
return drive;
}
......
......@@ -30,7 +30,7 @@
#include "castor/log/Logger.hpp"
#include "castor/tape/utils/DriveConfigMap.hpp"
#include "castor/tape/tapeserver/client/ClientProxy.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueEntry.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueDrive.hpp"
#include "castor/tape/tapeserver/daemon/ProcessForkerProxy.hpp"
#include <map>
......@@ -46,7 +46,7 @@ namespace daemon {
* Class responsible for keeping track of the tape drive being controlled by
* the tapeserverd daemon.
*/
class DriveCatalogue {
class Catalogue {
public:
/**
......@@ -61,7 +61,7 @@ public:
* @param hostName The name of the host on which the daemon is running. This
* name is needed to fill in messages to be sent to the vdqmd daemon.
*/
DriveCatalogue(
Catalogue(
const int netTimeout,
log::Logger &log,
const DataTransferSession::CastorConf &dataTransferConfig,
......@@ -75,7 +75,7 @@ public:
* Closes the connection with the label command if the drive catalogue owns
* the connection at the time of destruction.
*/
~DriveCatalogue() throw();
~Catalogue() throw();
/**
* Poplates the catalogue using the specified tape-drive configurations.
......@@ -92,7 +92,7 @@ public:
*
* @param unitName The unit name of the tape drive.
*/
const DriveCatalogueEntry &findDrive(const std::string &unitName)
const CatalogueDrive &findDrive(const std::string &unitName)
const;
/**
......@@ -103,7 +103,7 @@ public:
*
* @param sessionPid The process ID of the session.
*/
const DriveCatalogueEntry &findDrive(const pid_t sessionPid) const;
const CatalogueDrive &findDrive(const pid_t sessionPid) const;
/**
* Returns a reference to the tape-drive entry corresponding to the tape
......@@ -113,7 +113,7 @@ public:
*
* @param unitName The unit name of the tape drive.
*/
DriveCatalogueEntry &findDrive(const std::string &unitName);
CatalogueDrive &findDrive(const std::string &unitName);
/**
* Returns a reference to the tape-drive entry associated with the
......@@ -123,7 +123,7 @@ public:
*
* @param sessionPid The process ID of the session.
*/
DriveCatalogueEntry &findDrive(const pid_t sessionPid);
CatalogueDrive &findDrive(const pid_t sessionPid);
/**
* Returns an unordered list of the unit names of all of the tape drives
......@@ -170,7 +170,7 @@ private:
* Type that maps the unit name of a tape drive to the catalogue entry of
* that drive.
*/
typedef std::map<std::string, DriveCatalogueEntry *> DriveMap;
typedef std::map<std::string, CatalogueDrive *> DriveMap;
/**
* Map from the unit name of a tape drive to the catalogue entry of that
......@@ -185,7 +185,7 @@ private:
*/
void enterDriveConfig(const utils::DriveConfig &driveConfig);
}; // class DriveCatalogue
}; // class Catalogue
} // namespace daemon
} // namespace tapeserver
......
......@@ -22,14 +22,14 @@
*****************************************************************************/
#include "castor/exception/Exception.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueCleanerSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueCleanerSession.hpp"
#include "h/Ctape_constants.h"
//------------------------------------------------------------------------------
// create
//------------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession *
castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::create(
castor::tape::tapeserver::daemon::CatalogueCleanerSession *
castor::tape::tapeserver::daemon::CatalogueCleanerSession::create(
log::Logger &log,
const int netTimeout,
const tape::utils::DriveConfig &driveConfig,
......@@ -40,7 +40,7 @@ castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession *
const pid_t pid = processForker.forkCleaner(driveConfig, vid, rmcPort);
return new DriveCatalogueCleanerSession(
return new CatalogueCleanerSession(
log,
netTimeout,
pid,
......@@ -52,15 +52,15 @@ castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession *
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
DriveCatalogueCleanerSession(
castor::tape::tapeserver::daemon::CatalogueCleanerSession::
CatalogueCleanerSession(
log::Logger &log,
const int netTimeout,
const pid_t pid,
const tape::utils::DriveConfig &driveConfig,
const std::string &vid,
const time_t assignmentTime) throw():
DriveCatalogueSession(log, netTimeout, pid, driveConfig),
CatalogueSession(log, netTimeout, pid, driveConfig),
m_vid(vid),
m_assignmentTime(assignmentTime) {
}
......@@ -68,21 +68,21 @@ castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
//------------------------------------------------------------------------------
// sessionSucceeded
//------------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
void castor::tape::tapeserver::daemon::CatalogueCleanerSession::
sessionSucceeded() {
}
//------------------------------------------------------------------------------
// sessionFailed
//------------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
void castor::tape::tapeserver::daemon::CatalogueCleanerSession::
sessionFailed() {
}
//------------------------------------------------------------------------------
// getVid
//------------------------------------------------------------------------------
std::string castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
std::string castor::tape::tapeserver::daemon::CatalogueCleanerSession::
getVid() const {
// If the volume identifier of the tape drive is not known
if(m_vid.empty()) {
......@@ -98,7 +98,7 @@ std::string castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
//------------------------------------------------------------------------------
// getMode
//------------------------------------------------------------------------------
int castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::getMode()
int castor::tape::tapeserver::daemon::CatalogueCleanerSession::getMode()
const throw() {
return WRITE_DISABLE;
}
......@@ -106,7 +106,7 @@ int castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::getMode()
//-----------------------------------------------------------------------------
// getPid
//-----------------------------------------------------------------------------
pid_t castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
pid_t castor::tape::tapeserver::daemon::CatalogueCleanerSession::
getPid() const throw() {
return m_pid;
}
......@@ -114,7 +114,7 @@ pid_t castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
//------------------------------------------------------------------------------
// getAssignmentTime
//------------------------------------------------------------------------------
time_t castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
time_t castor::tape::tapeserver::daemon::CatalogueCleanerSession::
getAssignmentTime() const throw() {
return m_assignmentTime;
}
......@@ -122,7 +122,7 @@ time_t castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
//-----------------------------------------------------------------------------
// tapeIsBeingMounted
//-----------------------------------------------------------------------------
bool castor::tape::tapeserver::daemon::DriveCatalogueCleanerSession::
bool castor::tape::tapeserver::daemon::CatalogueCleanerSession::
tapeIsBeingMounted() const throw() {
return false;
}
......@@ -23,7 +23,7 @@
#pragma once
#include "castor/tape/tapeserver/daemon/DriveCatalogueSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueSession.hpp"
#include "castor/tape/tapeserver/daemon/ProcessForkerProxy.hpp"
namespace castor {
......@@ -35,13 +35,13 @@ namespace daemon {
* Concrete class representing a cleaner session within the tape drive
* catalogue.
*/
class DriveCatalogueCleanerSession : public DriveCatalogueSession {
class CatalogueCleanerSession : public CatalogueSession {
public:
/**
* Creates a DriveCatalogueCleanerSession object.
* Creates a CatalogueCleanerSession object.
*
* Except in the case of unit testing, a DriveCatalogueCleanerSession object
* Except in the case of unit testing, a CatalogueCleanerSession object
* should only be created using the static create() method.
*
* @param log Object representing the API of the CASTOR logging system.
......@@ -55,9 +55,9 @@ public:
* @param rmcPort The TCP/IP port on which the rmcd daemon is listening.
* @param assignmentTime The time at which a job was assigned to the tape
* drive.
* @return A newly created DriveCatalogueCleanerSession object.
* @return A newly created CatalogueCleanerSession object.
*/
static DriveCatalogueCleanerSession *create(
static CatalogueCleanerSession *create(
log::Logger &log,
const int netTimeout,
const tape::utils::DriveConfig &driveConfig,
......@@ -120,7 +120,7 @@ protected:
/**
* Protected constructor.
*
* Except in the case of unit testing a DriveCatalogueCleanerSession object
* Except in the case of unit testing a CatalogueCleanerSession object
* should only be created using the static create() method. This constructor
* is protected so that unit tests can go around this restriction for sole
* purpose of unit testing.
......@@ -136,7 +136,7 @@ protected:
* @param assignmentTime The time at which a job was assigned to the tape
* drive.
*/
DriveCatalogueCleanerSession(
CatalogueCleanerSession(
log::Logger &log,
const int netTimeout,
const pid_t pid,
......@@ -158,7 +158,7 @@ private:
*/
const time_t m_assignmentTime;
}; // class DriveCatalogueCleanerSession
}; // class CatalogueCleanerSession
} // namespace daemon
} // namespace tapeserver
......
......@@ -28,10 +28,10 @@
#include "castor/legacymsg/TapeStatDriveEntry.hpp"
#include "castor/legacymsg/VdqmProxy.hpp"
#include "castor/log/Logger.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueCleanerSession.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueLabelSession.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueSession.hpp"
#include "castor/tape/tapeserver/daemon/DriveCatalogueTransferSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueCleanerSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueLabelSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueSession.hpp"
#include "castor/tape/tapeserver/daemon/CatalogueTransferSession.hpp"
#include "castor/tape/tapeserver/daemon/ProcessForkerProxy.hpp"
#include "castor/tape/utils/DriveConfig.hpp"
......@@ -50,7 +50,7 @@ namespace daemon {
/**
* A tape-drive entry in the tape-drive catalogue.
*/
class DriveCatalogueEntry {
class CatalogueDrive {
public:
/**
......@@ -173,7 +173,7 @@ public:
* @param dataTransferConfig The configuration of a data-transfer session.
* @param state The initial state of the tape drive.
*/
DriveCatalogueEntry(
CatalogueDrive(
const int netTimeout,
log::Logger &log,
ProcessForkerProxy &processForker,
......@@ -186,7 +186,7 @@ public:
/**
* Destructor
*/
~DriveCatalogueEntry() throw();
~CatalogueDrive() throw();
/**
* If there is a catalogue session associated with the tape drive then this
......@@ -325,7 +325,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* cleaner session associated with the tape drive.
*/
const DriveCatalogueCleanerSession &getCleanerSession() const;
const CatalogueCleanerSession &getCleanerSession() const;
/**
* Returns the catalogue cleaner-session associated with the tape drive.
......@@ -333,7 +333,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* cleaner session associated with the tape drive.
*/
DriveCatalogueCleanerSession &getCleanerSession();
CatalogueCleanerSession &getCleanerSession();
/**
* Returns the catalogue label-session associated with the tape drive.
......@@ -341,7 +341,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* label session associated with the tape drive.
*/
const DriveCatalogueLabelSession &getLabelSession() const;
const CatalogueLabelSession &getLabelSession() const;
/**
* Returns the catalogue label-session associated with the tape drive.
......@@ -349,7 +349,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* label session associated with the tape drive.
*/
DriveCatalogueLabelSession &getLabelSession();
CatalogueLabelSession &getLabelSession();
/**
* Returns the catalogue transfer-session associated with the tape drive.
......@@ -357,7 +357,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* transfer session associated with the tape drive.
*/
const DriveCatalogueTransferSession &getTransferSession() const;
const CatalogueTransferSession &getTransferSession() const;
/**
* Returns the catalogue transfer-session associated with the tape drive.
......@@ -365,7 +365,7 @@ public:
* This method throws a castor::exception::Exception if there is no
* transfer session associated with the tape drive.
*/
DriveCatalogueTransferSession &getTransferSession();
CatalogueTransferSession &getTransferSession();
/**
* Gets the session asscoiated with the tape drive.
......@@ -379,7 +379,7 @@ public:
*
* @return The session associated with the tape drive.