|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.Naming
public class Naming
Naming is used to communicate with the Registry. The main features of the class is to lookup and bind remote object.
Constructor Summary | |
---|---|
Naming()
|
Method Summary | |
---|---|
static RemoteObjectMapping |
createFrontEnd(java.lang.String name,
java.lang.String registryIP,
int registryPort,
int portToBind)
Create an entry in the registry for the active replication front end server. |
static java.lang.Object |
lookup(java.lang.String name,
java.lang.String ip,
int port)
Lookup looks an object up in the registry and the creates a new stub. |
static java.lang.Object |
rebind(java.lang.String objectName,
java.lang.Object objectToBind,
java.lang.String registryIP,
int registryPort,
int portToBind)
Binds an object to the registry then creates a skeleton object. |
static void |
remove(java.lang.String registryIP,
int registryPort,
RemoteObjectReference ror)
Remove an entry from the registry when no longer needed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Naming()
Method Detail |
---|
public static java.lang.Object lookup(java.lang.String name, java.lang.String ip, int port)
name
- The name of the object to lookup.ip
- The ip address of the registryport
- The port number of the registry
public static java.lang.Object rebind(java.lang.String objectName, java.lang.Object objectToBind, java.lang.String registryIP, int registryPort, int portToBind)
objectName
- The name to be used to lookup the object.registryIP
- The IP address of the registry used to bind the object.registryPort
- The port number of the registry.portToBind
- The port number of the server that the object will be bound to.
public static void remove(java.lang.String registryIP, int registryPort, RemoteObjectReference ror)
registryIP
- The IP address of the registry.registryPort
- The port number of the registry.ror
- The RemoteObjectReference to be removed from the registry.public static RemoteObjectMapping createFrontEnd(java.lang.String name, java.lang.String registryIP, int registryPort, int portToBind)
name
- The name to be used to look up the servieregistryIP
- The IP address of the registry.registryPort
- The port number of the registry.portToBind
- The port to bind the Front End to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |