|
|||||||
| 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 int
public void handleServiceControlEvent(StartServiceControlEvent e)
throws ServiceControlException
e - is the event as an instance of StartServiceControlEvent
public void handleServiceControlEvent(StopServiceControlEvent e)
throws ServiceControlException
e - is the event as an instance of StopServiceControlEvent
public void handleServiceControlEvent(PauseServiceControlEvent e)
throws ServiceControlException
e - is the event as an instance of PauseServiceControlEvent
public void handleServiceControlEvent(ContinueServiceControlEvent e)
throws ServiceControlException
e - is the event as an instance of ContinueServiceControlEvent
public void handleServiceControlEvent(TerminateServiceControlEvent e)
throws ServiceControlException
e - is the event as an instance of TerminateServiceControlEvent
public 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 | ||||||