YARN-9398. Fixed javadoc errors for FPGA related java files.

Contributed by Peter Bacsko
This commit is contained in:
Eric Yang 2019-03-20 15:45:37 -04:00
parent 399563fec6
commit f2b862cac6
3 changed files with 13 additions and 3 deletions

View File

@ -42,11 +42,16 @@ public interface AbstractFpgaVendorPlugin {
/** /**
* Check vendor's toolchain and required environment * Check vendor's toolchain and required environment
* @param conf Hadoop configuration
* @return true if the initialization was successful
* */ * */
boolean initPlugin(Configuration conf); boolean initPlugin(Configuration conf);
/** /**
* Diagnose the devices using vendor toolchain but no need to parse device information * Diagnose the devices using vendor toolchain but no need to parse device information
*
* @param timeout timeout in milliseconds
* @return true if the diagnostics was successful
* */ * */
boolean diagnose(int timeout); boolean diagnose(int timeout);
@ -60,6 +65,8 @@ public interface AbstractFpgaVendorPlugin {
/** /**
* Since all vendor plugins share a {@link org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.fpga.FpgaResourceAllocator} * Since all vendor plugins share a {@link org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.fpga.FpgaResourceAllocator}
* which distinguish FPGA devices by type. Vendor plugin must report this. * which distinguish FPGA devices by type. Vendor plugin must report this.
*
* @return the type of FPGA plugin represented as a string
* */ * */
String getFpgaType(); String getFpgaType();

View File

@ -114,8 +114,11 @@ public void initialize(Configuration config) throws YarnException {
} }
/** /**
* get avialable devices minor numbers from toolchain or static configuration * Get available devices minor numbers from toolchain or static configuration.
* */ *
* @return the list of FPGA devices
* @throws ResourceHandlerException if there's any error during discovery
**/
public List<FpgaResourceAllocator.FpgaDevice> discover() public List<FpgaResourceAllocator.FpgaDevice> discover()
throws ResourceHandlerException { throws ResourceHandlerException {
List<FpgaResourceAllocator.FpgaDevice> list; List<FpgaResourceAllocator.FpgaDevice> list;

View File

@ -153,7 +153,7 @@ public List<FpgaResourceAllocator.FpgaDevice> discover(int timeout) {
} }
/** /**
* Helper class to run aocl diagnose & determine major/minor numbers. * Helper class to run aocl diagnose &amp; determine major/minor numbers.
*/ */
public static class InnerShellExecutor { public static class InnerShellExecutor {