01a1621930df17a745dd37892996c68fca3447d1
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Parameterize Variable | 14 | ||
Parameterize Variable versionNodePath : Path to outputPath : Path in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable stateData : byte[] to data : byte[] in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable appStateData : byte[] to data : byte[] in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable attemptStateData : byte[] to data : byte[] in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable nodeCreatePath : Path to deletePath : Path in method private deleteFileWithRetries(deletePath Path) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable storeData : byte[] to data : byte[] in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable nodeCreatePath : Path to outputPath : Path in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable epochNodePath : Path to outputPath : Path in method private writeFileWithRetries(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Parameterize Variable nodeRemovePath : Path to deletePath : Path in method private deleteFileWithRetries(deletePath Path) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method | 17 | ||
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from protected storeVersion() : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private mkdirsWithRetries(appDirPath Path) : void extracted from public storeApplicationStateInternal(appId ApplicationId, appStateDataPB ApplicationStateData) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private closeWithRetries() : void extracted from protected closeInternal() : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from public storeOrUpdateAMRMTokenSecretManagerState(amrmTokenSecretManagerState AMRMTokenSecretManagerState, isUpdate boolean) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from private storeOrUpdateRMDelegationTokenState(identifier RMDelegationTokenIdentifier, renewDate Long, isUpdate boolean) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from public storeApplicationStateInternal(appId ApplicationId, appStateDataPB ApplicationStateData) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from public storeApplicationAttemptStateInternal(appAttemptId ApplicationAttemptId, attemptStateDataPB ApplicationAttemptStateData) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from public storeRMDTMasterKeyState(masterKey DelegationKey) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private deleteFileWithRetries(deletePath Path) : void extracted from public removeRMDelegationTokenState(identifier RMDelegationTokenIdentifier) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private deleteFileWithRetries(deletePath Path) : void extracted from public removeRMDTMasterKeyState(masterKey DelegationKey) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from protected updateFile(outputPath Path, data byte[]) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private deleteFileWithRetries(deletePath Path) : void extracted from public removeApplicationStateInternal(appState ApplicationStateData) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private writeFileWithRetries(outputPath Path, data byte[]) : void extracted from public getAndIncrementEpoch() : long in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private mkdirsWithRetries(appDirPath Path) : void extracted from protected startInternal() : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To | |
Extract Method private deleteFileWithRetries(deletePath Path) : void extracted from protected replaceFile(srcPath Path, dstPath Path) : void in class org.apache.hadoop.yarn.server.resourcemanager.recovery.FileSystemRMStateStore | From | To |