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
6b9f68c3
Commit
6b9f68c3
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added more name server related methods to the Scheduler class
parent
837284d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scheduler/Scheduler.cpp
+47
-0
47 additions, 0 deletions
scheduler/Scheduler.cpp
scheduler/Scheduler.hpp
+60
-0
60 additions, 0 deletions
scheduler/Scheduler.hpp
scheduler/SchedulerTest.cpp
+872
-0
872 additions, 0 deletions
scheduler/SchedulerTest.cpp
with
979 additions
and
0 deletions
scheduler/Scheduler.cpp
+
47
−
0
View file @
6b9f68c3
...
...
@@ -350,6 +350,53 @@ std::list<cta::Tape> cta::Scheduler::getTapes(
return
m_db
.
getTapes
(
requester
);
}
//------------------------------------------------------------------------------
// createDir
//------------------------------------------------------------------------------
void
cta
::
Scheduler
::
createDir
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
,
const
uint16_t
mode
)
{
m_ns
.
createDir
(
requester
,
path
,
mode
);
}
//------------------------------------------------------------------------------
// deleteDir
//------------------------------------------------------------------------------
void
cta
::
Scheduler
::
deleteDir
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
)
{
m_ns
.
deleteDir
(
requester
,
path
);
}
//------------------------------------------------------------------------------
// getVidOfFile
//------------------------------------------------------------------------------
std
::
string
cta
::
Scheduler
::
getVidOfFile
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
,
const
uint16_t
copyNb
)
const
{
return
m_ns
.
getVidOfFile
(
requester
,
path
,
copyNb
);
}
//------------------------------------------------------------------------------
// getDirContents
//------------------------------------------------------------------------------
cta
::
DirIterator
cta
::
Scheduler
::
getDirContents
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
)
const
{
return
m_ns
.
getDirContents
(
requester
,
path
);
}
//------------------------------------------------------------------------------
// statDirEntry
//------------------------------------------------------------------------------
cta
::
DirEntry
cta
::
Scheduler
::
statDirEntry
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
)
const
{
return
m_ns
.
statDirEntry
(
requester
,
path
);
}
//------------------------------------------------------------------------------
// setDirStorageClass
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
scheduler/Scheduler.hpp
+
60
−
0
View file @
6b9f68c3
...
...
@@ -414,6 +414,66 @@ public:
std
::
list
<
Tape
>
getTapes
(
const
SecurityIdentity
&
requester
)
const
;
/**
* Creates the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
* @param mode The mode bits of the directory entry.
*/
void
createDir
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
,
const
uint16_t
mode
);
/**
* Deletes the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
*/
void
deleteDir
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
);
/**
* Returns the volume identifier of the tape on which the specified tape copy
* has been archived.
*
* @param requester The identity of the requester.
* @param path The absolute path of the file.
* @param copyNb The copy number of the file.
*/
std
::
string
getVidOfFile
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
,
const
uint16_t
copyNb
)
const
;
/**
* Gets the contents of the specified directory.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory.
* @return An iterator over the contents of the directory.
*/
DirIterator
getDirContents
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
)
const
;
/**
* Returns the directory entry information for the specified directory or file
* within the archive namespace.
*
* @param requester The identity of the requester.
* @param path The absolute path of the directory or file within the archive
* namespace.
* @return The directory entry information for the specified directory or file
* within the archive namespace.
*/
DirEntry
statDirEntry
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
path
)
const
;
/**
* Sets the storage class of the specified directory to the specified value.
*
...
...
This diff is collapsed.
Click to expand it.
scheduler/SchedulerTest.cpp
+
872
−
0
View file @
6b9f68c3
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