Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
dc847990
Commit
dc847990
authored
Feb 22, 2016
by
Daniele Kruse
Browse files
Put back in the scheduler db in the scheduler, plus some corrections on comments
parent
59a8a22f
Changes
3
Hide whitespace changes
Inline
Side-by-side
scheduler/Scheduler.cpp
View file @
dc847990
...
...
@@ -35,7 +35,7 @@ cta::Scheduler::Scheduler(
catalogue
::
Catalogue
&
catalogue
,
NameServer
&
ns
,
SchedulerDatabase
&
db
,
RemoteNS
&
remoteNS
)
:
m_catalogue
(
catalogue
)
{
RemoteNS
&
remoteNS
)
:
m_catalogue
(
catalogue
)
,
m_db
(
db
)
{
}
//------------------------------------------------------------------------------
...
...
scheduler/Scheduler.hpp
View file @
dc847990
...
...
@@ -229,7 +229,15 @@ public:
private:
/**
* The catalogue.
*/
cta
::
catalogue
::
Catalogue
&
m_catalogue
;
/**
* The scheduler database.
*/
SchedulerDatabase
&
m_db
;
};
// class Scheduler
}
// namespace cta
xroot_plugins/XrdCtaFile.hpp
View file @
dc847990
...
...
@@ -34,7 +34,9 @@ namespace cta { namespace xrootPlugins {
* documentation can be found in XrdSfs/XrdSfsInterface.hh.
*/
class
XrdProFile
:
public
XrdSfsFile
{
public:
XrdOucErrInfo
error
;
virtual
int
open
(
const
char
*
fileName
,
XrdSfsFileOpenMode
openMode
,
mode_t
createMode
,
const
XrdSecEntity
*
client
=
0
,
const
char
*
opaque
=
0
);
virtual
int
close
();
...
...
@@ -53,6 +55,7 @@ public:
virtual
int
getCXinfo
(
char
cxtype
[
4
],
int
&
cxrsz
);
XrdProFile
(
cta
::
Scheduler
*
scheduler
,
const
char
*
user
=
0
,
int
MonID
=
0
);
~
XrdProFile
();
protected:
/**
...
...
@@ -76,8 +79,8 @@ protected:
/**
* Checks whether client has correct permissions and returns the corresponding SecurityIdentity structure
*
* @param
req parsed request
* @return The requester structure
* @param
client The client security entity
* @return
The requester
cta
structure
*/
cta
::
common
::
dataStructures
::
SecurityIdentity
checkClient
(
const
XrdSecEntity
*
client
);
...
...
@@ -93,7 +96,8 @@ protected:
/**
* Parses the command line and dispatches it to the relevant function
*
* @param tokens The command line tokens
* @param tokens The command line tokens
* @param requester The requester identity
*/
void
dispatchCommand
(
const
std
::
vector
<
std
::
string
>
&
tokens
,
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
);
...
...
@@ -103,6 +107,7 @@ protected:
* @param tokens The command line tokens
* @param optionShortName The short name of the required option
* @param optionLongName The long name of the required option
* @param encoded True if the argument is encoded, false otherwise
* @return the value of the option or an empty string if absent
*/
std
::
string
getOptionValue
(
const
std
::
vector
<
std
::
string
>
&
tokens
,
const
std
::
string
&
optionShortName
,
const
std
::
string
&
optionLongName
,
const
bool
encoded
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment