|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.Exporter<T>
T - the remote interface typepublic class Exporter<T extends Remote>
Provides for making the server available on the network, and removing it from the network during shutdown.
| Constructor Summary | |
|---|---|
Exporter(Class<T> type)
Creates an instance for exporting a remote object of the given type. |
|
| Method Summary | |
|---|---|
int |
export(T server,
int port)
Makes the server available on the network on the specified port. |
int |
export(T server,
String name,
int port)
Makes the server available on the network on the specified port, and binds the server's proxy in a registry on the same port with the specified name. |
T |
getProxy()
Returns the exported server's proxy which is available after export is invoked successfully. |
void |
unexport()
Removes the server from the network. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Exporter(Class<T> type)
type.
type - the remote object type| Method Detail |
|---|
public int export(T server,
String name,
int port)
throws IOException
server - the servername - the name of the server's proxy in the registryport - the network port for the server
IOException - if there is a problem exporting the server
public int export(T server,
int port)
throws IOException
server - the serverport - the network port for the server
IOException - if there is a problem exporting the serverpublic T getProxy()
export is invoked successfully. Before the server is
exported, this method returns null.
nullpublic void unexport()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||