Commit 8efbd16c authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added configurable CTA frontend hostname and port in castor.conf

parent 362db651
......@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "castor/common/CastorConfiguration.hpp"
#include "cmdline/CTACmd.hpp"
#include "common/exception/Exception.hpp"
......@@ -85,7 +86,7 @@ int CTACopyCmd::sendCommand(const int argc, const char **argv) const {
// formatCommandPath
//------------------------------------------------------------------------------
std::string CTACopyCmd::formatCommandPath(const int argc, const char **argv) const {
std::string cmdPath = "root://localhost:10955//";
std::string cmdPath = "root://"+castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "CTAFrontendHostAndPort")+"//";
for(int i=0; i<argc; i++) {
if(i) cmdPath += "&";
cmdPath += encode(std::string(argv[i]));
......
......@@ -660,6 +660,9 @@
# This is the host and port number of the remote EOS xroot server.
#TapeServer EOSRemoteHostAndPort localhost:1094
# This is the host and port number of the CTA frontend server.
#TapeServer CTAFrontendHostAndPort localhost:10955
## Tape Bridge Clients: dumptp, readtp and writetp #############################
# The inclusive low port of the tapebridge client callback port number range.
......
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