Skip to content
Snippets Groups Projects
Commit ab2c9ddc authored by Steven Murray's avatar Steven Murray
Browse files

Removed unused MmcProxyNotSupported

parent 51a5af96
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,6 @@ set (MEDIACHANGER_LIB_SRC_FILES
MessageHeader.cpp
messages.cpp
MmcProxyLog.cpp
MmcProxyNotSupported.cpp
${ProtoSources}
RmcMarshal.cpp
RmcMarshal.hpp
......
/*
* The CERN Tape Archive(CTA) project
* Copyright(C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*(at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "mediachanger/ManualLibrarySlot.hpp"
#include "mediachanger/MmcProxyNotSupported.hpp"
#include "common/exception/Exception.hpp"
//------------------------------------------------------------------------------
// mountTapeReadOnly
//------------------------------------------------------------------------------
void cta::mediachanger::MmcProxyNotSupported::mountTapeReadOnly(const std::string &vid, const LibrarySlot &librarySlot) {
cta::exception::Exception ex;
ex.getMessage() << "Manual mounting is not supported";
throw ex;
}
//------------------------------------------------------------------------------
// mountTapeReadWrite
//------------------------------------------------------------------------------
void cta::mediachanger::MmcProxyNotSupported::mountTapeReadWrite(const std::string &vid, const LibrarySlot &librarySlot) {
cta::exception::Exception ex;
ex.getMessage() << "Manual mounting is not supported";
throw ex;
}
//------------------------------------------------------------------------------
// dismountTape
//------------------------------------------------------------------------------
void cta::mediachanger::MmcProxyNotSupported::dismountTape(const std::string &vid, const LibrarySlot &librarySlot) {
cta::exception::Exception ex;
ex.getMessage() << "Manual dismounting is not supported";
throw ex;
}
//------------------------------------------------------------------------------
// forceDismountTape
//------------------------------------------------------------------------------
void cta::mediachanger::MmcProxyNotSupported::forceDismountTape(const std::string &vid, const LibrarySlot &librarySlot) {
cta::exception::Exception ex;
ex.getMessage() << "Manual dismounting is not supported";
throw ex;
}
/*
* The CERN Tape Archive(CTA) project
* Copyright(C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*(at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "mediachanger/MediaChangerProxy.hpp"
namespace cta {
namespace mediachanger {
/**
* Concrete class implementing a manual media-changer that throws
* "not supported" exceptions.
*/
class MmcProxyNotSupported: public MediaChangerProxy {
public:
/**
* Requests the media changer to mount the specified tape for read-only
* access into the drive in the specified library slot.
*
* Please note that this method provides a best-effort service because not all
* media changers support read-only mounts.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void mountTapeReadOnly(const std::string &vid, const LibrarySlot &librarySlot) override;
/**
* Requests the media changer to mount the specified tape for read/write
* access into the drive in the specified library slot.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void mountTapeReadWrite(const std::string &vid, const LibrarySlot &librarySlot) override;
/**
* Requests the media changer to dismount the specified tape from the
* drive in the specifed library slot.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void dismountTape(const std::string &vid, const LibrarySlot &librarySlot) override;
/**
* Requests the media changer to forcefully dismount the specified tape from
* the drive in the specifed library slot. Forcefully means rewinding and
* ejecting the tape where necessary.
*
* Please note that this method provides a best-effort service because not all
* media changers support forceful dismounts.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void forceDismountTape(const std::string &vid, const LibrarySlot &librarySlot) override;
}; // class MmcProxyNotSupported
} // namespace mediachanger
} // namespace cta
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment