|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.cmd.CmdServer
A non-blocking command line server for the Urd framework server.
| Constructor Summary | |
CmdServer()
|
|
| Method Summary | |
void |
addCmdListener(CmdEventListener list)
Add a command line event listener. |
void |
attachServer(UrdServer server)
Attach server to controller. |
void |
fireEvent(CmdEvent event)
|
java.lang.String |
getBindAddress()
|
Connections |
getConnectionQueue()
|
int |
getRandom()
|
UserHandle |
getUserService()
|
boolean |
isOpen()
|
void |
receiveRegistryEvent(RegistryEvent e)
Receive registry event. |
void |
removeCmdListener(CmdEventListener list)
Remove a command line event listener. |
void |
reportException(java.lang.Throwable th)
|
void |
serverStarted()
Urd server has started |
void |
serverStopped()
Urd server has stopped |
void |
setBindAddress(java.lang.String bindAddress)
|
void |
setBindPort(java.lang.String bindPort)
|
void |
setContext(javax.naming.Context con)
Set the server context. |
void |
start()
Start command line server |
void |
stop()
Stop command line server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmdServer()
throws java.io.IOException
| Method Detail |
public void attachServer(UrdServer server)
Controller
attachServer in interface Controllerpublic void setContext(javax.naming.Context con)
Controller
setContext in interface Controllerpublic void serverStarted()
UrdServerListener
serverStarted in interface UrdServerListenerpublic void serverStopped()
UrdServerListener
serverStopped in interface UrdServerListenerpublic void start()
public void stop()
public void addCmdListener(CmdEventListener list)
list - Listener to add, must not be nullpublic void removeCmdListener(CmdEventListener list)
list - Listener to removepublic void setBindAddress(java.lang.String bindAddress)
public void setBindPort(java.lang.String bindPort)
public void receiveRegistryEvent(RegistryEvent e)
RegistryListener
receiveRegistryEvent in interface RegistryListenerpublic boolean isOpen()
isOpen in interface ServerContextpublic void fireEvent(CmdEvent event)
fireEvent in interface ServerContextpublic void reportException(java.lang.Throwable th)
reportException in interface ServerContextpublic Connections getConnectionQueue()
getConnectionQueue in interface ServerContextpublic UserHandle getUserService()
getUserService in interface ServerContextpublic int getRandom()
getRandom in interface ServerContextpublic java.lang.String getBindAddress()
getBindAddress in interface ServerContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||