|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.manager.RemoteServerManager
public class RemoteServerManager
Class that provides access to a remote server manager. Instances of this class are local (non-remote) objects that encapsulate the communication with a remote server manager object. This encapsulation includes object location, and automatic recovery from communication errors.
The local object represents the "concept" of a remote server manager, not a particular
instance of the remote server object. This allows the local object to manage connecting
to a server object, and reconnecting to new server objects during error recovery.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
Vector |
getAllServers(String service_name)
Get all servers for the requested service_name. |
static RemoteServerManager |
getDefault()
Get default instance of RemoteServerManager. |
static RemoteServerManager |
getInstance(URL server_codebase)
Get instance of RemoteServermanager corresponding to the given
server codebase URL. |
Remote |
getNextServer(String service_name,
Remote server)
Get the next available server for the requested service_name. |
Remote |
getServer(String service_name)
Get reference to a remote server object. |
Remote |
getServer(String service_name,
int start_num)
Get reference to a remote server object. |
static void |
main(String[] args)
Simple tester Displays info from the default server. |
void |
ping()
A no-op method available for testing communication. |
void |
stop()
Stop the remote server manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RemoteServerManager getInstance(URL server_codebase)
RemoteServermanager corresponding to the given
server codebase URL.
server_codebase - the server codebase URLpublic static RemoteServerManager getDefault()
RemoteServerManager.
The default instance is the one corresponding to the server codebase of the
current thread as returned by the WTProperties class.
WTProperties
public Remote getServer(String service_name)
throws RemoteException
service_name - the corresponding service name
RemoteException
public Remote getServer(String service_name,
int start_num)
throws RemoteException
service_name - the corresponding service namestart_num - used in start up of multiple servers for this service
RemoteException
public Remote getNextServer(String service_name,
Remote server)
throws RemoteException
service_name - corresponding service nameserver - previous server
RemoteException
public Vector getAllServers(String service_name)
throws RemoteException
service_name - corresponding service name
RemoteException
public void ping()
throws RemoteException
RemoteException
public void stop()
throws RemoteException
RemoteException
public static void main(String[] args)
throws RemoteException
RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||