|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.standalone.StandaloneMainUtil
com.sun.grizzly.standalone.servlet.ServletLauncher
com.sun.grizzly.standalone.Comet
com.sun.grizzly.standalone.messagesbus.Main
public class Main
Basic startup class used when Grizzly MessagesBus is used as a standalone Servlet.
| Field Summary |
|---|
| Fields inherited from class com.sun.grizzly.standalone.servlet.ServletLauncher |
|---|
applicationLoc |
| Fields inherited from class com.sun.grizzly.standalone.StandaloneMainUtil |
|---|
ADAPTER, SELECTOR_THREAD |
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
Adapter |
configureAdapter(SelectorThread st)
Configure the SelectorThread.setAdapter(com.sun.grizzly.tcp.Adapter) |
SelectorThread |
createSelectorThread(String[] args)
Create a single SelectorThread. |
static void |
main(String[] args)
|
String |
parseApplicationLocation(String[] args)
Parse the current command line, and return the location of the war/jar/static resource location file passed as argument. |
boolean |
parseOptions(String[] args)
Validate the command line options. |
void |
printHelpAndExit()
This method will be invoked when unexpected arguments are passed to the {@link #createSelectorThread. |
| Methods inherited from class com.sun.grizzly.standalone.StandaloneMainUtil |
|---|
appendWarContentToClassPath, loadClass, setPort, start, startSelectorThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exceptionpublic Adapter configureAdapter(SelectorThread st)
StandaloneMainUtilSelectorThread.setAdapter(com.sun.grizzly.tcp.Adapter)
configureAdapter in class ServletLauncherst - #return an instance of an Adapter.public boolean parseOptions(String[] args)
StandaloneMainUtil
parseOptions in class ServletLauncherargs - the command line arguments.
public SelectorThread createSelectorThread(String[] args)
throws Exception
createSelectorThread in class Cometargs - The command line arguments.
Exceptionpublic String parseApplicationLocation(String[] args)
StandaloneMainUtil
parseApplicationLocation in class ServletLauncherargs - the command line arguments.
public void printHelpAndExit()
StandaloneMainUtil
printHelpAndExit in class ServletLauncher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||