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
290d3c9c
Commit
290d3c9c
authored
10 years ago
by
David COME
Browse files
Options
Downloads
Patches
Plain Diff
Removed TaskWatchDog.cpp which was useless (because TaskWatchdog is template)
parent
6ac15fee
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
castor/tape/tapeserver/daemon/CMakeLists.txt
+0
-1
0 additions, 1 deletion
castor/tape/tapeserver/daemon/CMakeLists.txt
castor/tape/tapeserver/daemon/TaskWatchDog.cpp
+0
-90
0 additions, 90 deletions
castor/tape/tapeserver/daemon/TaskWatchDog.cpp
with
0 additions
and
91 deletions
castor/tape/tapeserver/daemon/CMakeLists.txt
+
0
−
1
View file @
290d3c9c
...
...
@@ -36,7 +36,6 @@ add_library(castorTapeServerDaemon
TapeDaemonMain.cpp
TapeWriteSingleThread.cpp
TapeWriteTask.cpp
TaskWatchDog.cpp
VdqmAcceptHandler.cpp
VdqmConnectionHandler.cpp
)
...
...
This diff is collapsed.
Click to expand it.
castor/tape/tapeserver/daemon/TaskWatchDog.cpp
deleted
100644 → 0
+
0
−
90
View file @
6ac15fee
/******************************************************************************
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include
"castor/tape/tapeserver/daemon/TapeServerReporter.hpp"
#include
"castor/messages/Header.pb.h"
#include
"castor/messages/Heartbeat.pb.h"
#include
"castor/messages/Constants.hpp"
#include
"castor/messages/messages.hpp"
#include
"castor/utils/utils.hpp"
#include
"castor/tape/tapeserver/daemon/Constants.hpp"
#include
"castor/tape/tapeserver/daemon/DataTransferSession.hpp"
#include
"castor/tape/tapeserver/daemon/TaskWatchDog.hpp"
namespace
castor
{
namespace
tape
{
namespace
tapeserver
{
namespace
daemon
{
//void TaskWatchDog::run(){
// timeval currentTime;
// while(!m_stopFlag) {
// castor::utils::getTimeOfDay(¤tTime);
//
// timeval diffTimeStuck = castor::utils::timevalAbsDiff(currentTime,m_previousNotifiedTime);
// double diffTimeStuckd = castor::utils::timevalToDouble(diffTimeStuck);
// if(diffTimeStuckd>m_stuckPeriod){
//
// m_reportPacker.reportStuckOn(file);
// }
//
// timeval diffTimeReport = castor::utils::timevalAbsDiff(currentTime,m_previousReportTime);
// double diffTimeReportd = castor::utils::timevalToDouble(diffTimeReport);
// if(diffTimeReportd > m_periodToReport){
// m_lc.log(LOG_DEBUG,"going to report");
// m_previousReportTime=currentTime;
// m_initialProcess.notifyHeartbeat(m_nbOfMemblocksMoved.getAndReset());
// }
// else{
// usleep(100000);
// }
// }
//}
//
//TaskWatchDog::TaskWatchDog(messages::TapeserverProxy& initialProcess,
// ReportPackerInterface<placeHolder>& reportPacker ,log::LogContext lc):
//m_nbOfMemblocksMoved(0),m_periodToReport(2),m_stuckPeriod(60*10),
// m_initialProcess(initialProcess),m_reportPacker(reportPacker),m_lc(lc){
// m_lc.pushOrReplace(log::Param("thread","Watchdog"));
// castor::utils::getTimeOfDay(&m_previousReportTime);
//}
//void TaskWatchDog::notify(){
// timeval tmpTime;
// castor::utils::getTimeOfDay(&tmpTime);
// m_previousNotifiedTime=tmpTime;
// m_nbOfMemblocksMoved++;
//}
//void TaskWatchDog::startThread(){
// start();
//}
//void TaskWatchDog::stopThread(){
// m_stopFlag.set();
// wait();
//}
// void TaskWatchDog::notifyBeginNewJob(const FileStruct& file){
// m_file=file;
// }
// void TaskWatchDog::fileFinished(){
// m_file=file;
// }
}}}}
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