name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
hadoop_LogAggregationWebUtils_getLogStartIndex_rdh
/** * Parse start index from html. * * @param html * the html * @param startStr * the start index string * @return the startIndex */ public static long getLogStartIndex(Block html, String startStr) throws NumberFormatException { long start = -4096; if ((startStr != null) && (!startStr.isEmpty())) { ...
3.26
hadoop_UpdateApplicationTimeoutsResponse_newInstance_rdh
/** * <p> * The response sent by the <code>ResourceManager</code> to the client on update * application timeout. * </p> * <p> * A response without exception means that the update has completed * successfully. * </p> */ @Public @Unstable
3.26
hadoop_AWSAuditEventCallbacks_requestCreated_rdh
/** * Callback when a request is created in the S3A code. * This is called in {@code RequestFactoryImpl} after * each request is created. * It is not invoked on any AWS requests created in the SDK. * Avoid raising exceptions or talking to any remote service; * this callback is for annotation rather than validatio...
3.26
hadoop_FederationProxyProviderUtil_createRMProxy_rdh
/** * Create a proxy for the specified protocol in the context of Federation. For * non-HA, this is a direct connection to the ResourceManager address. When HA * is enabled, the proxy handles the failover between the ResourceManagers as * well. * * @param configuration * Configuration to generate {@link Client...
3.26
hadoop_FederationProxyProviderUtil_updateConfForFederation_rdh
/** * Updating the conf with Federation as long as certain subclusterId. * * @param conf * configuration * @param subClusterId * subclusterId for the conf */ public static void updateConfForFederation(Configuration conf, String subClusterId) { conf.set(YarnConfiguration.RM_CLUSTER_ID, subClusterId); ...
3.26
hadoop_TimelinePutResponse_addError_rdh
/** * Add a single {@link TimelinePutError} instance into the existing list * * @param error * a single {@link TimelinePutError} instance */ public void addError(TimelinePutError error) { errors.add(error); } /** * Add a list of {@link TimelinePutError} instances into the existing list * * @param errors ...
3.26
hadoop_TimelinePutResponse_setErrors_rdh
/** * Set the list to the given list of {@link TimelinePutError} instances * * @param errors * a list of {@link TimelinePutError} instances */ public void setErrors(List<TimelinePutError> errors) { this.errors.clear(); this.errors.addAll(errors); }
3.26
hadoop_TimelinePutResponse_setErrorCode_rdh
/** * Set the error code to the given error code * * @param errorCode * an error code */ public void setErrorCode(int errorCode) { this.errorCode = errorCode; }
3.26
hadoop_TimelinePutResponse_setEntityType_rdh
/** * Set the entity type * * @param entityType * the entity type */ public void setEntityType(String entityType) { this.entityType = entityType; }
3.26
hadoop_TimelinePutResponse_setEntityId_rdh
/** * Set the entity Id * * @param entityId * the entity Id */ public void setEntityId(String entityId) { this.entityId = entityId; }
3.26
hadoop_TimelinePutResponse_getEntityType_rdh
/** * Get the entity type * * @return the entity type */ @XmlElement(name = "entitytype") public String getEntityType() { return entityType; }
3.26
hadoop_TimelinePutResponse_getEntityId_rdh
/** * Get the entity Id * * @return the entity Id */ @XmlElement(name = "entity") public String getEntityId() { return entityId; }
3.26
hadoop_TimelinePutResponse_getErrors_rdh
/** * Get a list of {@link TimelinePutError} instances * * @return a list of {@link TimelinePutError} instances */ @XmlElement(name = "errors") public List<TimelinePutError> getErrors() { return errors; }
3.26
hadoop_TimelinePutResponse_getErrorCode_rdh
/** * Get the error code * * @return an error code */ @XmlElement(name = "errorcode") public int getErrorCode() { return errorCode; }
3.26
hadoop_Canceler_cancel_rdh
/** * Requests that the current operation be canceled if it is still running. * This does not block until the cancellation is successful. * * @param reason * the reason why cancellation is requested */ public void cancel(String reason) { this.cancelReason = reason; }
3.26
hadoop_BatchedRequests_getApplicationId_rdh
/** * Get Application Id. * * @return Application Id. */ public ApplicationId getApplicationId() { return applicationId; }
3.26
hadoop_BatchedRequests_getSchedulingRequests_rdh
/** * Get Collection of SchedulingRequests in this batch. * * @return Collection of Scheduling Requests. */ @Override public Collection<SchedulingRequest> getSchedulingRequests() { return requests; }
3.26
hadoop_BatchedRequests_iterator_rdh
/** * Exposes SchedulingRequest Iterator interface which can be used * to traverse requests using different heuristics i.e. Tag Popularity * * @return SchedulingRequest Iterator. */ @Override public Iterator<SchedulingRequest> iterator() { switch (this.iteratorType) { ...
3.26
hadoop_BatchedRequests_addToBatch_rdh
/** * Add a Scheduling request to the batch. * * @param req * Scheduling Request. */ public void addToBatch(SchedulingRequest req) { requests.add(req); }
3.26
hadoop_BatchedRequests_getPlacementAttempt_rdh
/** * Get placement attempt. * * @return PlacementAlgorithmOutput placement Attempt. */ public int getPlacementAttempt() { return placementAttempt; }
3.26
hadoop_BatchedRequests_getIteratorType_rdh
/** * Get Iterator type. * * @return Iterator type. */ public IteratorType getIteratorType() { return iteratorType; }
3.26
hadoop_IOStatisticsSnapshot_clear_rdh
/** * Clear all the maps. */ public synchronized void clear() { counters.clear(); gauges.clear(); minimums.clear(); maximums.clear(); meanStatistics.clear(); }
3.26
hadoop_IOStatisticsSnapshot_snapshot_rdh
/** * Take a snapshot. * * This completely overwrites the map data with the statistics * from the source. * * @param source * statistics source. */ public synchronized void snapshot(IOStatistics source) { checkNotNull(source); counters = snapshotMap(source.counters()); gauges = snapshotMap(source....
3.26
hadoop_IOStatisticsSnapshot_serializer_rdh
/** * Get a JSON serializer for this class. * * @return a serializer. */ public static JsonSerialization<IOStatisticsSnapshot> serializer() { return new JsonSerialization<>(IOStatisticsSnapshot.class, false, true); }
3.26
hadoop_IOStatisticsSnapshot_requiredSerializationClasses_rdh
/** * What classes are needed to deserialize this class? * Needed to securely unmarshall this from untrusted sources. * * @return a list of required classes to deserialize the data. */ public static List<Class> requiredSerializationClasses() { return Arrays.stream(DESERIALIZATION_CLASSES).collect(Collectors.toList...
3.26
hadoop_IOStatisticsSnapshot_aggregate_rdh
/** * Aggregate the current statistics with the * source reference passed in. * * The operation is synchronized. * * @param source * source; may be null * @return true if a merge took place. */ @Override public synchronized boolean aggregate(@Nullable IOStatistics source) { if (source == null) { ...
3.26
hadoop_IOStatisticsSnapshot_readObject_rdh
/** * Deserialize by loading each TreeMap, and building concurrent * hash maps from them. * * @param s * ObjectInputStream. * @throws IOException * raised on errors performing I/O. * @throws ClassNotFoundException * class not found exception */ private void readObject(final ObjectInputStream s) throws I...
3.26
hadoop_IOStatisticsSnapshot_writeObject_rdh
/** * Serialize by converting each map to a TreeMap, and saving that * to the stream. * * @param s * ObjectOutputStream. * @throws IOException * raised on errors performing I/O. */ private synchronized void writeObject(ObjectOutputStream s) throws IOException { // Write out the core s.defaultWriteO...
3.26
hadoop_IOStatisticsSnapshot_createMaps_rdh
/** * Create the maps. */ private synchronized void createMaps() { counters = new ConcurrentHashMap<>(); gauges = new ConcurrentHashMap<>(); minimums = new ConcurrentHashMap<>(); maximums = new ConcurrentHashMap<>(); meanStatistics = new ConcurrentHashMap<>(); }
3.26
hadoop_ReconfigurationTaskStatus_stopped_rdh
/** * Return true if the latest reconfiguration task has finished and there is * no another active task running. * * @return true if endTime &gt; 0; false if not. */ public boolean stopped() { return endTime > 0; }
3.26
hadoop_ReconfigurationTaskStatus_hasTask_rdh
/** * Return true if * - A reconfiguration task has finished or * - an active reconfiguration task is running. * * @return true if startTime &gt; 0; false if not. */ public boolean hasTask() { return startTime > 0; }
3.26
hadoop_AppIdKeyConverter_getKeySize_rdh
/** * Returns the size of app id after encoding. * * @return size of app id after encoding. */ public static int getKeySize() { return Bytes.SIZEOF_LONG + Bytes.SIZEOF_INT; }
3.26
hadoop_RejectedSchedulingRequest_newInstance_rdh
/** * Create new RejectedSchedulingRequest. * * @param reason * Rejection Reason. * @param request * Rejected Scheduling Request. * @return RejectedSchedulingRequest. */public static RejectedSchedulingRequest newInstance(RejectionReason reason, SchedulingRequest request) { RejectedSchedulingRequest inst...
3.26
hadoop_TracingContext_getHeader_rdh
/** * Return header representing the request associated with the tracingContext * * @return Header string set into X_MS_CLIENT_REQUEST_ID */ public String getHeader() { return header; }
3.26
hadoop_TracingContext_constructHeader_rdh
/** * Concatenate all identifiers separated by (:) into a string and set into * X_MS_CLIENT_REQUEST_ID header of the http operation * * @param httpOperation * AbfsHttpOperation instance to set header into * connection * @param previousFailure * Failure seen before this API trigger on same operation * f...
3.26
hadoop_QueueStateHelper_setQueueState_rdh
/** * Sets the current state of the queue based on its previous state, its parent's state and its * configured state. * * @param queue * the queue whose state is set */ public static void setQueueState(AbstractCSQueue queue) { QueueState v0 = queue.getState(); QueueState configuredState = queue.getQue...
3.26
hadoop_CsiConfigUtils_getCsiAdaptorAddressForDriver_rdh
/** * Resolve the CSI adaptor address for a CSI driver from configuration. * Expected configuration property name is * yarn.nodemanager.csi-driver-adaptor.${driverName}.address. * * @param driverName * driver name. * @param conf * configuration. * @return adaptor service address * @throws YarnException *...
3.26
hadoop_JobTokenSecretManager_addTokenForJob_rdh
/** * Add the job token of a job to cache * * @param jobId * the job that owns the token * @param token * the job token */ public void addTokenForJob(String jobId, Token<JobTokenIdentifier> token) { SecretKey tokenSecret = createSecretKey(token.getPassword()); synchronized(currentJobTokens) { ...
3.26
hadoop_JobTokenSecretManager_createIdentifier_rdh
/** * Create an empty job token identifier * * @return a newly created empty job token identifier */ @Override public JobTokenIdentifier createIdentifier() { return new JobTokenIdentifier(); }
3.26
hadoop_JobTokenSecretManager_createPassword_rdh
/** * Create a new password/secret for the given job token identifier. * * @param identifier * the job token identifier * @return token password/secret */ @Override public byte[] createPassword(JobTokenIdentifier identifier) { byte[] result = createPassword(identifier.getBytes(), masterKey); return resu...
3.26
hadoop_JobTokenSecretManager_retrieveTokenSecret_rdh
/** * Look up the token password/secret for the given jobId. * * @param jobId * the jobId to look up * @return token password/secret as SecretKey * @throws InvalidToken */ public SecretKey retrieveTokenSecret(String jobId) throws InvalidToken { SecretKey tokenSecret = null; synchronized(currentJobToken...
3.26
hadoop_JobTokenSecretManager_computeHash_rdh
/** * Compute the HMAC hash of the message using the key * * @param msg * the message to hash * @param key * the key to use * @return the computed hash */ public static byte[] computeHash(byte[] msg, SecretKey key) { return createPassword(msg, key); }
3.26
hadoop_JobTokenSecretManager_createSecretKey_rdh
/** * Convert the byte[] to a secret key * * @param key * the byte[] to create the secret key from * @return the secret key */ public static SecretKey createSecretKey(byte[] key) { return SecretManager.createSecretKey(key); }
3.26
hadoop_JobTokenSecretManager_retrievePassword_rdh
/** * Look up the token password/secret for the given job token identifier. * * @param identifier * the job token identifier to look up * @return token password/secret as byte[] * @throws InvalidToken */ @Override public byte[] retrievePassword(JobTokenIdentifier identifier) throws InvalidToken { return re...
3.26
hadoop_BlockMissingException_getFile_rdh
/** * Returns the name of the corrupted file. * * @return name of corrupted file */ public String getFile() { return filename; }
3.26
hadoop_BlockMissingException_m0_rdh
/** * Returns the offset at which this file is corrupted * * @return offset of corrupted file */ public long m0() { return offset; }
3.26
hadoop_CompressionOutputStream_getIOStatistics_rdh
/** * Return any IOStatistics provided by the underlying stream. * * @return IO stats from the inner stream. */ @Override public IOStatistics getIOStatistics() { return IOStatisticsSupport.retrieveIOStatistics(out); }
3.26
hadoop_UpdateContainerTokenEvent_isExecTypeUpdate_rdh
/** * Is this update an ExecType Update. * * @return isExecTypeUpdate. */public boolean isExecTypeUpdate() { return isExecTypeUpdate; }
3.26
hadoop_UpdateContainerTokenEvent_getUpdatedToken_rdh
/** * Update Container Token. * * @return Container Token. */ public ContainerTokenIdentifier getUpdatedToken() { return updatedToken; }
3.26
hadoop_UpdateContainerTokenEvent_isIncrease_rdh
/** * Is this a container Increase. * * @return isIncrease. */ public boolean isIncrease() { return isIncrease; }
3.26
hadoop_UpdateContainerTokenEvent_isResourceChange_rdh
/** * Is this update a ResourceChange. * * @return isResourceChange. */ public boolean isResourceChange() {return isResourceChange; }
3.26
hadoop_ReencryptionHandler_startUpdaterThread_rdh
/** * Start the re-encryption updater thread. */ void startUpdaterThread() { updaterExecutor = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder().setDaemon(true).setNameFormat("reencryptionUpdaterThread #%d").build()); updaterExecutor.execute(reencryptionUpdater); }
3.26
hadoop_ReencryptionHandler_checkINodeReady_rdh
/** * Check whether zone is ready for re-encryption. Throws IOE if it's not. 1. * If EZ is deleted. 2. if the re-encryption is canceled. 3. If NN is not * active or is in safe mode. * * @throws IOException * if zone does not exist / is cancelled, or if NN is not ready * for write. */ @Override protected voi...
3.26
hadoop_ReencryptionHandler_unprotectedGetTracker_rdh
/** * Get the tracker without holding the FSDirectory lock. * The submissions object is protected by object lock. */ synchronized ZoneSubmissionTracker unprotectedGetTracker(final long zoneId) { return submissions.get(zoneId); }
3.26
hadoop_ReencryptionHandler_run_rdh
/** * Main loop. It takes at most 1 zone per scan, and executes until the zone * is completed. * {@link #reencryptEncryptionZone(long)}. */ @Override public void run() { f0.info("Starting up re-encrypt thread with interval={} millisecond.", interval); while (true) { try { synchronized(th...
3.26
hadoop_ReencryptionHandler_resetSubmissionTracker_rdh
/** * Reset the zone submission tracker for re-encryption. * * @param zoneId */ private synchronized void resetSubmissionTracker(final long zoneId) { ZoneSubmissionTracker zst = submissions.get(zoneId); if (zst == null) { zst = new ZoneSubmissionTracker(); submissions.put(zoneId, zst...
3.26
hadoop_ReencryptionHandler_restoreFromLastProcessedFile_rdh
/** * Restore the re-encryption from the progress inside ReencryptionStatus. * This means start from exactly the lastProcessedFile (LPF), skipping all * earlier paths in lexicographic order. Lexicographically-later directories * on the LPF parent paths are added to subdirs. */ private void restoreFromLastProcessed...
3.26
hadoop_ReencryptionHandler_addDummyTracker_rdh
/** * Add a dummy tracker (with 1 task that has 0 files to re-encrypt) * for the zone. This is necessary to complete the re-encryption in case * no file in the entire zone needs re-encryption at all. We cannot simply * update zone status and set zone xattrs, because in the handler we only hold * readlock, and sett...
3.26
hadoop_ReencryptionHandler_stopThreads_rdh
/** * Stop the re-encryption updater thread, as well as all EDEK re-encryption * tasks submitted. */void stopThreads() { assert dir.hasWriteLock(); synchronized(this) { for (ZoneSubmissionTracker zst : submissions.values()) { zst.cancelAllTasks(); } }if (updaterExecutor != nul...
3.26
hadoop_ReencryptionHandler_notifyNewSubmission_rdh
/** * Called when a new zone is submitted for re-encryption. This will interrupt * the background thread if it's waiting for the next * DFS_NAMENODE_REENCRYPT_SLEEP_INTERVAL_KEY. */ synchronized void notifyNewSubmission() {f0.debug("Notifying handler for new re-encryption command."); this.notify(); }
3.26
hadoop_ReencryptionHandler_submitCurrentBatch_rdh
/** * Submit the current batch to the thread pool. * * @param zoneId * Id of the EZ INode * @throws IOException * @throws InterruptedException */ @Override protected void submitCurrentBatch(final Long zoneId) throws IOException, InterruptedException { if (currentBatch.isEmpty()) { return; } ...
3.26
hadoop_ReencryptionHandler_reencryptEncryptionZone_rdh
/** * Re-encrypts a zone by recursively iterating all paths inside the zone, * in lexicographic order. * Files are re-encrypted, and subdirs are processed during iteration. * * @param zoneId * the Zone's id. * @thro...
3.26
hadoop_ReencryptionHandler_throttle_rdh
/** * Throttles the ReencryptionHandler in 3 aspects: * 1. Prevents generating more Callables than the CPU could possibly * handle. * 2. Prevents generating more Callables than the ReencryptionUpdater * can handle, under its own throttling. * 3. Prevents contending FSN/FSD read locks. This is done based * on the...
3.26
hadoop_AltKerberosAuthenticationHandler_authenticate_rdh
/** * It enforces the the Kerberos SPNEGO authentication sequence returning an * {@link AuthenticationToken} only after the Kerberos SPNEGO sequence has * completed successfully (in the case of Java access) and only after the * custom authentication implemented by the subclass in alternateAuthenticate * has comple...
3.26
hadoop_AltKerberosAuthenticationHandler_m0_rdh
/** * This method parses the User-Agent String and returns whether or not it * refers to a browser. If its not a browser, then Kerberos authentication * will be used; if it is a browser, alternateAuthenticate from the subclass * will be used. * <p> * A User-Agent String is considered to be a browser if it does n...
3.26
hadoop_AllocationFileQueueParser_loadQueue_rdh
/** * Loads a queue from a queue element in the configuration file. */ private void loadQueue(String parentName, Element element, QueueProperties.Builder builder) throws AllocationConfigurationException { String queueName = FairSchedulerUtilities.trimQueueName(element.getAttribute("name"));if (queueName.contains(...
3.26
hadoop_AllocationFileQueueParser_getErrorString_rdh
/** * Set up the error string based on the supplied parent queueName and element. * * @param parentQueueName * the parent queue name. * @param element * the element that should not be present for the parent queue. * @return the error string. */private String getErrorString(String parentQueueName, String ele...
3.26
hadoop_AllocationFileQueueParser_parse_rdh
// Load queue elements. A root queue can either be included or omitted. If // it's included, all other queues must be inside it. public QueueProperties parse() throws AllocationConfigurationException {QueueProperties.Builder queuePropertiesBuilder = new QueueProperties.Builder(); for (Element element : elements) { ...
3.26
hadoop_HdfsDtFetcher_getServiceName_rdh
/** * Returns the service name for HDFS, which is also a valid URL prefix. */ public Text getServiceName() { return new Text(SERVICE_NAME); }
3.26
hadoop_HdfsDtFetcher_addDelegationTokens_rdh
/** * Returns Token object via FileSystem, null if bad argument. * * @param conf * - a Configuration object used with FileSystem.get() * @param creds * - a Credentials object to which token(s) will be added * @param renewer * - the renewer to send with the token request * @param url * - the URL to whi...
3.26
hadoop_ContainerInfo_getAllocatedResources_rdh
/** * Return a map of the allocated resources. The map key is the resource name, * and the value is the resource value. * * @return the allocated resources map */ public Map<String, Long> getAllocatedResources() { return Collections.unmodifiableMap(allocatedResources); }
3.26
hadoop_DocumentStoreTimelineReaderImpl_applyFilters_rdh
// for honoring all filters from {@link TimelineEntityFilters} private Set<TimelineEntity> applyFilters(TimelineEntityFilters filters, TimelineDataToRetrieve dataToRetrieve, List<TimelineEntityDocument> entityDocs) throws IOException { Set<TimelineEntity> timelineEntities = new HashSet<>(); for (TimelineEntit...
3.26
hadoop_NMStateStoreService_serviceStart_rdh
/** * Start the state storage for use */ @Override public void serviceStart() throws IOException { startStorage(); }
3.26
hadoop_NMStateStoreService_serviceInit_rdh
/** * Initialize the state storage */ @Override public void serviceInit(Configuration conf) throws IOException { initStorage(conf); }
3.26
hadoop_NMStateStoreService_serviceStop_rdh
/** * Shutdown the state storage. */ @Override public void serviceStop() throws IOException { closeStorage(); }
3.26
hadoop_NMStateStoreService_releaseAssignedResources_rdh
/** * Delete the assigned resources of a container of specific resourceType. * * @param containerId * Container Id * @param resourceType * resource Type * @throws IOException * while releasing resources */ public void releaseAssignedResources(ContainerId containerId, String resourceType) throws IOExcepti...
3.26
hadoop_HadoopUncaughtExceptionHandler_uncaughtException_rdh
/** * Uncaught exception handler. * If an error is raised: shutdown * The state of the system is unknown at this point -attempting * a clean shutdown is dangerous. Instead: exit * * @param thread * thread that failed * @param exception * the raised exception */ @Override public void uncaughtException(Thre...
3.26
hadoop_AzureADAuthenticator_getHttpErrorCode_rdh
/** * Gets Http error status code. * * @return http error code. */ public int getHttpErrorCode() {return this.httpErrorCode; }
3.26
hadoop_AzureADAuthenticator_getTokenUsingRefreshToken_rdh
/** * Gets Azure Active Directory token using refresh token. * * @param authEndpoint * the OAuth 2.0 token endpoint associated * with the user's directory (obtain from * Active Directory configuration) * @param clientId * the client ID (GUID) of the client web app obtained from Azure Active Directory co...
3.26
hadoop_AzureADAuthenticator_getTokenUsingClientCreds_rdh
/** * gets Azure Active Directory token using the user ID and password of * a service principal (that is, Web App in Azure Active Directory). * * Azure Active Directory allows users to set up a web app as a * service principal. Users can optionally obtain service principal keys * from AAD. This method gets a toke...
3.26
hadoop_AzureADAuthenticator_getTokenFromMsi_rdh
/** * Gets AAD token from the local virtual machine's VM extension. This only works on * an Azure VM with MSI extension * enabled. * * @param authEndpoint * the OAuth 2.0 token endpoint associated * with the user's directory (obtain from * Active Directory configuration) * @param tenantGuid * (optiona...
3.26
hadoop_AzureADAuthenticator_getRequestId_rdh
/** * Gets http request id . * * @return http request id. */ public String getRequestId() { return this.requestId; }
3.26
hadoop_DataNodeFaultInjector_interceptBlockReader_rdh
/** * Used as a hook to inject intercept When finish reading from block. */ public void interceptBlockReader() { }
3.26
hadoop_DataNodeFaultInjector_delayAckLastPacket_rdh
/** * Used as a hook to delay sending the response of the last packet. */ public void delayAckLastPacket() throws IOException { }
3.26
hadoop_DataNodeFaultInjector_logDelaySendingPacketDownstream_rdh
/** * Used as a hook to intercept the latency of sending packet. */ public void logDelaySendingPacketDownstream(final String mirrAddr, final long delayMs) throws IOException { }
3.26
hadoop_DataNodeFaultInjector_interceptFreeBlockReaderBuffer_rdh
/** * Used as a hook to inject intercept when free the block reader buffer. */ public void interceptFreeBlockReaderBuffer() { }
3.26
hadoop_DataNodeFaultInjector_delayDeleteReplica_rdh
/** * Just delay delete replica a while. */ public void delayDeleteReplica() { }
3.26
hadoop_DataNodeFaultInjector_delayWriteToOsCache_rdh
/** * Used as a hook to delay writing a packet to os cache. */ public void delayWriteToOsCache() { }
3.26
hadoop_DataNodeFaultInjector_delayWriteToDisk_rdh
/** * Used as a hook to delay writing a packet to disk. */ public void delayWriteToDisk() { }
3.26
hadoop_DataNodeFaultInjector_delayWhenOfferServiceHoldLock_rdh
/** * Used as a hook to inject intercept when BPOfferService hold lock. */ public void delayWhenOfferServiceHoldLock() { }
3.26
hadoop_DataNodeFaultInjector_stripedBlockReconstruction_rdh
/** * Used as a hook to inject failure in erasure coding reconstruction * process. */ public void stripedBlockReconstruction() throws IOException { }
3.26
hadoop_DataNodeFaultInjector_badDecoding_rdh
/** * Used as a hook to inject data pollution * into an erasure coding reconstruction. */ public void badDecoding(ByteBuffer[] outputs) { }
3.26
hadoop_DataNodeFaultInjector_logDelaySendingAckToUpstream_rdh
/** * Used as a hook to intercept the latency of sending ack. */ public void logDelaySendingAckToUpstream(final String upstreamAddr, final long delayMs) throws IOException { }
3.26
hadoop_DataNodeFaultInjector_blockUtilSendFullBlockReport_rdh
/** * Used as a hook to inject intercept when re-register. */ public void blockUtilSendFullBlockReport() { }
3.26
hadoop_DataNodeFaultInjector_stripedBlockChecksumReconstruction_rdh
/** * Used as a hook to inject failure in erasure coding checksum reconstruction * process. */ public void stripedBlockChecksumReconstruction() throws IOException { }
3.26
hadoop_DataNodeFaultInjector_delay_rdh
/** * Just delay a while. */ public void delay() { }
3.26
hadoop_DataNodeFaultInjector_delayBlockReader_rdh
/** * Used as a hook to inject latency when read block * in erasure coding reconstruction process. */ public void delayBlockReader() { }
3.26
hadoop_WebPageUtils_appendToolSection_rdh
/** * Creates the tool section after a closed section. If it is not enabled, * the section is created without any links. * * @param section * a closed HTML div section * @param conf * configuration object * @return the tool section, if it is enabled, null otherwise */ public static Hamlet.UL<Hamlet.DIV<Ham...
3.26
hadoop_WorkRequest_getRetry_rdh
/** * * @return Number of previous attempts to process this work request. */ public int getRetry() { return retry; }
3.26
hadoop_WordMedian_map_rdh
/** * Emits a key-value pair for counting the word. Outputs are (IntWritable, * IntWritable). * * @param value * This will be a line of text coming in from our input file. */ public void map(Object key, Text value, Context context) throws IOException, InterruptedException { StringTokenizer v0 = new StringTo...
3.26