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


Nested Class Summary
(package private) static class HANamingConnection.ServerAddress
           
 
Field Summary
private  java.util.Vector addresses
           
private  int id
           
static int IDEMPOTENT
           
private  IOControl ioCtrl
           
static int NOT_IDEMPOTENT
           
 
Constructor Summary
HANamingConnection()
           
 
Method Summary
 void addServerAddress(java.lang.String host, int port)
           
 NamingConnection cloneConnection()
           
private  void close()
           
 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)
           
private  void open()
           
 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

addresses

private java.util.Vector addresses

ioCtrl

private IOControl ioCtrl

id

private int id
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

open

private void open()
           throws javax.naming.NamingException
Throws:
javax.naming.NamingException

close

private void close()

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 © 2010 ScalAgent D.T.. All Rights Reserved.