Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
42d80813
Commit
42d80813
authored
8 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Added missing files.
parent
f36da9a3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler/LabelMount.cpp
+78
-0
78 additions, 0 deletions
scheduler/LabelMount.cpp
scheduler/LabelMount.hpp
+127
-0
127 additions, 0 deletions
scheduler/LabelMount.hpp
with
205 additions
and
0 deletions
scheduler/LabelMount.cpp
0 → 100644
+
78
−
0
View file @
42d80813
/*
* 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
"LabelMount.hpp"
namespace
cta
{
LabelMount
::
LabelMount
(
catalogue
::
Catalogue
&
catalogue
)
:
m_catalogue
(
catalogue
)
{
throw
0
;
// TODO
}
void
LabelMount
::
abort
()
{
throw
0
;
// TODO
}
std
::
string
LabelMount
::
getMountTransactionId
()
const
{
throw
0
;
// TODO
}
MountType
::
Enum
LabelMount
::
getMountType
()
const
{
throw
0
;
// TODO
}
uint32_t
LabelMount
::
getNbFiles
()
const
{
throw
0
;
// TODO
}
std
::
string
LabelMount
::
getPoolName
()
const
{
throw
0
;
// TODO
}
std
::
string
LabelMount
::
getVid
()
const
{
throw
0
;
// TODO
}
void
LabelMount
::
setDriveStatus
(
cta
::
common
::
DriveStatus
status
)
{
throw
0
;
// TODO
}
LabelMount
::
LabelMount
(
catalogue
::
Catalogue
&
catalogue
,
std
::
unique_ptr
<
cta
::
SchedulerDatabase
::
LabelMount
>
dbMount
)
:
m_catalogue
(
catalogue
)
{
throw
0
;
// TODO;
}
LabelMount
::~
LabelMount
()
{
//TODO
}
}
// namespace cta.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scheduler/LabelMount.hpp
0 → 100644
+
127
−
0
View file @
42d80813
/*
* 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
"common/exception/Exception.hpp"
#include
"scheduler/SchedulerDatabase.hpp"
#include
"scheduler/TapeMount.hpp"
#include
"catalogue/Catalogue.hpp"
#include
<memory>
#include
<atomic>
namespace
cta
{
/**
* The class driving a retrieve mount.
* The class only has private constructors as it is instanciated by
* the Scheduler class.
*/
class
LabelMount
:
public
TapeMount
{
friend
class
Scheduler
;
protected:
/**
* Constructor.
*/
LabelMount
(
catalogue
::
Catalogue
&
catalogue
);
/**
* Constructor.
*
* @param dbMount The database representation of this mount.
*/
LabelMount
(
catalogue
::
Catalogue
&
catalogue
,
std
::
unique_ptr
<
cta
::
SchedulerDatabase
::
LabelMount
>
dbMount
);
public:
CTA_GENERATE_EXCEPTION_CLASS
(
WrongMountType
);
CTA_GENERATE_EXCEPTION_CLASS
(
NotImplemented
);
/**
* Returns The type of this tape mount.
*
* @return The type of this tape mount.
*/
MountType
::
Enum
getMountType
()
const
override
;
/**
* Returns the volume identifier of the tape to be mounted.
*
* @return The volume identifier of the tape to be mounted.
*/
std
::
string
getVid
()
const
override
;
/**
* Returns the mount transaction id.
*
* @return The mount transaction id.
*/
std
::
string
getMountTransactionId
()
const
override
;
/**
* Indicates that the mount was cancelled.
*/
void
abort
()
override
;
/**
* Report a drive status change
*/
void
setDriveStatus
(
cta
::
common
::
DriveStatus
status
)
override
;
CTA_GENERATE_EXCEPTION_CLASS
(
SessionNotRunning
);
/**
* Returns the tape pool of the tape to be mounted.
*
* @return The tape pool of the tape to be mounted.
*/
virtual
std
::
string
getPoolName
()
const
;
/**
* Returns the mount transaction id.
*
* @return The mount transaction id.
*/
uint32_t
getNbFiles
()
const
override
;
/**
* Destructor.
*/
virtual
~
LabelMount
()
throw
();
protected:
/**
* The database representation of this mount.
*/
std
::
unique_ptr
<
cta
::
SchedulerDatabase
::
ArchiveMount
>
m_dbMount
;
/**
* A reference to the file catalogue.
*/
catalogue
::
Catalogue
&
m_catalogue
;
/**
* Internal tracking of the session completion
*/
std
::
atomic
<
bool
>
m_sessionRunning
;
};
// class ArchiveMount
}
// namespace cta
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment