summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/AdminSessionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-12-13 14:04:11 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-12-13 14:04:11 +0000
commit8642754fe313e1df2cd28bb45a3cb278eab170a4 (patch)
tree4f722789a0cefc24412e3d2f77621bb8f56facb1 /cpp/src/IceGrid/AdminSessionI.cpp
parentFixed bug #1610 (diff)
downloadice-8642754fe313e1df2cd28bb45a3cb278eab170a4.tar.bz2
ice-8642754fe313e1df2cd28bb45a3cb278eab170a4.tar.xz
ice-8642754fe313e1df2cd28bb45a3cb278eab170a4.zip
Added support for server log files, "property" attribute in object element.
Fixed a bug in the locator implemntation where an incorrect timeout was used.
Diffstat (limited to 'cpp/src/IceGrid/AdminSessionI.cpp')
-rw-r--r--cpp/src/IceGrid/AdminSessionI.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/AdminSessionI.cpp b/cpp/src/IceGrid/AdminSessionI.cpp
index 6785fedf70c..00f4439fb31 100644
--- a/cpp/src/IceGrid/AdminSessionI.cpp
+++ b/cpp/src/IceGrid/AdminSessionI.cpp
@@ -212,32 +212,38 @@ AdminSessionI::getReplicaName(const Ice::Current& current) const
return _replicaName;
}
+FileIteratorPrx
+AdminSessionI::openServerLog(const string& id, const string& path, int nLines, const Ice::Current& current)
+{
+ return addFileIterator(_database->getServer(id)->getProxy(), "#" + path, nLines, current);
+}
+
FileIteratorPrx
-AdminSessionI::openServerStdOut(const std::string& id, int nLines, const Ice::Current& current)
+AdminSessionI::openServerStdOut(const string& id, int nLines, const Ice::Current& current)
{
return addFileIterator(_database->getServer(id)->getProxy(), "stdout", nLines, current);
}
FileIteratorPrx
-AdminSessionI::openServerStdErr(const std::string& id, int nLines, const Ice::Current& current)
+AdminSessionI::openServerStdErr(const string& id, int nLines, const Ice::Current& current)
{
return addFileIterator(_database->getServer(id)->getProxy(), "stderr", nLines, current);
}
FileIteratorPrx
-AdminSessionI::openNodeStdOut(const std::string& name, int nLines, const Ice::Current& current)
+AdminSessionI::openNodeStdOut(const string& name, int nLines, const Ice::Current& current)
{
return addFileIterator(_database->getNode(name)->getProxy(), "stdout", nLines, current);
}
FileIteratorPrx
-AdminSessionI::openNodeStdErr(const std::string& name, int nLines, const Ice::Current& current)
+AdminSessionI::openNodeStdErr(const string& name, int nLines, const Ice::Current& current)
{
return addFileIterator(_database->getNode(name)->getProxy(), "stderr", nLines, current);
}
FileIteratorPrx
-AdminSessionI::openRegistryStdOut(const std::string& name, int nLines, const Ice::Current& current)
+AdminSessionI::openRegistryStdOut(const string& name, int nLines, const Ice::Current& current)
{
FileReaderPrx reader;
if(name == _replicaName)
@@ -252,7 +258,7 @@ AdminSessionI::openRegistryStdOut(const std::string& name, int nLines, const Ice
}
FileIteratorPrx
-AdminSessionI::openRegistryStdErr(const std::string& name, int nLines, const Ice::Current& current)
+AdminSessionI::openRegistryStdErr(const string& name, int nLines, const Ice::Current& current)
{
FileReaderPrx reader;
if(name == _replicaName)