@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((containerId == null) ? 0 : containerId.hashCode()); result = prime * result + ((containerToken == null) ? 0 : containerToken.hashCode()); result = prime * result + ((nodeId == null) ? 0 : nodeId.hashCode()); return result; }
@Override public int hashCode() { return (getContainerId().hashCode() << 16); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((containerID == null) ? 0 : containerID.hashCode()); result = prime * result + ((containerMgrAddress == null) ? 0 : containerMgrAddress.hashCode()); result = prime * result + ((containerToken == null) ? 0 : containerToken.hashCode()); result = prime * result + ((taskAttemptID == null) ? 0 : taskAttemptID.hashCode()); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((containerID == null) ? 0 : containerID.hashCode()); result = prime * result + ((containerMgrAddress == null) ? 0 : containerMgrAddress.hashCode()); result = prime * result + ((containerToken == null) ? 0 : containerToken.hashCode()); result = prime * result + ((taskAttemptID == null) ? 0 : taskAttemptID.hashCode()); result = prime * result + (dumpContainerThreads ? 1 : 0); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((containerID == null) ? 0 : containerID.hashCode()); result = prime * result + ((containerMgrAddress == null) ? 0 : containerMgrAddress.hashCode()); result = prime * result + ((containerToken == null) ? 0 : containerToken.hashCode()); result = prime * result + ((taskAttemptID == null) ? 0 : taskAttemptID.hashCode()); result = prime * result + (dumpContainerThreads ? 1 : 0); return result; }
@Override public int hashCode() { if (null != getContainerId()) { return getContainerId().hashCode(); } return super.hashCode(); }
@Override public int hashCode() { return (getContainerId().hashCode() << 16) + targetCapacity.hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { return getCapability().hashCode() + getContainerId().hashCode(); }
@Override public int hashCode() { final int prime = 2153; int result = 2459; ContainerId cId = getContainerId(); Resource capability = getCapability(); result = prime * result + ((capability == null) ? 0 : capability.hashCode()); result = prime * result + ((cId == null) ? 0 : cId.hashCode()); result = prime * result + getContainerVersion(); return result; }
public boolean shouldDoLogAggregation(ContainerLogContext logContext) { if (logContext.getContainerType() == ContainerType.APPLICATION_MASTER || logContext.getExitCode() != 0) { // If it is AM or failed or killed container, enable log aggregation. return true; } // Only sample log aggregation for large applications. // We assume the container id is continuously allocated from number 1 and // Worker containers start from id 2. So logs of worker containers with ids // in [2, minThreshold + 1] will be aggregated. if ((logContext.getContainerId().getContainerId() & ContainerId.CONTAINER_ID_BITMASK) < minThreshold + 2) { return true; } // Sample log aggregation for the rest of successful worker containers return (sampleRate != 0 && logContext.getContainerId().hashCode() % (1/sampleRate) == 0); } }
public boolean shouldDoLogAggregation(ContainerLogContext logContext) { if (logContext.getContainerType() == ContainerType.APPLICATION_MASTER || logContext.getExitCode() != 0) { // If it is AM or failed or killed container, enable log aggregation. return true; } // Only sample log aggregation for large applications. // We assume the container id is continuously allocated from number 1 and // Worker containers start from id 2. So logs of worker containers with ids // in [2, minThreshold + 1] will be aggregated. if ((logContext.getContainerId().getContainerId() & ContainerId.CONTAINER_ID_BITMASK) < minThreshold + 2) { return true; } // Sample log aggregation for the rest of successful worker containers return (sampleRate != 0 && logContext.getContainerId().hashCode() % (1/sampleRate) == 0); } }
@Override public int hashCode() { final int prime = 2153; int result = 2459; ContainerId cId = getContainerId(); ExecutionType execType = getExecutionType(); Resource capability = getCapability(); ContainerUpdateType updateType = getContainerUpdateType(); result = prime * result + ((capability == null) ? 0 : capability.hashCode()); result = prime * result + ((cId == null) ? 0 : cId.hashCode()); result = prime * result + getContainerVersion(); result = prime * result + ((execType == null) ? 0 : execType.hashCode()); result = prime * result + ((updateType== null) ? 0 : updateType.hashCode()); return result; }