X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2Finternal%2FConnectionRecover.cpp;fp=source%2Fcomm%2Finternal%2FConnectionRecover.cpp;h=a56931afb82c5755c8f07891044b24dff4610237;hp=9f257812c32d1215e1db74f85359d09c1a6e3c3a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/internal/ConnectionRecover.cpp b/source/comm/internal/ConnectionRecover.cpp index 9f25781..a56931a 100644 --- a/source/comm/internal/ConnectionRecover.cpp +++ b/source/comm/internal/ConnectionRecover.cpp @@ -25,7 +25,7 @@ using namespace anna; * Se invoca desde el handler::RemoteConnection::finalize y debe estar protegido por la SSCC del Communicator */ void comm::ConnectionRecover::annotateFault(comm::Server* server) -throw() { +{ if(server->autoRecovery() == false) return; @@ -49,7 +49,7 @@ throw() { * Se invoca desde el Communicator y en MT debe estar protegido por la SSCC del Communicator */ void comm::ConnectionRecover::tryRecover() -throw() { +{ LOGMETHOD(TraceMethod traceMethod(Logger::Local7, "comm::ConnectionRecover", "tryRecover", ANNA_FILE_LOCATION)); Millisecond now(functions::millisecond()); @@ -98,14 +98,14 @@ throw() { /* bool comm::ConnectionRecover::contains (comm::Server* server) const - throw () + { Guard guard (a_mutex, "comm::ConnectionRecover::contains"); return std::find (a_breaks.begin (), a_breaks.end (), server) != a_breaks.end (); } void comm::ConnectionRecover::erase (comm::Server* server) - throw () + { Guard guard (a_mutex, "comm::ConnectionRecover::erase"); @@ -123,7 +123,7 @@ void comm::ConnectionRecover::erase (comm::Server* server) */ xml::Node* comm::ConnectionRecover::asXML(xml::Node* parent) const -throw(RuntimeException) { +noexcept(false) { xml::Node* connectionRecover = parent->createChild("comm.ConnectionRecover"); connectionRecover->createAttribute("Active", functions::asString(a_isRunning));