|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.Shell
public class Shell
The shell is responsible for all the interactions with an interactive user. The shell parses commands, converts them into XML structures and sends them to managed objects to be executed.
Method Summary | |
---|---|
static int |
initialise(P2Object root,
int port,
boolean multipleSMCs)
instantiates and sets the shell up to receive connections on the given port. |
void |
run()
|
static java.net.ServerSocket |
setup(int port)
opens and binds the server-socket channel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int initialise(P2Object root, int port, boolean multipleSMCs)
root
- the root domain for this SMCport
- the preferred IP port number to listen on for connections
public void run()
run
in interface java.lang.Runnable
public static java.net.ServerSocket setup(int port) throws java.io.IOException
port
- the IP port number to be opened
java.io.IOException
- if the port is not available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |