Class prominence.msgx.GenericRegistryServer
All Packages Class Hierarchy This Package Previous Next Index
Class prominence.msgx.GenericRegistryServer
java.lang.Object
|
+----java.lang.Thread
|
+----prominence.msg.GenericServer
|
+----prominence.msgx.GenericRegistryServer
- public class GenericRegistryServer
- extends GenericServer
A variant of the GenericServer class that makes
use of the GenericRegistryHandler client handler.
- See Also:
- GenericRegistryHandler
-
GenericRegistryServer(int)
- Creates a new GenericRegistryServer that listens on
the specified port.
-
main(String[])
- Starts a new GenericRegistryServer listening on the specified port.
-
run()
- Accepts new client connections and passes them on to
new GenericRegistryHandlers for processing.
GenericRegistryServer
public GenericRegistryServer(int port) throws IOException
- Creates a new GenericRegistryServer that listens on
the specified port.
- Parameters:
- port - The port to listen on
- Throws: IOException
- Occurs if the ServerSocket could
not be opened.
run
public void run()
- Accepts new client connections and passes them on to
new GenericRegistryHandlers for processing.
This method is called by a new thread when the superclass
start() method is called.
- Overrides:
- run in class GenericServer
- See Also:
- start
main
public static void main(String args[]) throws IOException
- Starts a new GenericRegistryServer listening on the specified port.
Syntax:
java prominence.msg.GenericRegistryServer <port>
- Throws: IOException
- Occurs when the ServerSocket cannot
be opened.
All Packages Class Hierarchy This Package Previous Next Index