Class CookieCommand<CookieFlagsT extends CliFlags>
java.lang.Object
org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
org.apache.bookkeeper.tools.common.BKCommand<CookieFlagsT>
org.apache.bookkeeper.tools.cli.commands.cookie.CookieCommand<CookieFlagsT>
- Direct Known Subclasses:
CreateCookieCommand,DeleteCookieCommand,GenerateCookieCommand,GetCookieCommand,UpdateCookieCommand
This is a mixin for cookie related commands to extends.
-
Field Summary
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapply(ServiceURI serviceURI, org.apache.commons.configuration2.CompositeConfiguration conf, BKFlags globalFlags, CookieFlagsT cmdFlags) protected abstract voidapply(RegistrationManager rm, CookieFlagsT cmdFlags) asShellCommand(String shellCmdName, org.apache.commons.configuration2.CompositeConfiguration conf) protected BookieIdgetBookieId(CookieFlagsT cmdFlags) protected byte[]readCookieDataFromFile(String cookieFile) Methods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, applyMethods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
Constructor Details
-
CookieCommand
-
-
Method Details
-
apply
protected boolean apply(ServiceURI serviceURI, org.apache.commons.configuration2.CompositeConfiguration conf, BKFlags globalFlags, CookieFlagsT cmdFlags) - Specified by:
applyin classBKCommand<CookieFlagsT extends CliFlags>
-
getBookieId
- Throws:
UnknownHostException
-
readCookieDataFromFile
- Throws:
IOException
-
apply
- Throws:
Exception
-
asShellCommand
public BookieShell.Command asShellCommand(String shellCmdName, org.apache.commons.configuration2.CompositeConfiguration conf)
-