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
4b1ce4e9
Commit
4b1ce4e9
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Removed the unused RetrievalJobQueues class
parent
d7ac5368
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scheduler/CMakeLists.txt
+0
-1
0 additions, 1 deletion
scheduler/CMakeLists.txt
scheduler/RetrievalJobQueues.cpp
+0
-25
0 additions, 25 deletions
scheduler/RetrievalJobQueues.cpp
scheduler/RetrievalJobQueues.hpp
+0
-113
0 additions, 113 deletions
scheduler/RetrievalJobQueues.hpp
with
0 additions
and
139 deletions
scheduler/CMakeLists.txt
+
0
−
1
View file @
4b1ce4e9
...
...
@@ -33,7 +33,6 @@ set (CTA_SCHEDULER_SRC_FILES
RemoteStorage.cpp
RetrievalFileTransfer.cpp
RetrievalJob.cpp
RetrievalJobQueues.cpp
RetrievalJobState.cpp
RetrievalMount.cpp
RetrievalRequest.cpp
...
...
This diff is collapsed.
Click to expand it.
scheduler/RetrievalJobQueues.cpp
deleted
100644 → 0
+
0
−
25
View file @
d7ac5368
/*
* 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
"scheduler/RetrievalJobQueues.hpp"
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta
::
RetrievalJobQueues
::~
RetrievalJobQueues
()
throw
()
{
}
This diff is collapsed.
Click to expand it.
scheduler/RetrievalJobQueues.hpp
deleted
100644 → 0
+
0
−
113
View file @
d7ac5368
/*
* 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
"scheduler/RetrievalJob.hpp"
#include
"scheduler/RetrievalMount.hpp"
#include
"common/exception/Exception.hpp"
#include
<list>
#include
<stdint.h>
#include
<string>
using
cta
::
exception
::
Exception
;
namespace
cta
{
/**
* Abstract class representing the retrieval job queues.
*/
class
RetrievalJobQueues
{
public:
/**
* Destructor.
*/
virtual
~
RetrievalJobQueues
()
throw
()
=
0
;
/**
* Queues the specified retrieval job with the specified priority.
*
* @param priority The priority of the job to be queued.
* @param job The job to be queued.
*/
virtual
void
queueJob
(
const
uint32_t
priority
,
const
RetrievalJob
&
job
)
=
0
;
/**
* Deletes the retrieval job associated with the specified destination disk
* file.
*
* @param dstUrl The URL of the destination disk file.
*/
virtual
void
deleteJob
(
const
std
::
string
&
dstUrl
)
=
0
;
/**
* Returns the current list of retrieval jobs for the specified tape.
*
* @param vid The volume-indentifier name of the tape.
*/
virtual
std
::
list
<
RetrievalJob
>
getJobs
(
const
std
::
string
&
vid
)
=
0
;
/**
* Notifies this object that the specified file transfer has succeeded.
*
* @param copyNb The copy number of the source tape file.
* @param dstUrl The URL of the destination disk file.
*/
virtual
void
fileTransferSucceeded
(
const
uint32_t
copyNb
,
const
std
::
string
&
dstUrl
)
=
0
;
/**
* Notifies this object that the specified file transfer has failed.
*
* @param copyNb The copy number of the source tape file.
* @param dstUrl The URL of the destination disk file.
* @param reason The reason the file transfer failed.
*/
virtual
void
fileTransferFailed
(
const
uint32_t
copyNb
,
const
std
::
string
&
dstUrl
,
const
Exception
&
reason
)
=
0
;
/**
* Returns the next retrieval mount for the specified tape or NULL if there
* currenly isn't one.
*
* @param vid The volume-indentifier name of the tape.
* @return The next retrieval mount or NULL if there isn't one. Please note
* that it is the responsibility of the caller to deallocate any returned
* RetrievalMount object.
*/
virtual
RetrievalMount
*
getNextMount
(
const
std
::
string
&
vid
)
=
0
;
/**
* Returns the next batch of retrieval jobs for the specified on-going tape
* mount.
*
* @param mountId The identifier of the mount.
*/
virtual
std
::
list
<
RetrievalJob
>
getNextJobsForMount
(
const
std
::
string
&
mountId
)
=
0
;
/**
* Requests this object to execute any time dependent and asynchronous logic.
*/
virtual
void
tick
()
=
0
;
};
// class RetrievalJobQueues
}
// 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