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
{
public:
virtual ~QueueBase();
virtual QString listallnodeinfo() = 0;
virtual QString listallqueues() = 0;
virtual QString checkjob(QString params) = 0;
virtual QString deletejob(QString params) = 0;
virtual QString submitjob(QString params) = 0;
virtual QString showqueueinfo(QString params) = 0;
virtual QString showfreeprocs(QString params) = 0;
virtual QString listAllNodeInfo() = 0;
virtual QString listAllQueues() = 0;
virtual QString checkJob(QString params) = 0;
virtual QString deleteJob(QString params) = 0;
virtual QString submitJob(QString params) = 0;
virtual QString showQueueInfo(QString params) = 0;
virtual QString showFreeProcs(QString params) = 0;
}; // class QueueBase
} // namespace rsm
......
......@@ -3,15 +3,15 @@
namespace rsm
{
// QueuePBS::~QueuePBS() {}
QString QueuePBS::listallnodeinfo() { return "pbsnodes -a"; }
QString QueuePBS::listallqueues() { return "qstat -q"; }
QString QueuePBS::checkjob(QString params)
QString QueuePBS::listAllNodeInfo() { return "pbsnodes -a"; }
QString QueuePBS::listAllQueues() { return "qstat -q"; }
QString QueuePBS::checkJob(QString params)
{
// TODO: optional -f job_id
return "qstat " + params;
}
QString QueuePBS::deletejob(QString params) { return "qdel " + params; }
QString QueuePBS::submitjob(QString params) { return "qsub " + params; }
QString QueuePBS::showqueueinfo(QString params) { return "showq " + params; }
QString QueuePBS::showfreeprocs(QString params) { return "showbf " + params; }
QString QueuePBS::deleteJob(QString params) { return "qdel " + params; }
QString QueuePBS::submitJob(QString params) { return "qsub " + params; }
QString QueuePBS::showQueueInfo(QString params) { return "showq " + params; }
QString QueuePBS::showFreeProcs(QString params) { return "showbf " + params; }
} // namespace rsm
......@@ -9,13 +9,13 @@ class QueuePBS : public QueueBase
{
public:
// ~QueuePBS() override;
QString listallnodeinfo() override;
QString listallqueues() override;
QString checkjob(QString params) override;
QString deletejob(QString params) override;
QString submitjob(QString params) override;
QString showqueueinfo(QString params) override;
QString showfreeprocs(QString params) override;
QString listAllNodeInfo() override;
QString listAllQueues() override;
QString checkJob(QString params) override;
QString deleteJob(QString params) override;
QString submitJob(QString params) override;
QString showQueueInfo(QString params) override;
QString showFreeProcs(QString params) override;
}; // class QueuePBS
} // namespace rsm
......
......@@ -3,20 +3,20 @@
namespace rsm
{
// QueueSGE::~QueueSGE() {}
QString QueueSGE::listallnodeinfo() { return "qstat -F"; }
QString QueueSGE::listallqueues() { return "qstat -g c"; }
QString QueueSGE::checkjob(QString params)
QString QueueSGE::listAllNodeInfo() { return "qstat -F"; }
QString QueueSGE::listAllQueues() { return "qstat -g c"; }
QString QueueSGE::checkJob(QString params)
{ // TODO: optional -j job_id
return "qstat " + params;
}
QString QueueSGE::deletejob(QString params) { return "qdel " + params; }
QString QueueSGE::submitjob(QString params) { return "qsub " + params; }
QString QueueSGE::showqueueinfo(QString params)
QString QueueSGE::deleteJob(QString params) { return "qdel " + params; }
QString QueueSGE::submitJob(QString params) { return "qsub " + params; }
QString QueueSGE::showQueueInfo(QString params)
{ // TODO: optional -q queue_name
return "qstat " + params;
}
// TODO: how best to handle unsupported features?
QString QueueSGE::showfreeprocs(QString params)
QString QueueSGE::showFreeProcs(QString params)
{
(void)sizeof(params);
return "";
......
......@@ -9,13 +9,13 @@ class QueueSGE : public QueueBase
{
public:
// ~QueueSGE() override;
QString listallnodeinfo() override;
QString listallqueues() override;
QString checkjob(QString params) override;
QString deletejob(QString params) override;
QString submitjob(QString params) override;
QString showqueueinfo(QString params) override;
QString showfreeprocs(QString params) override;
QString listAllNodeInfo() override;
QString listAllQueues() override;
QString checkJob(QString params) override;
QString deleteJob(QString params) override;
QString submitJob(QString params) override;
QString showQueueInfo(QString params) override;
QString showFreeProcs(QString params) override;
}; // class QueueSGE
} // namespace rsm
......
Markdown is supported
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