Package org.apache.zookeeper.server

Examples of org.apache.zookeeper.server.ConnectionMXBean.terminateSession()


                                                                                        ConnectionMXBean.class, false);
        for (String node : connectionBean.getEphemeralNodes()) {
          if (node.endsWith("/instances/" + controller.getRunId().getId())) {
            // This is the AM, expire the session.
            LOG.info("Kill AM session {}", connectionBean.getSessionId());
            connectionBean.terminateSession();
            return true;
          }
        }
      }
    } while (stopwatch.elapsedTime(timeoutUnit) < timeout);
View Full Code Here


                                                                                        ConnectionMXBean.class, false);
        for (String node : connectionBean.getEphemeralNodes()) {
          if (node.endsWith("/instances/" + controller.getRunId().getId())) {
            // This is the AM, expire the session.
            LOG.info("Kill AM session {}", connectionBean.getSessionId());
            connectionBean.terminateSession();
            return true;
          }
        }
      }
    } while (stopwatch.elapsedTime(timeoutUnit) < timeout);
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.