|
||||||||||
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.Cometd
public class Cometd
Basic startup class used when Grizzly standalone is used
Field Summary |
---|
Fields inherited from class com.sun.grizzly.standalone.StandaloneMainUtil |
---|
ADAPTER, SELECTOR_THREAD |
Constructor Summary | |
---|---|
Cometd()
|
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 Cometd()
Method Detail |
---|
public static void main(String[] args) throws Exception
Exception
public SelectorThread createSelectorThread(String[] args) throws Exception
StandaloneMainUtil
createSelectorThread
in class StandaloneMainUtil
args
- The command line arguments.
Exception
public void printHelpAndExit()
StandaloneMainUtil
printHelpAndExit
in class StandaloneMainUtil
public boolean parseOptions(String[] args)
StandaloneMainUtil
parseOptions
in class StandaloneMainUtil
args
- the command line arguments.
public Adapter configureAdapter(SelectorThread st)
StandaloneMainUtil
SelectorThread.setAdapter(com.sun.grizzly.tcp.Adapter)
configureAdapter
in class StandaloneMainUtil
st
- #return an instance of an Adapter.public String parseApplicationLocation(String[] args)
StandaloneMainUtil
parseApplicationLocation
in class StandaloneMainUtil
args
- the command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |