|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteStub
nl.tudelft.simulation.naming.RemoteContext_Stub
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface nl.tudelft.simulation.naming.RemoteContextInterface |
WRAPPED_PREFIX |
| Constructor Summary | |
RemoteContext_Stub()
|
|
RemoteContext_Stub(java.rmi.server.RemoteRef ref)
|
|
| Method Summary | |
void |
addNamingListener(javax.naming.Name $param_Name_1,
int $param_int_2,
RemoteContextListenerInterface $param_RemoteContextListenerInterface_3)
Adds a listener for receiving naming events fired when the object(s) identified by a target and scope changes. |
void |
addNamingListener(java.lang.String $param_String_1,
int $param_int_2,
RemoteContextListenerInterface $param_RemoteContextListenerInterface_3)
Adds a listener for receiving naming events fired when the object named by the string target name and scope changes. |
java.lang.Object |
addToEnvironment(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
Adds a new environment property to the environment of this context. |
void |
bind(javax.naming.Name $param_Name_1,
java.lang.Object $param_Object_2)
Binds a name to an object. |
void |
bind(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
Binds a name to an object. |
void |
close()
Closes this context. |
javax.naming.Name |
composeName(javax.naming.Name $param_Name_1,
javax.naming.Name $param_Name_2)
Composes the name of this context with a name relative to this context. |
java.lang.String |
composeName(java.lang.String $param_String_1,
java.lang.String $param_String_2)
Composes the name of this context with a name relative to this context. |
RemoteContextInterface |
createSubcontext(javax.naming.Name $param_Name_1)
Creates and binds a new context. |
RemoteContextInterface |
createSubcontext(java.lang.String $param_String_1)
Creates and binds a new context. |
void |
destroySubcontext(javax.naming.Name $param_Name_1)
Destroys the named context and removes it from the namespace. |
void |
destroySubcontext(java.lang.String $param_String_1)
Destroys the named context and removes it from the namespace. |
java.util.Hashtable |
getEnvironment()
Retrieves the environment in effect for this context. |
java.lang.String |
getNameInNamespace()
Retrieves the full name of this context within its own namespace. |
javax.naming.NameParser |
getNameParser(javax.naming.Name $param_Name_1)
Retrieves the parser associated with the named context. |
javax.naming.NameParser |
getNameParser(java.lang.String $param_String_1)
Retrieves the parser associated with the named context. |
javax.naming.NamingEnumeration |
list(javax.naming.Name $param_Name_1)
Enumerates the names bound in the named context, along with the class names of objects bound to them. |
javax.naming.NamingEnumeration |
list(java.lang.String $param_String_1)
Enumerates the names bound in the named context, along with the class names of objects bound to them. |
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name $param_Name_1)
Enumerates the names bound in the named context, along with the objects bound to them. |
javax.naming.NamingEnumeration |
listBindings(java.lang.String $param_String_1)
Enumerates the names bound in the named context, along with the objects bound to them. |
java.lang.Object |
lookup(javax.naming.Name $param_Name_1)
Retrieves the named object. |
java.lang.Object |
lookup(java.lang.String $param_String_1)
Retrieves the named object. |
java.lang.Object |
lookupLink(javax.naming.Name $param_Name_1)
Retrieves the named object, following links except for the terminal atomic component of the name. |
java.lang.Object |
lookupLink(java.lang.String $param_String_1)
Retrieves the named object, following links except for the terminal atomic component of the name. |
void |
rebind(javax.naming.Name $param_Name_1,
java.lang.Object $param_Object_2)
Binds a name to an object, overwriting any existing binding. |
void |
rebind(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
Binds a name to an object, overwriting any existing binding. |
java.lang.Object |
removeFromEnvironment(java.lang.String $param_String_1)
Removes an environment property from the environment of this context. |
void |
removeNamingListener(RemoteContextListenerInterface $param_RemoteContextListenerInterface_1)
Removes a listener from receiving naming events fired by this EventContext. |
void |
rename(javax.naming.Name $param_Name_1,
javax.naming.Name $param_Name_2)
Binds a new name to the object bound to an old name, and unbinds the old name. |
void |
rename(java.lang.String $param_String_1,
java.lang.String $param_String_2)
Binds a new name to the object bound to an old name, and unbinds the old name. |
boolean |
targetMustExist()
Determines whether a listener can register interest in a target that does not exist. |
void |
unbind(javax.naming.Name $param_Name_1)
Unbinds the named object. |
void |
unbind(java.lang.String $param_String_1)
Unbinds the named object. |
| Methods inherited from class java.rmi.server.RemoteStub |
setRef |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RemoteContext_Stub()
public RemoteContext_Stub(java.rmi.server.RemoteRef ref)
| Method Detail |
public void addNamingListener(java.lang.String $param_String_1,
int $param_int_2,
RemoteContextListenerInterface $param_RemoteContextListenerInterface_3)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
addNamingListener in interface RemoteContextInterface$param_String_1 - The nonnull string name of the object resolved relative to
this context.$param_int_2 - One of OBJECT_SCOPE,ONELEVEL_SCOPE,
or SUBTREE_SCOPE.$param_RemoteContextListenerInterface_3 - The nonnull listener.
javax.naming.NamingException - If a problem was encountered while adding the
listener.
java.rmi.RemoteException - on network exception
public void addNamingListener(javax.naming.Name $param_Name_1,
int $param_int_2,
RemoteContextListenerInterface $param_RemoteContextListenerInterface_3)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfacetarget needs to name a context only when scope is ONELEVEL_SCOPE.target may name a non-context if scope is either OBJECT_SCOPE or SUBTREE_SCOPE. Using SUBTREE_SCOPE for a non-context might be useful, for example, if the caller does not know in advance whether target is a context and just wants to register interest in the (possibly degenerate subtree) rooted at target.
When the listener is notified of an event, the listener may in invoked in a thread other than the one in which addNamingListener() is executed. Care must be taken when multiple threads are accessing the same EventContext concurrently. See the package description for more information on threading issues.
addNamingListener in interface RemoteContextInterface$param_Name_1 - A nonnull name to be resolved relative to this context.$param_int_2 - One of OBJECT_SCOPE,ONELEVEL_SCOPE,
or SUBTREE_SCOPE.$param_RemoteContextListenerInterface_3 - The nonnull listener.
java.rmi.RemoteException - on network exception
javax.naming.NamingException - If a problem was encountered while adding the
listener.
public java.lang.Object addToEnvironment(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
addToEnvironment in interface RemoteContextInterface$param_String_1 - the name of the environment property to add; may not be
null$param_Object_2 - the value of the property to add; may not be null
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exceptionRemoteContextInterface.getEnvironment(),
RemoteContextInterface.removeFromEnvironment(String)
public void bind(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.bind(Name, Object)for details.
bind in interface RemoteContextInterface$param_String_1 - the name to bind; may not be empty$param_Object_2 - the object to bind; possibly null
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exception
public void bind(javax.naming.Name $param_Name_1,
java.lang.Object $param_Object_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
bind in interface RemoteContextInterface$param_Name_1 - the name to bind; may not be empty$param_Object_2 - the object to bind; possibly null
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exceptionRemoteContextInterface.bind(String, Object),
RemoteContextInterface.rebind(Name, Object),
javax.naming.directory.DirContext#bind(Name, Object,
javax.naming.directory.Attributes)
public void close()
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceThis method is idempotent: invoking it on a context that has already been closed has no effect. Invoking any other method on a closed context is not allowed, and results in undefined behaviour.
close in interface RemoteContextInterfacejava.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public java.lang.String composeName(java.lang.String $param_String_1,
java.lang.String $param_String_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.composeName(Name, Name)for details.
composeName in interface RemoteContextInterface$param_String_1 - a name relative to this context$param_String_2 - the name of this context relative to one of its ancestors
prefix and name
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exception
public javax.naming.Name composeName(javax.naming.Name $param_Name_1,
javax.naming.Name $param_Name_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfacename) relative to this context, and the
name (prefix) of this context relative to one of its
ancestors, this method returns the composition of the two names using the
syntax appropriate for the naming system(s) involved. That is, if
name names an object relative to this context, the result
is the name of the same object, but relative to the ancestor context.
None of the names may be null.
For example, if this context is named "wiz.com" relative to the initial context, then
composeName("east", "wiz.com")
might return "east.wiz.com". If instead this context is
named "org/research", then
composeName("user/jane", "org/research")
might return "org/research/user/jane" while
composeName("user/jane", "research")
returns "research/user/jane".
composeName in interface RemoteContextInterface$param_Name_1 - a name relative to this context$param_Name_2 - the name of this context relative to one of its ancestors
prefix and name
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.composeName(String, String)
public RemoteContextInterface createSubcontext(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.createSubcontext(Name)for
details.
createSubcontext in interface RemoteContextInterface$param_String_1 - the name of the context to create; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public RemoteContextInterface createSubcontext(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
createSubcontext in interface RemoteContextInterface$param_Name_1 - the name of the context to create; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.createSubcontext(String)
public void destroySubcontext(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.destroySubcontext(Name)for details.
destroySubcontext in interface RemoteContextInterface$param_String_1 - the name of the context to be destroyed; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public void destroySubcontext(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceThis method is idempotent. It succeeds even if the terminal atomic name is not bound in the target context, but throws NameNotFoundException if any of the intermediate contexts do not exist.
In a federated naming system, a context from one naming system may be bound to a name in another. One can subsequently look up and perform operations on the foreign context using a composite name. However, an attempt destroy the context using this composite name will fail with NotContextException, because the foreign context is not a "subcontext" of the context in which it is bound. Instead, use unbind() to remove the binding of the foreign context. Destroying the foreign context requires that the destroySubcontext() be performed on a context from the foreign context's "native" naming system.
destroySubcontext in interface RemoteContextInterface$param_Name_1 - the name of the context to be destroyed; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.destroySubcontext(String)
public java.util.Hashtable getEnvironment()
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceThe caller should not make any changes to the object returned: their effect on the context is undefined. The environment of this context may be changed using addToEnvironment() and removeFromEnvironment().
getEnvironment in interface RemoteContextInterfacejava.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.addToEnvironment(String, Object),
RemoteContextInterface.removeFromEnvironment(String)
public java.lang.String getNameInNamespace()
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceMany naming services have a notion of a "full name" for objects in their respective namespaces. For example, an LDAP entry has a distinguished name, and a DNS record has a fully qualified name. This method allows the client application to retrieve this name. The string returned by this method is not a JNDI composite name and should not be passed directly to context methods. In naming systems for which the notion of full name does not make sense, OperationNotSupportedException is thrown.
getNameInNamespace in interface RemoteContextInterfacejava.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public javax.naming.NameParser getNameParser(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.getNameParser(Name)for details.
getNameParser in interface RemoteContextInterface$param_String_1 - the name of the context from which to get the parser
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public javax.naming.NameParser getNameParser(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
getNameParser in interface RemoteContextInterface$param_Name_1 - the name of the context from which to get the parser
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.getNameParser(String),
CompoundName
public javax.naming.NamingEnumeration list(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.list(Name)for details.
list in interface RemoteContextInterface$param_String_1 - the name of the context to list
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exception
public javax.naming.NamingEnumeration list(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceIf a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
list in interface RemoteContextInterface$param_Name_1 - the name of the context to list
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.list(String),
RemoteContextInterface.listBindings(Name),
NameClassPair
public javax.naming.NamingEnumeration listBindings(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.listBindings(Name)for details.
listBindings in interface RemoteContextInterface$param_String_1 - the name of the context to list
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public javax.naming.NamingEnumeration listBindings(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceIf a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
listBindings in interface RemoteContextInterface$param_Name_1 - the name of the context to list
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exceptionRemoteContextInterface.listBindings(String),
RemoteContextInterface.list(Name),
Binding
public java.lang.Object lookup(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.lookup(Name)for details.
lookup in interface RemoteContextInterface$param_String_1 - the name of the object to look up
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public java.lang.Object lookup(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
lookup in interface RemoteContextInterface$param_Name_1 - the name of the object to look up
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.lookup(String),
RemoteContextInterface.lookupLink(Name)
public java.lang.Object lookupLink(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.lookupLink(Name)for details.
lookupLink in interface RemoteContextInterface$param_String_1 - the name of the object to look up
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exception
public java.lang.Object lookupLink(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
lookupLink in interface RemoteContextInterface$param_Name_1 - the name of the object to look up
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.lookupLink(String)
public void rebind(java.lang.String $param_String_1,
java.lang.Object $param_Object_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.rebind(Name, Object)for details.
rebind in interface RemoteContextInterface$param_String_1 - the name to bind; may not be empty$param_Object_2 - the object to bind; possibly null
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public void rebind(javax.naming.Name $param_Name_1,
java.lang.Object $param_Object_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceIf the object is a DirContext, any existing attributes associated with the name are replaced with those of the object. Otherwise, any existing attributes associated with the name remain unchanged.
rebind in interface RemoteContextInterface$param_Name_1 - the name to bind; may not be empty$param_Object_2 - the object to bind; possibly null
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.rebind(String, Object),
RemoteContextInterface.bind(Name, Object),
javax.naming.directory.DirContext#rebind(Name, Object,
javax.naming.directory.Attributes),
javax.naming.directory.DirContext
public java.lang.Object removeFromEnvironment(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
removeFromEnvironment in interface RemoteContextInterface$param_String_1 - the name of the environment property to remove; may not
be null
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exceptionRemoteContextInterface.getEnvironment(),
RemoteContextInterface.addToEnvironment(String, Object)
public void removeNamingListener(RemoteContextListenerInterface $param_RemoteContextListenerInterface_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
removeNamingListener in interface RemoteContextInterface$param_RemoteContextListenerInterface_1 - The nonnull listener.
java.rmi.RemoteException - on network exception
javax.naming.NamingException - If a problem was encountered while removing
the listener.
public void rename(java.lang.String $param_String_1,
java.lang.String $param_String_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.rename(Name, Name)for details.
rename in interface RemoteContextInterface$param_String_1 - the name of the existing binding; may not be empty$param_String_2 - the name of the new binding; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encountered
public void rename(javax.naming.Name $param_Name_1,
javax.naming.Name $param_Name_2)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
rename in interface RemoteContextInterface$param_Name_1 - the name of the existing binding; may not be empty$param_Name_2 - the name of the new binding; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.rename(String, String),
RemoteContextInterface.bind(Name, Object),
RemoteContextInterface.rebind(Name, Object)
public boolean targetMustExist()
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterface
targetMustExist in interface RemoteContextInterfacejava.rmi.RemoteException - on network exception
javax.naming.NamingException - If the context's behavior in this regard
cannot be determined.
public void unbind(java.lang.String $param_String_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfaceRemoteContextInterface.unbind(Name)for details.
unbind in interface RemoteContextInterface$param_String_1 - the name to unbind; may not be empty
javax.naming.NamingException - if a naming exception is encountered
java.rmi.RemoteException - on network exception
public void unbind(javax.naming.Name $param_Name_1)
throws java.rmi.RemoteException,
javax.naming.NamingException
RemoteContextInterfacename from the target context--that named by all but the
terminal atomic part of name.
This method is idempotent. It succeeds even if the terminal atomic name is not bound in the target context, but throws NameNotFoundException if any of the intermediate contexts do not exist.
Any attributes associated with the name are removed. Intermediate contexts are not changed.
unbind in interface RemoteContextInterface$param_Name_1 - the name to unbind; may not be empty
java.rmi.RemoteException - on network exception
javax.naming.NamingException - if a naming exception is encounteredRemoteContextInterface.unbind(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||