Examples of corrupted()


Examples of org.scale7.cassandra.pelops.pool.IThriftPool.IPooledConnection.corrupted()

                    logger.warn("Operation failed as result of network exception. Connection to node {} is being marked as corrupt " +
                            "(and will probably be be destroyed). Cause of failure is {}", conn.getNode().getAddress(), e);

                    // This connection is "broken" by network timeout or other problem.
                    conn.corrupted();

                    // to avoid create the set for every request create the set here
                    if (avoidNodes == null) avoidNodes = new HashSet<String>(10);
                    avoidNodes.add(conn.getNode().getAddress());
View Full Code Here

Examples of org.scale7.cassandra.pelops.pool.IThriftPool.IPooledConnection.corrupted()

        } else if (e instanceof NotFoundException) {
                    // Re-throw application-level exceptions immediately.
          throw operandPolicy.getExceptionTranslator().translate(e);
                } else {
                    // This connection is "broken" by network timeout or other problem.
                    conn.corrupted();

                    // Re-throw application-level exceptions immediately.
          throw operandPolicy.getExceptionTranslator().translate(e);
        }
      } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.