Esempio n. 1
0
 /**
   *  NOTE this is important in case of tcp connection failure we do not need to cleanup the unicastConnections like we do in the DistributionManagerImpl
   *  because the clientConnections in this class are in the client side
   * @param clientTcpConversation
   */
 public void handleTcpConnectionFailure(TcpConnection clientTcpConversation)
 {
     lock (locker)
     {
         lockedClientTcpConversations.Remove(clientTcpConversation);
         freeClientTcpConversations.Remove(clientTcpConversation);
     }
 }
Esempio n. 2
0
 public void registerTcpConversation(TcpConnection clientTcpConversation)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
        public void releaseConversation(TcpConnection clientTcpConversation)
        {
            if (clientTcpConversation.ok())
            {
                lock (locker)
                {

                    lockedClientTcpConversations.Remove(clientTcpConversation);
                    freeClientTcpConversations.Add(clientTcpConversation);
                }
                return;
            }
            else
            {
                //TODO handale this
            }
        }
Esempio n. 4
0
 public void handleTcpConnectionFailure(TcpConnection connection)
 {
     try
     {
         close();
     }
     catch (PlanckDBException e)
     {
         log.error("Fail to terminate distributionManager connections", e);
     }
 }