com.infoengine.jndi
Class JNDIAdapterImpl

java.lang.Object
  extended bycom.infoengine.jndi.JNDIAdapterImpl
All Implemented Interfaces:
IeMultithreadedProcessor, IeProcessor

public class JNDIAdapterImpl
extends Object
implements IeMultithreadedProcessor


Field Summary
private static Hashtable busyContexts
           
private  Properties envProps
           
private static Hashtable freeContexts
           
private static Hashtable freeContextsLastUse
           
private  com.infoengine.log.LogWriter logWriter
           
private  int maxContextAge
           
private  int maxContextCacheSize
           
private  String serviceName
           
 
Constructor Summary
JNDIAdapterImpl()
           
 
Method Summary
private  void closeContext(DirContext context, boolean force)
           
private  DirContext getDirContext(Webject webject, Properties env)
           
private  DirContext getFreeContext(Properties env)
           
 void initialize(String serviceName, com.infoengine.log.LogWriter log)
          Initialize the adapter implementation class.
 IeRequest processRequest(Request request)
          Process a request received from the Info*Engine server.
private  String toClassName(String oldstring)
          Converts the request to the classname syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envProps

private Properties envProps

maxContextAge

private int maxContextAge

maxContextCacheSize

private int maxContextCacheSize

logWriter

private com.infoengine.log.LogWriter logWriter

serviceName

private String serviceName

busyContexts

private static Hashtable busyContexts

freeContexts

private static Hashtable freeContexts

freeContextsLastUse

private static Hashtable freeContextsLastUse
Constructor Detail

JNDIAdapterImpl

public JNDIAdapterImpl()
Method Detail

initialize

public void initialize(String serviceName,
                       com.infoengine.log.LogWriter log)
Description copied from interface: IeProcessor
Initialize the adapter implementation class.

Specified by:
initialize in interface IeProcessor
Parameters:
serviceName - Logical name defined for this implementation
log - file to write informational and debug messages.

processRequest

public IeRequest processRequest(Request request)
                         throws IEException
Description copied from interface: IeProcessor
Process a request received from the Info*Engine server. This method is called when a adapter request if received on the Info*Engine socket.

Specified by:
processRequest in interface IeProcessor
Parameters:
request - The request to perform
Throws:
IEException

getDirContext

private DirContext getDirContext(Webject webject,
                                 Properties env)
                          throws NamingException
Throws:
NamingException

getFreeContext

private DirContext getFreeContext(Properties env)

closeContext

private void closeContext(DirContext context,
                          boolean force)

toClassName

private String toClassName(String oldstring)
Converts the request to the classname syntax.

Parameters:
oldstring - The request in original form
Returns:
The request in the converted form