org.exolab.jms.server.mipc
Class NameServiceProvider

java.lang.Object
  |
  +--org.exolab.jms.server.mipc.NameServiceProvider
All Implemented Interfaces:
org.exolab.core.ipc.NotifierIfc

public class NameServiceProvider
extends java.lang.Object
implements org.exolab.core.ipc.NotifierIfc

This class is responsible for interpreting JNDI requests and delegating them to the server, and passing back any necessary replies.

Version:
$Revision: 1.3 $ $Date: 2003/08/17 01:32:26 $
Author:
Tim Anderson
See Also:
NameServiceProxy, IpcJndiInitialContextFactory

Constructor Summary
NameServiceProvider(javax.naming.Context context)
          Construct a new NameServiceProvider
 
Method Summary
protected  java.util.Vector bind(javax.naming.Name name, java.lang.String className, java.lang.Object object)
           
protected  java.util.Vector createSubcontext(javax.naming.Name name)
           
protected  java.util.Vector destroySubcontext(javax.naming.Name name)
           
 void disconnection(java.lang.String id)
          The connection has been broken.
protected  java.util.Vector getNameParser()
           
protected  java.util.Vector list(javax.naming.Name name)
           
protected  java.util.Vector listBindings(javax.naming.Name name)
           
protected  java.util.Vector lookup(javax.naming.Name name)
           
 java.io.Serializable notify(java.lang.Object object, java.lang.String id)
          A new request has been received.
protected  java.util.Vector pack(java.lang.Boolean success, java.lang.Object ob)
          Pack all the data that is required by the server in a vector.
protected  java.util.Vector rebind(javax.naming.Name name, java.lang.String className, java.lang.Object object)
           
protected  java.util.Vector unbind(javax.naming.Name name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameServiceProvider

public NameServiceProvider(javax.naming.Context context)
Construct a new NameServiceProvider
Parameters:
context - the root context
Method Detail

notify

public java.io.Serializable notify(java.lang.Object object,
                                   java.lang.String id)
A new request has been received. Carry out the request, and pass back any relevent data.
Specified by:
notify in interface org.exolab.core.ipc.NotifierIfc
Parameters:
object - The data received,
id - The id of the calling connection, not used by the client.
Returns:
Object Return any requested result. This must never be null.

disconnection

public void disconnection(java.lang.String id)
The connection has been broken.
Specified by:
disconnection in interface org.exolab.core.ipc.NotifierIfc
Parameters:
The - unique identifier of this connection.

getNameParser

protected java.util.Vector getNameParser()
                                  throws javax.naming.NamingException,
                                         java.lang.Exception

bind

protected java.util.Vector bind(javax.naming.Name name,
                                java.lang.String className,
                                java.lang.Object object)
                         throws javax.naming.NamingException,
                                java.lang.Exception

rebind

protected java.util.Vector rebind(javax.naming.Name name,
                                  java.lang.String className,
                                  java.lang.Object object)
                           throws javax.naming.NamingException,
                                  java.lang.Exception

createSubcontext

protected java.util.Vector createSubcontext(javax.naming.Name name)
                                     throws javax.naming.NamingException,
                                            java.lang.Exception

destroySubcontext

protected java.util.Vector destroySubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException,
                                             java.lang.Exception

list

protected java.util.Vector list(javax.naming.Name name)
                         throws javax.naming.NamingException,
                                java.lang.Exception

listBindings

protected java.util.Vector listBindings(javax.naming.Name name)
                                 throws javax.naming.NamingException,
                                        java.lang.Exception

lookup

protected java.util.Vector lookup(javax.naming.Name name)
                           throws javax.naming.NamingException,
                                  java.lang.Exception

unbind

protected java.util.Vector unbind(javax.naming.Name name)
                           throws javax.naming.NamingException,
                                  java.lang.Exception

pack

protected java.util.Vector pack(java.lang.Boolean success,
                                java.lang.Object ob)
Pack all the data that is required by the server in a vector. Set the size of the vector to be exactly the right size for efficiency.
Parameters:
success - Boolean indicating success or failure of request.
ob - The Object being returned.
Returns:
Vector The vector containing all the data.


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.