Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.naming
Interface DataStore


public interface DataStore

The Datastore represents the store where the NameService state is stored. JBroker provides an implementation of a transient and a persistent Datastore. You can also provide your own Datastore when creating a NameService instance. For example, you could use an LDAP server or a Database to store shared state and have multiple instances of NameServices accessing that state.


Method Summary
 void createContext(byte[] objectId, NamingContext context)
          A new NamingContext with the given id has been created.
 void destroyContext(byte[] objectId)
          The NamingContext with the given id has been destroyed.
 NamingContextData getContext(byte[] objectId)
          Get the Context with the given Object Id.
 NamingContext getRootContext()
          Get the Root Naming Context for this NameService.
 void setRootContext(NamingContext root)
          Set the Root Naming Context for this NameService.
 

Method Detail

getContext

public NamingContextData getContext(byte[] objectId)
Get the Context with the given Object Id. This is invoked every time an invocation comes in for the NamingContext with the given Object Id.


createContext

public void createContext(byte[] objectId,
                          NamingContext context)
A new NamingContext with the given id has been created.


destroyContext

public void destroyContext(byte[] objectId)
                    throws NotEmpty
The NamingContext with the given id has been destroyed.

Throws:
NotEmpty

setRootContext

public void setRootContext(NamingContext root)
Set the Root Naming Context for this NameService.


getRootContext

public NamingContext getRootContext()
Get the Root Naming Context for this NameService.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.