|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jsrvany.test.ChatServer
This class implements an SimpleServer
Copyright (c) 1999 Damian Fauth
Constructor Summary | |
ChatServer()
default constructor |
Method Summary | |
void |
handleServiceControlEvent(ContinueServiceControlEvent e)
handle a ContinueServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
handleServiceControlEvent(InterrogateServiceControlEvent e)
handle a InterrogateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
handleServiceControlEvent(PauseServiceControlEvent e)
handle a PauseServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
handleServiceControlEvent(StartServiceControlEvent e)
handle a StartServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
handleServiceControlEvent(StopServiceControlEvent e)
handle a StopServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
handleServiceControlEvent(TerminateServiceControlEvent e)
handle a TerminateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs |
void |
listen(int port)
listen on a port |
static void |
main(java.lang.String[] args)
main entry point |
void |
setSoTimeout(int msecs)
set the readtimeout on the socket |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ChatServer()
Method Detail |
public static void main(java.lang.String[] args)
public void listen(int port) throws java.io.IOException
port
- is the number of the port to listen on as an intpublic void setSoTimeout(int msecs)
msecs
- is the timeout value in milliseconds as an intpublic void handleServiceControlEvent(StartServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of StartServiceControlEventpublic void handleServiceControlEvent(StopServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of StopServiceControlEventpublic void handleServiceControlEvent(PauseServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of PauseServiceControlEventpublic void handleServiceControlEvent(ContinueServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of ContinueServiceControlEventpublic void handleServiceControlEvent(TerminateServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of TerminateServiceControlEventpublic void handleServiceControlEvent(InterrogateServiceControlEvent e) throws ServiceControlException
e
- is the event as an instance of InterrogateServiceControlEvent
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |