Class CommonOptions
- java.lang.Object
-
- org.apache.jackrabbit.oak.run.cli.CommonOptions
-
- All Implemented Interfaces:
OptionsBean
public class CommonOptions extends Object implements OptionsBean
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONNECTION_STRING
-
Constructor Summary
Constructors Constructor Description CommonOptions(joptsimple.OptionParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(joptsimple.OptionSet options)Stringdescription()Description string for this set of optionsList<String>getNonOptions()StringgetStoreArg()booleanisDocument()booleanisHelpRequested()booleanisMemory()booleanisMetricsEnabled()booleanisMongo()booleanisOldSegment()booleanisRDB()booleanisReadWrite()Set<String>operationNames()Option names which are actually performing operationintorder()Used to sort the help output.Stringtitle()Title string for this set of options
-
-
-
Field Detail
-
DEFAULT_CONNECTION_STRING
public static final String DEFAULT_CONNECTION_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(joptsimple.OptionSet options)
- Specified by:
configurein interfaceOptionsBean
-
isHelpRequested
public boolean isHelpRequested()
-
isReadWrite
public boolean isReadWrite()
-
isMongo
public boolean isMongo()
-
isRDB
public boolean isRDB()
-
isOldSegment
public boolean isOldSegment()
-
isDocument
public boolean isDocument()
-
isMemory
public boolean isMemory()
-
isMetricsEnabled
public boolean isMetricsEnabled()
-
getStoreArg
public String getStoreArg()
-
title
public String title()
Description copied from interface:OptionsBeanTitle string for this set of options- Specified by:
titlein interfaceOptionsBean
-
description
public String description()
Description copied from interface:OptionsBeanDescription string for this set of options- Specified by:
descriptionin interfaceOptionsBean
-
order
public int order()
Description copied from interface:OptionsBeanUsed to sort the help output. Help for OptionsBean in descending order i.e. bean having highest order would be rendered first- Specified by:
orderin interfaceOptionsBean
-
operationNames
public Set<String> operationNames()
Description copied from interface:OptionsBeanOption names which are actually performing operation- Specified by:
operationNamesin interfaceOptionsBean
-
-