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
3685986c
Commit
3685986c
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[cta_frontend] Adds (empty) methods for all CTA Admin commands
This completes the dispatcher logic in the frontend
parent
49437b14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+913
-66
913 additions, 66 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
xroot_plugins/XrdSsiCtaRequestMessage.hpp
+60
-0
60 additions, 0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.hpp
with
973 additions
and
66 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+
913
−
66
View file @
3685986c
...
...
@@ -53,70 +53,190 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
switch
(
cmd_pair
(
request
.
admincmd
().
cmd
(),
request
.
admincmd
().
subcmd
()))
{
using
namespace
cta
::
admin
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEFILE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_UP
):
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_DOWN
):
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_ADD
):
processAdmin_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_CH
):
processAdmin_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_RM
):
processAdmin_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMIN
,
AdminCmd
::
SUBCMD_LS
):
processAdmin_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_ADD
):
processAdminHost_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_CH
):
processAdminHost_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_RM
):
processAdminHost_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ADMINHOST
,
AdminCmd
::
SUBCMD_LS
):
processAdminHost_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEFILE
,
AdminCmd
::
SUBCMD_LS
):
processArchiveFile_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_ADD
):
processArchiveRoute_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_CH
):
processArchiveRoute_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_RM
):
processArchiveRoute_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_ARCHIVEROUTE
,
AdminCmd
::
SUBCMD_LS
):
processArchiveRoute_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_UP
):
processDrive_Up
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_DOWN
):
processDrive_Down
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_DRIVE
,
AdminCmd
::
SUBCMD_LS
):
processDrive_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_ADD
):
processGroupMountRule_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_CH
):
processGroupMountRule_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_RM
):
processGroupMountRule_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_GROUPMOUNTRULE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_LISTPENDINGARCHIVES
,
AdminCmd
::
SUBCMD_NONE
):
goto
the_end
;
case
cmd_pair
(
AdminCmd
::
CMD_LISTPENDINGRETRIEVES
,
AdminCmd
::
SUBCMD_NONE
):
processListPendingRetrieves
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_ERR
):
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_SHRINK
,
AdminCmd
::
SUBCMD_NONE
):
case
cmd_pair
(
AdminCmd
::
CMD_SHOWQUEUES
,
AdminCmd
::
SUBCMD_NONE
):
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_RECLAIM
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_LABEL
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_CH
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_READ
):
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_WRITE
):
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_WRITE_AUTO
):
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_ADD
):
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_RM
):
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_LS
):
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_ERR
):
the_end:
processGroupMountRule_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LISTPENDINGARCHIVES
,
AdminCmd
::
SUBCMD_NONE
):
processListPendingArchives
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LISTPENDINGRETRIEVES
,
AdminCmd
::
SUBCMD_NONE
):
processListPendingRetrieves
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_ADD
):
processLogicalLibrary_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_CH
):
processLogicalLibrary_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_RM
):
processLogicalLibrary_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_LOGICALLIBRARY
,
AdminCmd
::
SUBCMD_LS
):
processLogicalLibrary_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_ADD
):
processMountPolicy_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_CH
):
processMountPolicy_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_RM
):
processMountPolicy_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_MOUNTPOLICY
,
AdminCmd
::
SUBCMD_LS
):
processMountPolicy_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_ADD
):
processRepack_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_RM
):
processRepack_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_LS
):
processRepack_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REPACK
,
AdminCmd
::
SUBCMD_ERR
):
processRepack_Err
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_ADD
):
processRequesterMountRule_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_CH
):
processRequesterMountRule_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_RM
):
processRequesterMountRule_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_REQUESTERMOUNTRULE
,
AdminCmd
::
SUBCMD_LS
):
processRequesterMountRule_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_SHRINK
,
AdminCmd
::
SUBCMD_NONE
):
processShrink
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_SHOWQUEUES
,
AdminCmd
::
SUBCMD_NONE
):
processShowQueues
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_ADD
):
processStorageClass_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_CH
):
processStorageClass_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_RM
):
processStorageClass_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_STORAGECLASS
,
AdminCmd
::
SUBCMD_LS
):
processStorageClass_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_ADD
):
processTape_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_CH
):
processTape_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_RM
):
processTape_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_RECLAIM
):
processTape_Reclaim
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_LS
):
processTape_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPE
,
AdminCmd
::
SUBCMD_LABEL
):
processTape_Label
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_ADD
):
processTapePool_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_CH
):
processTapePool_Ch
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_RM
):
processTapePool_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TAPEPOOL
,
AdminCmd
::
SUBCMD_LS
):
processTapePool_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_READ
):
processTest_Read
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_WRITE
):
processTest_Write
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_TEST
,
AdminCmd
::
SUBCMD_WRITE_AUTO
):
processTest_WriteAuto
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_ADD
):
processVerify_Add
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_RM
):
processVerify_Rm
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_LS
):
processVerify_Ls
(
request
.
admincmd
(),
response
);
break
;
case
cmd_pair
(
AdminCmd
::
CMD_VERIFY
,
AdminCmd
::
SUBCMD_ERR
):
processVerify_Err
(
request
.
admincmd
(),
response
);
break
;
default:
throw
PbException
(
"Admin command pair <"
+
AdminCmd_Cmd_Name
(
request
.
admincmd
().
cmd
())
+
", "
+
...
...
@@ -126,12 +246,19 @@ goto the_end;
break
;
case
Request
::
kNotification
:
// Map the Workflow Event to a method
switch
(
request
.
notification
().
wf
().
event
())
{
using
namespace
cta
::
eos
;
case
Workflow
::
CLOSEW
:
processCLOSEW
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
PREPARE
:
processPREPARE
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
DELETE
:
processDELETE
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
CLOSEW
:
processCLOSEW
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
PREPARE
:
processPREPARE
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
DELETE
:
processDELETE
(
request
.
notification
(),
response
);
break
;
default:
throw
PbException
(
"Workflow event "
+
...
...
@@ -275,6 +402,258 @@ void RequestMessage::processDELETE(const cta::eos::Notification ¬ification, c
void
RequestMessage
::
processAdmin_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdmin_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdmin_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdmin_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdminHost_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdminHost_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdminHost_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processAdminHost_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processArchiveFile_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processArchiveRoute_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processArchiveRoute_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processArchiveRoute_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processArchiveRoute_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processDrive_Up
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processDrive_Down
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processDrive_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processGroupMountRule_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processGroupMountRule_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processGroupMountRule_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processGroupMountRule_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processListPendingArchives
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processListPendingRetrieves
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
...
...
@@ -352,6 +731,474 @@ void RequestMessage::processListPendingRetrieves(const cta::admin::AdminCmd &adm
void
RequestMessage
::
processLogicalLibrary_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processLogicalLibrary_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processLogicalLibrary_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processLogicalLibrary_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processMountPolicy_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processMountPolicy_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processMountPolicy_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processMountPolicy_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRepack_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRepack_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRepack_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRepack_Err
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRequesterMountRule_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRequesterMountRule_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRequesterMountRule_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processRequesterMountRule_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processShrink
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processShowQueues
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processStorageClass_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processStorageClass_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processStorageClass_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processStorageClass_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Reclaim
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTape_Label
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTapePool_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTapePool_Ch
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTapePool_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTapePool_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTest_Read
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTest_Write
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processTest_WriteAuto
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processVerify_Add
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processVerify_Rm
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processVerify_Ls
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processVerify_Err
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
)
{
using
namespace
cta
::
admin
;
std
::
stringstream
cmdlineOutput
;
response
.
set_message_txt
(
cmdlineOutput
.
str
());
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
importOptions
(
const
cta
::
admin
::
AdminCmd
&
admincmd
)
{
// Validate the Protocol Buffer
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdSsiCtaRequestMessage.hpp
+
60
−
0
View file @
3685986c
...
...
@@ -66,7 +66,67 @@ private:
*/
typedef
void
admincmd_t
(
const
cta
::
admin
::
AdminCmd
&
admincmd
,
cta
::
xrd
::
Response
&
response
);
admincmd_t
processAdmin_Add
;
admincmd_t
processAdmin_Ch
;
admincmd_t
processAdmin_Rm
;
admincmd_t
processAdmin_Ls
;
admincmd_t
processAdminHost_Add
;
admincmd_t
processAdminHost_Ch
;
admincmd_t
processAdminHost_Rm
;
admincmd_t
processAdminHost_Ls
;
admincmd_t
processArchiveFile_Ls
;
admincmd_t
processArchiveRoute_Add
;
admincmd_t
processArchiveRoute_Ch
;
admincmd_t
processArchiveRoute_Rm
;
admincmd_t
processArchiveRoute_Ls
;
admincmd_t
processDrive_Up
;
admincmd_t
processDrive_Down
;
admincmd_t
processDrive_Ls
;
admincmd_t
processGroupMountRule_Add
;
admincmd_t
processGroupMountRule_Ch
;
admincmd_t
processGroupMountRule_Rm
;
admincmd_t
processGroupMountRule_Ls
;
admincmd_t
processListPendingArchives
;
admincmd_t
processListPendingRetrieves
;
admincmd_t
processLogicalLibrary_Add
;
admincmd_t
processLogicalLibrary_Ch
;
admincmd_t
processLogicalLibrary_Rm
;
admincmd_t
processLogicalLibrary_Ls
;
admincmd_t
processMountPolicy_Add
;
admincmd_t
processMountPolicy_Ch
;
admincmd_t
processMountPolicy_Rm
;
admincmd_t
processMountPolicy_Ls
;
admincmd_t
processRepack_Add
;
admincmd_t
processRepack_Rm
;
admincmd_t
processRepack_Ls
;
admincmd_t
processRepack_Err
;
admincmd_t
processRequesterMountRule_Add
;
admincmd_t
processRequesterMountRule_Ch
;
admincmd_t
processRequesterMountRule_Rm
;
admincmd_t
processRequesterMountRule_Ls
;
admincmd_t
processShrink
;
admincmd_t
processShowQueues
;
admincmd_t
processStorageClass_Add
;
admincmd_t
processStorageClass_Ch
;
admincmd_t
processStorageClass_Rm
;
admincmd_t
processStorageClass_Ls
;
admincmd_t
processTape_Add
;
admincmd_t
processTape_Ch
;
admincmd_t
processTape_Rm
;
admincmd_t
processTape_Reclaim
;
admincmd_t
processTape_Ls
;
admincmd_t
processTape_Label
;
admincmd_t
processTapePool_Add
;
admincmd_t
processTapePool_Ch
;
admincmd_t
processTapePool_Rm
;
admincmd_t
processTapePool_Ls
;
admincmd_t
processTest_Read
;
admincmd_t
processTest_Write
;
admincmd_t
processTest_WriteAuto
;
admincmd_t
processVerify_Add
;
admincmd_t
processVerify_Rm
;
admincmd_t
processVerify_Ls
;
admincmd_t
processVerify_Err
;
/*!
* Import Google Protobuf option fields into maps
...
...
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