fr.dyade.aaa.jndi2.haclient
Class HANamingConnection

java.lang.Object
  extended by fr.dyade.aaa.jndi2.haclient.HANamingConnection
All Implemented Interfaces:
NamingConnection

public class HANamingConnection
extends java.lang.Object
implements NamingConnection


Field Summary
static int IDEMPOTENT
           
static int NOT_IDEMPOTENT
           
 
Constructor Summary
HANamingConnection()
           
 
Method Summary
 void addServerAddress(java.lang.String host, int port)
           
 NamingConnection cloneConnection()
           
 java.util.Hashtable getEnvironment()
           
 JndiReply invoke(JndiRequest request)
          An invoke opens a connection and closes it when the result has been returned.
static boolean isIdempotent(JndiRequest request)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IDEMPOTENT

public static final int IDEMPOTENT
See Also:
Constant Field Values

NOT_IDEMPOTENT

public static final int NOT_IDEMPOTENT
See Also:
Constant Field Values
Constructor Detail

HANamingConnection

public HANamingConnection()
Method Detail

isIdempotent

public static boolean isIdempotent(JndiRequest request)

addServerAddress

public void addServerAddress(java.lang.String host,
                             int port)

invoke

public JndiReply invoke(JndiRequest request)
                 throws javax.naming.NamingException
An invoke opens a connection and closes it when the result has been returned. The overhead of the connection opening could be avoided if the server could close connections. Such a protocol would change the client as well.

Specified by:
invoke in interface NamingConnection
Throws:
javax.naming.NamingException

cloneConnection

public NamingConnection cloneConnection()
Specified by:
cloneConnection in interface NamingConnection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEnvironment

public java.util.Hashtable getEnvironment()
Specified by:
getEnvironment in interface NamingConnection


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.