public class StallionServer extends Object implements StallionRunAction<ServeCommandOptions>
| Modifier and Type | Class and Description |
|---|---|
class |
StallionServer.InterruptHandler |
class |
StallionServer.ReloadHandler |
| Constructor and Description |
|---|
StallionServer() |
| 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, waitgetSubActionNamepublic StallionServer()
public String getActionName()
StallionRunActiongetActionName in interface StallionRunAction<ServeCommandOptions>public String getHelp()
StallionRunActiongetHelp in interface StallionRunAction<ServeCommandOptions>public void loadApp(ServeCommandOptions options)
StallionRunActionloadApp in interface StallionRunAction<ServeCommandOptions>public ServeCommandOptions newCommandOptions()
StallionRunActionnewCommandOptions in interface StallionRunAction<ServeCommandOptions>public void execute(ServeCommandOptions options) throws Exception
StallionRunActionexecute in interface StallionRunAction<ServeCommandOptions>ExceptionCopyright © 2016. All rights reserved.