Class JThread.socket.Server
All Packages Class Hierarchy This Package Previous Next Index
Class JThread.socket.Server
Object
|
+----JThread.socket.Server
- public class Server
- extends Object
Server implements a simple server to host thread migration.
It maintains a local registry for threads to reference
local objects.
- Author:
- Wei Tao
-
JThread.socket.Server()
-
-
bind(String, Object)
- Bind an object with a name in local registry.
-
lookup(String)
- Look up a local object with the specified name.
-
main(String[])
- Start a new server at a specified port.
-
start(int)
- Start a new server socket at the specified port.
Server
public Server()
bind
public static void bind(String name,
Object object)
- Bind an object with a name in local registry.
- Parameters:
- name - - the name to bind with.
- object - - the object to register.
lookup
public static java.lang.Object lookup(String name)
- Look up a local object with the specified name.
- Parameters:
- name - - the name to look for.
main
public static void main(String[] args)
- Start a new server at a specified port.
- Parameters:
- args: - the port number
start
public static void start(int port)
- Start a new server socket at the specified port.
- Parameters:
- port: - the port number
All Packages Class Hierarchy This Package Previous Next Index