Commit 882068de authored by Michael Ott's avatar Michael Ott
Browse files

Add SNG substitution pattern template

parent bb150e59
......@@ -152,7 +152,7 @@ int main(int argc, char** argv) {
std::string host = "127.0.0.1", cassandraPort = "9042", cassandraUser = "", cassandraPassword = "";
int brokerPort = 1883;
std::string nodelist="", jobId="", userId="";
std::string substition="";
std::string substitution="";
uint64_t ts=0;
// Defining options
......@@ -227,7 +227,10 @@ int main(int argc, char** argv) {
userId = optarg;
break;
case 's':
substition = optarg;
substitution = optarg;
if (substitution == "SNG") {
substitution = "s%([fi][0-9]{2})(r[0-9]{2})(c[0-9]{2})(s[0-9]{2})%/sng/\\1/\\2/\\3/\\4%";
}
break;
case 'h':
default:
......@@ -293,12 +296,13 @@ int main(int argc, char** argv) {
DCDB::NodeList nl;
splitNodeList(nodelist, nl);
convertNodeList(nl, substition);
convertNodeList(nl, substitution);
std::cout << "JOBID = " << jobId << std::endl;
std::cout << "USER = " << userId << std::endl;
std::cout << "START = " << ts << std::endl;
std::cout << "NODELIST = " << nodelist << std::endl;
std::cout << "SUBST = " << substitution << std::endl;
std::cout << "NODES =";
for (auto &n: nl) {
std::cout << " " << n;
......
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