public String getAllEndpointStates() { StringBuilder sb = new StringBuilder(); for (Map.Entry<InetAddress, EndpointState> entry : Gossiper.instance.endpointStateMap.entrySet()) { sb.append(entry.getKey()).append("\n"); appendEndpointState(sb, entry.getValue()); } return sb.toString(); }
public void forceConviction(InetAddress ep) { logger.debug("Forcing conviction of {}", ep); for (IFailureDetectionEventListener listener : fdEvntListeners) { listener.convict(ep, getPhiConvictThreshold()); } }
/** * Dump the inter arrival times for examination if necessary. */ public void dumpInterArrivalTimes() { File file = FileUtils.createTempFile("failuredetector-", ".dat"); try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file, true))) { os.write(toString().getBytes()); } catch (IOException e) { throw new FSWriteError(e, file); } }
/** * Dump the inter arrival times for examination if necessary. */ public void dumpInterArrivalTimes() { File file = FileUtils.createTempFile("failuredetector-", ".dat"); try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file, true))) { os.write(toString().getBytes()); } catch (IOException e) { throw new FSWriteError(e, file); } }
public String getAllEndpointStates() { StringBuilder sb = new StringBuilder(); for (Map.Entry<InetAddress, EndpointState> entry : Gossiper.instance.endpointStateMap.entrySet()) { sb.append(entry.getKey()).append("\n"); appendEndpointState(sb, entry.getValue()); } return sb.toString(); }
public void forceConviction(InetAddress ep) { logger.debug("Forcing conviction of {}", ep); for (IFailureDetectionEventListener listener : fdEvntListeners) { listener.convict(ep, getPhiConvictThreshold()); } }
/** * Dump the inter arrival times for examination if necessary. */ public void dumpInterArrivalTimes() { File file = FileUtils.createTempFile("failuredetector-", ".dat"); try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file, true))) { os.write(toString().getBytes()); } catch (IOException e) { throw new FSWriteError(e, file); } }
public String getAllEndpointStates() { StringBuilder sb = new StringBuilder(); for (Map.Entry<InetAddress, EndpointState> entry : Gossiper.instance.endpointStateMap.entrySet()) { sb.append(entry.getKey()).append("\n"); appendEndpointState(sb, entry.getValue()); } return sb.toString(); }
public void forceConviction(InetAddress ep) { logger.debug("Forcing conviction of {}", ep); for (IFailureDetectionEventListener listener : fdEvntListeners) { listener.convict(ep, getPhiConvictThreshold()); } }
/** * Dump the inter arrival times for examination if necessary. */ public void dumpInterArrivalTimes() { File file = FileUtils.createTempFile("failuredetector-", ".dat"); OutputStream os = null; try { os = new BufferedOutputStream(new FileOutputStream(file, true)); os.write(toString().getBytes()); } catch (IOException e) { throw new FSWriteError(e, file); } finally { FileUtils.closeQuietly(os); } }
public String getAllEndpointStates() { StringBuilder sb = new StringBuilder(); for (Map.Entry<InetAddress, EndpointState> entry : Gossiper.instance.endpointStateMap.entrySet()) { sb.append(entry.getKey()).append("\n"); appendEndpointState(sb, entry.getValue()); } return sb.toString(); }
public void forceConviction(InetAddress ep) { logger.debug("Forcing conviction of {}", ep); for (IFailureDetectionEventListener listener : fdEvntListeners) { listener.convict(ep, getPhiConvictThreshold()); } }
public String getEndpointState(String address) throws UnknownHostException { StringBuilder sb = new StringBuilder(); EndpointState endpointState = Gossiper.instance.getEndpointStateForEndpoint(InetAddress.getByName(address)); appendEndpointState(sb, endpointState); return sb.toString(); }
logger.trace("PHI for {} : {}", ep, phi); if (PHI_FACTOR * phi > getPhiConvictThreshold()) logger.trace("Node {} phi {} > {}; intervals: {} mean: {}", new Object[]{ep, PHI_FACTOR * phi, getPhiConvictThreshold(), hbWnd, hbWnd.mean()}); for (IFailureDetectionEventListener listener : fdEvntListeners) else if (logger.isDebugEnabled() && (PHI_FACTOR * phi * DEBUG_PERCENTAGE / 100.0 > getPhiConvictThreshold()))
public String getEndpointState(String address) throws UnknownHostException { StringBuilder sb = new StringBuilder(); EndpointState endpointState = Gossiper.instance.getEndpointStateForEndpoint(InetAddress.getByName(address)); appendEndpointState(sb, endpointState); return sb.toString(); }
logger.trace("PHI for " + ep + " : " + phi); if (PHI_FACTOR * phi > getPhiConvictThreshold())
public String getEndpointState(String address) throws UnknownHostException { StringBuilder sb = new StringBuilder(); EndpointState endpointState = Gossiper.instance.getEndpointStateForEndpoint(InetAddress.getByName(address)); appendEndpointState(sb, endpointState); return sb.toString(); }
logger.trace("PHI for {} : {}", ep, phi); if (PHI_FACTOR * phi > getPhiConvictThreshold()) logger.trace("Node {} phi {} > {}; intervals: {} mean: {}", new Object[]{ep, PHI_FACTOR * phi, getPhiConvictThreshold(), hbWnd, hbWnd.mean()}); for (IFailureDetectionEventListener listener : fdEvntListeners) else if (logger.isDebugEnabled() && (PHI_FACTOR * phi * DEBUG_PERCENTAGE / 100.0 > getPhiConvictThreshold()))
public String getEndpointState(String address) throws UnknownHostException { StringBuilder sb = new StringBuilder(); EndpointState endpointState = Gossiper.instance.getEndpointStateForEndpoint(InetAddress.getByName(address)); appendEndpointState(sb, endpointState); return sb.toString(); }
logger.trace("PHI for {} : {}", ep, phi); if (PHI_FACTOR * phi > getPhiConvictThreshold()) logger.trace("Node {} phi {} > {}; intervals: {} mean: {}", new Object[]{ep, PHI_FACTOR * phi, getPhiConvictThreshold(), hbWnd, hbWnd.mean()}); for (IFailureDetectionEventListener listener : fdEvntListeners) else if (logger.isDebugEnabled() && (PHI_FACTOR * phi * DEBUG_PERCENTAGE / 100.0 > getPhiConvictThreshold()))