|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.rmi.VpnRegistry
public class VpnRegistry
Play around with vpn-registries.
The solution is to set the java.rmi.server.hostname to the IP address of vpn-archive, no custom factory needed. You can unset the server hostname after creation of registry.
| Nested Class Summary | |
|---|---|
private static class |
VpnRegistry.RCSF
|
private static class |
VpnRegistry.RSSF
|
static class |
VpnRegistry.Server
|
static class |
VpnRegistry.Simple
Class to test callback without special registries. |
static class |
VpnRegistry.VpnC
Class to test callback without special registries. |
private static class |
VpnRegistry.VpnClient
|
static class |
VpnRegistry.VpnS
Class to test callback without special registries. |
private static class |
VpnRegistry.VpnServer
|
| Field Summary | |
|---|---|
static VpnRegistry.RCSF |
rcsf
A global reference to the remote client socket factory. |
static VpnRegistry.RSSF |
rssf
A global reference to the remote server socket factory. |
| Constructor Summary | |
|---|---|
VpnRegistry()
|
|
| Method Summary | |
|---|---|
static void |
config(String serverHost,
int serverPort,
String clientHost,
int clientPort)
|
static Registry |
createRegistry(int port)
Create a registry on the specified port. |
static Registry |
createVpnRegistry(int port,
String chost,
String shost)
Create a registry on the specified port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final VpnRegistry.RCSF rcsf
public static final VpnRegistry.RSSF rssf
| Constructor Detail |
|---|
public VpnRegistry()
| Method Detail |
|---|
public static Registry createRegistry(int port)
throws RemoteException
RemoteException
public static Registry createVpnRegistry(int port,
String chost,
String shost)
throws Exception
Exception
public static void config(String serverHost,
int serverPort,
String clientHost,
int clientPort)
throws UnknownHostException
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||