Skip to content

Commit ccd1d46

Browse files
committed
Added missing provdb_shutdown source to git repo
1 parent 8042b6f commit ccd1d46

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

app/provdb_shutdown.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include "chimbuko/ad/ADProvenanceDBclient.hpp"
2+
3+
using namespace chimbuko;
4+
5+
int main(int argc, char** argv){
6+
#ifdef ENABLE_PROVDB
7+
if(argc != 2){
8+
std::cout << "Usage: provdb_shutdown <server address e.g. ofi+tcp;ofi_rxm://172.17.0.4:5000>" << std::endl;
9+
return 1;
10+
}
11+
ADProvenanceDBclient ad(0);
12+
ad.connect(argv[1], 1);
13+
ad.stopServer();
14+
ad.disconnect();
15+
16+
return 0;
17+
#else
18+
std::cout << "ProvDB not in use" << std::endl;
19+
return 1;
20+
#endif
21+
}
22+

0 commit comments

Comments
 (0)