Uses of Interface
nl.tudelft.simulation.naming.context.ContextInterface
Package
Description
A Context is a JNDI-like implementation to provide tree storage for objects based on keys.
The naming.context.event package contains specific classes for contexts that can notify listeners about changes in the
context tree or in its objects, based on a provided scope.
Utilities for JNDI-like contexts.
-
Uses of ContextInterface in nl.tudelft.simulation.naming.context
Modifier and TypeInterfaceDescriptioninterface
RemoteContextInterface is a tagging interface that extends both ContectInterface and Remote, but that does not force any new methods to be implemented.Modifier and TypeClassDescriptionclass
The FileContext as a file-based implementation of the ContextInterface.class
The JvmContext is an in-memory, thread-safe context implementation of the ContextInterface.class
Context that exists on another computer.Modifier and TypeFieldDescriptionprotected ContextInterface
RemoteContext.embeddedContext
The underlying event context.protected ContextInterface
JvmContext.parent
the parent context.Modifier and TypeMethodDescriptionContextInterface.createSubcontext
(String name) Creates and binds a new context into the current Context using the name.FileContext.createSubcontext
(String name) Creates and binds a new context into the current Context using the name.JvmContext.createSubcontext
(String name) Creates and binds a new context into the current Context using the name.RemoteContext.createSubcontext
(String name) Creates and binds a new context into the current Context using the name.Contextualized.getContext()
Return the context.JvmContext.ContextName.getContext()
ContextFactory.getInitialContext
(Hashtable<?, ?> environment, String atomicName) Creates an Initial Context for beginning name resolution.FileContextFactory.getInitialContext
(Hashtable<?, ?> environment, String atomicName) Creates an Initial Context for beginning name resolution.JvmContextFactory.getInitialContext
(Hashtable<?, ?> environment, String atomicName) Creates an Initial Context for beginning name resolution.RemoteContextFactory.getInitialContext
(Hashtable<?, ?> environment, String atomicName) Creates an Initial Context for beginning name resolution.ContextInterface.getParent()
Retrieves the parent context for this context, or null when this is the root context.JvmContext.getParent()
Retrieves the parent context for this context, or null when this is the root context.RemoteContext.getParent()
Retrieves the parent context for this context, or null when this is the root context.ContextInterface.getRootContext()
Retrieves the root context for this context, or the current context when this is the root context.JvmContext.getRootContext()
Retrieves the root context for this context, or the current context when this is the root context.RemoteContext.getRootContext()
Retrieves the root context for this context, or the current context when this is the root context.protected ContextInterface
JvmContext.lookupAndBuild
(String name) Take a (compound) name such as "sub1/sub2/key" or "key" or "/sub/key" and lookup and/or create all intermediate contexts as well as the final sub-context of the path.Modifier and TypeMethodDescriptionprotected void
JvmContext.destroy
(ContextInterface context) Recursively unbind and destroy all keys and subcontexts from the given context, leaving it empty.ModifierConstructorDescriptionContextName
(ContextInterface context, String name) Instantiate a Context and Name combination.FileContext
(File file, ContextInterface parent, String atomicName) constructs a new FileContext.JvmContext
(ContextInterface parent, String atomicName) Constructs a new JvmContext.RemoteContext
(String host, int port, String bindingKey, ContextInterface embeddedContext, String eventProducerBindingKey) Constructs a new RemoteContext.RemoteContext
(URL registryURL, ContextInterface embeddedContext, String eventProducerBindingKey) Constructs a new RemoteContext. -
Uses of ContextInterface in nl.tudelft.simulation.naming.context.event
Modifier and TypeInterfaceDescriptioninterface
EventContext is the tagging interface combining the ContextInterface, EventContextInterface, and EventProducer.interface
RemoteEventContextInterface.java.Modifier and TypeClassDescriptionfinal class
InitialEventContext class.class
RemoteEventContext.java.Modifier and TypeFieldDescriptionprotected ContextInterface
InitialEventContext.defaultInitCtx
The initial context, usually built by a factory.Modifier and TypeMethodDescriptionInitialEventContext.createSubcontext
(String name) Creates and binds a new context into the current Context using the name.protected ContextInterface
InitialEventContext.getDefaultInitCtx
(String atomicName) Retrieves the initial context by calling NamingManager.getInitialContext() and cache it in defaultInitCtx.InitialEventContext.getParent()
Retrieves the parent context for this context, or null when this is the root context.InitialEventContext.getRootContext()
Retrieves the root context for this context, or the current context when this is the root context.ModifierConstructorDescriptionRemoteEventContext
(String host, int port, String bindingKey, ContextInterface embeddedContext, String eventProducerBindingKey) Constructs a new RemoteContext.RemoteEventContext
(URL registryURL, ContextInterface embeddedContext, String eventProducerBindingKey) Constructs a new RemoteContext. -
Uses of ContextInterface in nl.tudelft.simulation.naming.context.util
Modifier and TypeMethodDescriptionstatic ContextInterface
ContextUtil.lookupOrCreateSubContext
(ContextInterface parentContext, String name) Lookup or create a sub-context in the parentContext with the name as its path.static ContextInterface
ContextUtil.lookupSubContext
(ContextInterface parentContext, String name) Lookup a sub-context in the parentContext with the name as its path.Modifier and TypeMethodDescriptionstatic void
ContextUtil.destroySubContext
(ContextInterface parentContext, String name) Destroy a sub-context in the parentContext with the name as its path.static ContextInterface
ContextUtil.lookupOrCreateSubContext
(ContextInterface parentContext, String name) Lookup or create a sub-context in the parentContext with the name as its path.static ContextInterface
ContextUtil.lookupSubContext
(ContextInterface parentContext, String name) Lookup a sub-context in the parentContext with the name as its path.ContextUtil.resolveKeys
(ContextInterface startContext, Object object) Resolve the key(s) for an object for a given context.static String
ContextUtil.toText
(ContextInterface ctx) recursively print the context in human-readable format to a String.