|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
org.hebe.mps.NamingServiceImpl
Implementation class for the MPS Server Interface defined in ../namingservice.mps. MPS uses an MPS server to locate its own server names!
Note that this class has a main method - it is its
own application as well: a standalone MPS name server.
| Field Summary | |
private java.util.Hashtable |
names
This class uses a naive hashtable-lookup to map objectNames onto resolvedNames (aka canonical names). |
| Constructor Summary | |
NamingServiceImpl()
|
|
| Method Summary | |
boolean |
bind(java.lang.String name,
java.lang.String cname,
boolean replace)
Implement the naming-service name binding function. |
org.hebe.mps.naming.Binding[] |
enumerate()
Get a list of all the name-value pairs in the current running database. |
static void |
main(java.lang.String[] args)
Main method for the standalone naming server. |
java.lang.String |
resolve(java.lang.String name)
Implement the naming-service resolution function. |
boolean |
unbind(java.lang.String name)
Implement the naming-service name unbinding function. |
static void |
usage()
Display a friendly application-usage message to stdout. |
| Field Detail |
private java.util.Hashtable names
| Constructor Detail |
public NamingServiceImpl()
| Method Detail |
public static void main(java.lang.String[] args)
public static void usage()
public java.lang.String resolve(java.lang.String name)
name - the objectName to look up
public boolean bind(java.lang.String name,
java.lang.String cname,
boolean replace)
name - the object name to usecname - the canonical name to usereplace - whether to replace any potential existing bindings with the same name or notpublic boolean unbind(java.lang.String name)
name - the name to remove from this nameserverpublic org.hebe.mps.naming.Binding[] enumerate()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||