public class WorkerCommandAction extends Object implements StallionRunAction<ServeCommandOptions>
Constructor and Description |
---|
WorkerCommandAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(ServeCommandOptions options)
Actually do the action.
|
String |
getActionName()
The name of the action, will be used on the command line to run the action.
|
String |
getHelp()
A friendly description of what the action does, will be printed on the command-line
when help is asked for.
|
void |
loadApp(ServeCommandOptions options)
Load the application context.
|
ServeCommandOptions |
newCommandOptions()
Each action might have its own command-line arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSubActionName
public WorkerCommandAction()
public String getActionName()
StallionRunAction
getActionName
in interface StallionRunAction<ServeCommandOptions>
public String getHelp()
StallionRunAction
getHelp
in interface StallionRunAction<ServeCommandOptions>
public void loadApp(ServeCommandOptions options)
StallionRunAction
loadApp
in interface StallionRunAction<ServeCommandOptions>
public ServeCommandOptions newCommandOptions()
StallionRunAction
newCommandOptions
in interface StallionRunAction<ServeCommandOptions>
public void execute(ServeCommandOptions options) throws Exception
StallionRunAction
execute
in interface StallionRunAction<ServeCommandOptions>
Exception
Copyright © 2016. All rights reserved.