|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JSDT abstract Naming interface.
Method Summary | |
void |
bind(com.sun.media.jsdt.Naming naming,
com.sun.media.jsdt.URLString urlString,
java.lang.String name,
java.lang.Object object)
bind binds the name to the specified JSDT object. |
java.lang.Object |
getProxy()
getProxy get a handle to the proxy for the Registry. |
void |
initProxy(java.util.Hashtable connections,
java.lang.String host,
int port)
initProxy initialise the Registry proxy. |
java.lang.String[] |
list(com.sun.media.jsdt.Naming naming)
list lists all the names of the known bound JSDT objects. |
java.lang.Object |
lookup(com.sun.media.jsdt.Naming naming,
com.sun.media.jsdt.URLString urlString,
java.lang.String name)
lookup returns the JSDT object for the given name. |
void |
rebind(com.sun.media.jsdt.Naming naming,
com.sun.media.jsdt.URLString urlString,
java.lang.String name,
java.lang.Object object)
rebind rebinds the name to a new object, replacing any existing binding. |
void |
unbind(com.sun.media.jsdt.Naming naming,
com.sun.media.jsdt.URLString urlString,
java.lang.String name)
unbind unbinds the object associated with this name. |
Method Detail |
public void initProxy(java.util.Hashtable connections, java.lang.String host, int port) throws com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.NoSuchHostException
connections
- the hash table of connections (keyed by host).host
- the host the Registry is running on.port
- the port number the Registry is running on.public java.lang.Object getProxy()
public void bind(com.sun.media.jsdt.Naming naming, com.sun.media.jsdt.URLString urlString, java.lang.String name, java.lang.Object object) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.InvalidURLException, com.sun.media.jsdt.AlreadyBoundException, com.sun.media.jsdt.PortInUseException, com.sun.media.jsdt.TimedOutException
naming
- handle to the Naming class that called this method.urlString
- the URLString object for the given name.name
- the name associated with this object.object
- the object to bind.public void rebind(com.sun.media.jsdt.Naming naming, com.sun.media.jsdt.URLString urlString, java.lang.String name, java.lang.Object object) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.InvalidURLException, com.sun.media.jsdt.PortInUseException, com.sun.media.jsdt.TimedOutException
naming
- handle to the Naming class that called this method.urlString
- the URLString object for the given name.name
- the name associated with this new object.object
- the object to rebind.public void unbind(com.sun.media.jsdt.Naming naming, com.sun.media.jsdt.URLString urlString, java.lang.String name) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.InvalidURLException, com.sun.media.jsdt.NotBoundException, com.sun.media.jsdt.TimedOutException
naming
- handle to the Naming class that called this method.urlString
- the URLString object for the given name.name
- the name of the object to unbind.public java.lang.Object lookup(com.sun.media.jsdt.Naming naming, com.sun.media.jsdt.URLString urlString, java.lang.String name) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.InvalidURLException, com.sun.media.jsdt.NotBoundException, com.sun.media.jsdt.TimedOutException
naming
- handle to the Naming class that called this method.urlString
- the URLString object for the given name.name
- the name of the object to find.public java.lang.String[] list(com.sun.media.jsdt.Naming naming) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoRegistryException, com.sun.media.jsdt.TimedOutException
naming
- handle to the Naming class that called this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |