File tree Expand file tree Collapse file tree 4 files changed +4
-43
lines changed
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone Expand file tree Collapse file tree 4 files changed +4
-43
lines changed Original file line number Diff line number Diff line change 1818package org .apache .hadoop .ozone .admin .nssummary ;
1919
2020import org .apache .hadoop .fs .ozone .OzoneClientUtils ;
21- import org .apache .hadoop .hdds .cli .GenericCli ;
2221import org .apache .hadoop .hdds .cli .HddsVersionProvider ;
2322import org .apache .hadoop .hdds .cli .OzoneAdmin ;
2423import org .apache .hadoop .hdds .cli .AdminSubcommand ;
6362 FileSizeDistSubCommand .class
6463 })
6564@ MetaInfServices (AdminSubcommand .class )
66- public class NSSummaryAdmin extends GenericCli implements AdminSubcommand {
65+ public class NSSummaryAdmin implements AdminSubcommand {
6766 @ CommandLine .ParentCommand
6867 private OzoneAdmin parent ;
6968
70- @ CommandLine .Spec
71- private CommandLine .Model .CommandSpec spec ;
72-
7369 public OzoneAdmin getParent () {
7470 return parent ;
7571 }
7672
77- @ Override
78- public Void call () throws Exception {
79- GenericCli .missingSubcommand (spec );
80- return null ;
81- }
82-
8373 private boolean isObjectStoreBucket (OzoneBucket bucket , ObjectStore objectStore ) {
8474 boolean enableFileSystemPaths = getOzoneConfig ()
8575 .getBoolean (OMConfigKeys .OZONE_OM_ENABLE_FILESYSTEM_PATHS ,
Original file line number Diff line number Diff line change 1717 */
1818package org .apache .hadoop .ozone .admin .om ;
1919
20- import org .apache .hadoop .hdds .cli .GenericCli ;
2120import org .apache .hadoop .hdds .cli .HddsVersionProvider ;
2221import org .apache .hadoop .hdds .cli .OzoneAdmin ;
2322import org .apache .hadoop .hdds .cli .AdminSubcommand ;
3837import org .apache .ratis .protocol .ClientId ;
3938import org .kohsuke .MetaInfServices ;
4039import picocli .CommandLine ;
41- import picocli .CommandLine .Model .CommandSpec ;
42- import picocli .CommandLine .Spec ;
4340
4441import java .util .Collection ;
4542
6461 FetchKeySubCommand .class
6562 })
6663@ MetaInfServices (AdminSubcommand .class )
67- public class OMAdmin extends GenericCli implements AdminSubcommand {
64+ public class OMAdmin implements AdminSubcommand {
6865
6966 @ CommandLine .ParentCommand
7067 private OzoneAdmin parent ;
7168
72- @ Spec
73- private CommandSpec spec ;
74-
7569 public OzoneAdmin getParent () {
7670 return parent ;
7771 }
7872
79- @ Override
80- public Void call () throws Exception {
81- GenericCli .missingSubcommand (spec );
82- return null ;
83- }
84-
8573 public ClientProtocol createClient (String omServiceId ) throws Exception {
8674 OzoneConfiguration conf = parent .getOzoneConf ();
8775 if (OmUtils .isOmHAServiceId (conf , omServiceId )) {
Original file line number Diff line number Diff line change 1717 */
1818package org .apache .hadoop .ozone .admin .scm ;
1919
20- import org .apache .hadoop .hdds .cli .GenericCli ;
2120import org .apache .hadoop .hdds .cli .HddsVersionProvider ;
2221import org .apache .hadoop .hdds .cli .OzoneAdmin ;
2322import org .apache .hadoop .hdds .cli .AdminSubcommand ;
2423import org .kohsuke .MetaInfServices ;
2524import picocli .CommandLine ;
26- import picocli .CommandLine .Model .CommandSpec ;
27- import picocli .CommandLine .Spec ;
2825
2926/**
3027 * Subcommand for admin operations related to SCM.
4441 RotateKeySubCommand .class
4542 })
4643@ MetaInfServices (AdminSubcommand .class )
47- public class ScmAdmin extends GenericCli implements AdminSubcommand {
44+ public class ScmAdmin implements AdminSubcommand {
4845
4946 @ CommandLine .ParentCommand
5047 private OzoneAdmin parent ;
5148
52- @ Spec
53- private CommandSpec spec ;
54-
5549 public OzoneAdmin getParent () {
5650 return parent ;
5751 }
58-
59- @ Override
60- public Void call () throws Exception {
61- GenericCli .missingSubcommand (spec );
62- return null ;
63- }
6452}
Original file line number Diff line number Diff line change 1717 */
1818package org .apache .hadoop .ozone .debug .segmentparser ;
1919
20- import org .apache .hadoop .hdds .cli .GenericCli ;
2120import org .apache .hadoop .hdds .cli .HddsVersionProvider ;
2221import org .apache .hadoop .hdds .cli .DebugSubcommand ;
2322
3938 versionProvider = HddsVersionProvider .class ,
4039 mixinStandardHelpOptions = true )
4140@ MetaInfServices (DebugSubcommand .class )
42- public class RatisLogParser extends GenericCli implements DebugSubcommand {
43-
44- public static void main (String [] args ) {
45- new RatisLogParser ().run (args );
46- }
41+ public class RatisLogParser implements DebugSubcommand {
4742}
You can’t perform that action at this time.
0 commit comments