Commit 4b66588f authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added support for configurable EOS host and port (in castor.conf)

parent 9af84404
......@@ -657,6 +657,9 @@
# created path.
#TapeServer MockNameServerPath /tmp/CTAMockNS9r236q
# This is the host and port number of the remote EOS xroot server.
#TapeServer EOSRemoteHostAndPort localhost:1094
## Tape Bridge Clients: dumptp, readtp and writetp #############################
# The inclusive low port of the tapebridge client callback port number range.
......
......@@ -556,7 +556,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
messages::TapeserverProxyZmq tapeserver(m_log, m_config.internalPort,
zmqContext.get());
cta::EosNS eosNs("localhost:1094");
cta::EosNS eosNs(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "EOSRemoteHostAndPort"));
cta::MockNameServer mockNs(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "MockNameServerPath"));
cta::objectstore::BackendVFS backend(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "ObjectStoreBackendPath"));
BackendPopulator backendPopulator(backend);
......
......@@ -256,7 +256,7 @@ void XrdProFilesystem::EnvInfo(XrdOucEnv *envP)
//------------------------------------------------------------------------------
XrdProFilesystem::XrdProFilesystem():
m_ns(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "MockNameServerPath")),
m_remoteStorage("localhost:1094"),
m_remoteStorage(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "EOSRemoteHostAndPort")),
m_backend(castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "ObjectStoreBackendPath")),
m_backendPopulator(m_backend),
m_scheddb(m_backend, m_backendPopulator.getAgent()),
......
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