Commit f24be64a authored by Huff, Israel's avatar Huff, Israel
Browse files

changed method names to use lazyCamel case

parent 8faec0be
Pipeline #96785 passed with stages
in 5 minutes and 19 seconds
...@@ -9,13 +9,13 @@ class QueueBase ...@@ -9,13 +9,13 @@ class QueueBase
{ {
public: public:
virtual ~QueueBase(); virtual ~QueueBase();
virtual QString listallnodeinfo() = 0; virtual QString listAllNodeInfo() = 0;
virtual QString listallqueues() = 0; virtual QString listAllQueues() = 0;
virtual QString checkjob(QString params) = 0; virtual QString checkJob(QString params) = 0;
virtual QString deletejob(QString params) = 0; virtual QString deleteJob(QString params) = 0;
virtual QString submitjob(QString params) = 0; virtual QString submitJob(QString params) = 0;
virtual QString showqueueinfo(QString params) = 0; virtual QString showQueueInfo(QString params) = 0;
virtual QString showfreeprocs(QString params) = 0; virtual QString showFreeProcs(QString params) = 0;
}; // class QueueBase }; // class QueueBase
} // namespace rsm } // namespace rsm
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
namespace rsm namespace rsm
{ {
// QueuePBS::~QueuePBS() {} // QueuePBS::~QueuePBS() {}
QString QueuePBS::listallnodeinfo() { return "pbsnodes -a"; } QString QueuePBS::listAllNodeInfo() { return "pbsnodes -a"; }
QString QueuePBS::listallqueues() { return "qstat -q"; } QString QueuePBS::listAllQueues() { return "qstat -q"; }
QString QueuePBS::checkjob(QString params) QString QueuePBS::checkJob(QString params)
{ {
// TODO: optional -f job_id // TODO: optional -f job_id
return "qstat " + params; return "qstat " + params;
} }
QString QueuePBS::deletejob(QString params) { return "qdel " + params; } QString QueuePBS::deleteJob(QString params) { return "qdel " + params; }
QString QueuePBS::submitjob(QString params) { return "qsub " + params; } QString QueuePBS::submitJob(QString params) { return "qsub " + params; }
QString QueuePBS::showqueueinfo(QString params) { return "showq " + params; } QString QueuePBS::showQueueInfo(QString params) { return "showq " + params; }
QString QueuePBS::showfreeprocs(QString params) { return "showbf " + params; } QString QueuePBS::showFreeProcs(QString params) { return "showbf " + params; }
} // namespace rsm } // namespace rsm
...@@ -9,13 +9,13 @@ class QueuePBS : public QueueBase ...@@ -9,13 +9,13 @@ class QueuePBS : public QueueBase
{ {
public: public:
// ~QueuePBS() override; // ~QueuePBS() override;
QString listallnodeinfo() override; QString listAllNodeInfo() override;
QString listallqueues() override; QString listAllQueues() override;
QString checkjob(QString params) override; QString checkJob(QString params) override;
QString deletejob(QString params) override; QString deleteJob(QString params) override;
QString submitjob(QString params) override; QString submitJob(QString params) override;
QString showqueueinfo(QString params) override; QString showQueueInfo(QString params) override;
QString showfreeprocs(QString params) override; QString showFreeProcs(QString params) override;
}; // class QueuePBS }; // class QueuePBS
} // namespace rsm } // namespace rsm
......
...@@ -3,20 +3,20 @@ ...@@ -3,20 +3,20 @@
namespace rsm namespace rsm
{ {
// QueueSGE::~QueueSGE() {} // QueueSGE::~QueueSGE() {}
QString QueueSGE::listallnodeinfo() { return "qstat -F"; } QString QueueSGE::listAllNodeInfo() { return "qstat -F"; }
QString QueueSGE::listallqueues() { return "qstat -g c"; } QString QueueSGE::listAllQueues() { return "qstat -g c"; }
QString QueueSGE::checkjob(QString params) QString QueueSGE::checkJob(QString params)
{ // TODO: optional -j job_id { // TODO: optional -j job_id
return "qstat " + params; return "qstat " + params;
} }
QString QueueSGE::deletejob(QString params) { return "qdel " + params; } QString QueueSGE::deleteJob(QString params) { return "qdel " + params; }
QString QueueSGE::submitjob(QString params) { return "qsub " + params; } QString QueueSGE::submitJob(QString params) { return "qsub " + params; }
QString QueueSGE::showqueueinfo(QString params) QString QueueSGE::showQueueInfo(QString params)
{ // TODO: optional -q queue_name { // TODO: optional -q queue_name
return "qstat " + params; return "qstat " + params;
} }
// TODO: how best to handle unsupported features? // TODO: how best to handle unsupported features?
QString QueueSGE::showfreeprocs(QString params) QString QueueSGE::showFreeProcs(QString params)
{ {
(void)sizeof(params); (void)sizeof(params);
return ""; return "";
......
...@@ -9,13 +9,13 @@ class QueueSGE : public QueueBase ...@@ -9,13 +9,13 @@ class QueueSGE : public QueueBase
{ {
public: public:
// ~QueueSGE() override; // ~QueueSGE() override;
QString listallnodeinfo() override; QString listAllNodeInfo() override;
QString listallqueues() override; QString listAllQueues() override;
QString checkjob(QString params) override; QString checkJob(QString params) override;
QString deletejob(QString params) override; QString deleteJob(QString params) override;
QString submitjob(QString params) override; QString submitJob(QString params) override;
QString showqueueinfo(QString params) override; QString showQueueInfo(QString params) override;
QString showfreeprocs(QString params) override; QString showFreeProcs(QString params) override;
}; // class QueueSGE }; // class QueueSGE
} // namespace rsm } // namespace rsm
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment