fr.dyade.aaa.jndi2.impl
Class ContextManager

java.lang.Object
  extended by fr.dyade.aaa.jndi2.impl.ContextManager
All Implemented Interfaces:
java.io.Serializable

public class ContextManager
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  ContextTable contextIdTable
           
private  ContextTable contextNameTable
           
private  NamingContextId rootContextId
           
private static long serialVersionUID
           
private  StorageManager storageManager
           
 
Constructor Summary
ContextManager(Transaction transaction, java.lang.Object serverId, java.lang.Object rootOwnerId)
           
 
Method Summary
 void addNamingContext(NamingContextInfo ncInfo)
           
 NamingContextInfo[] changeOwner(javax.naming.CompositeName cn, java.lang.Object formerOwnerId, java.lang.Object newOwnerId)
           
 NamingContextInfo[] copyNamingContexts(java.lang.Object serverId)
           
 void delete(NamingContextId ncid, javax.naming.CompositeName name)
           
 NamingContext getNamingContext(javax.naming.CompositeName name)
           
 NamingContext getNamingContext(NamingContextId ncid)
           
 NamingContext getNamingContext(NamingContextId ncid, boolean cache)
           
private  NamingContext getNamingContextFromName(javax.naming.CompositeName name)
           
 NamingContext getRootNamingContext()
           
 void initialize()
           
 NamingContext newNamingContext(java.lang.Object ownerId, NamingContextId ncid, javax.naming.CompositeName name)
           
private  void put(javax.naming.CompositeName name, NamingContext nc)
           
private  void put(NamingContext nc)
           
 void readBag(java.io.ObjectInputStream in)
           
private  void registerMBean(NamingContext context, javax.naming.CompositeName cn)
           
private  void reloadMBean(NamingContext context)
           
 void resetNamingContext(NamingContext context)
           
 void storeNamingContext(NamingContext nc)
           
private  void unregisterMBean(javax.naming.CompositeName cn)
           
 void writeBag(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

contextIdTable

private ContextTable contextIdTable

contextNameTable

private ContextTable contextNameTable

rootContextId

private NamingContextId rootContextId

storageManager

private StorageManager storageManager
Constructor Detail

ContextManager

public ContextManager(Transaction transaction,
                      java.lang.Object serverId,
                      java.lang.Object rootOwnerId)
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

put

private void put(NamingContext nc)

put

private void put(javax.naming.CompositeName name,
                 NamingContext nc)

getNamingContext

public NamingContext getNamingContext(NamingContextId ncid)
                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getNamingContext

public NamingContext getNamingContext(NamingContextId ncid,
                                      boolean cache)
                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getNamingContextFromName

private NamingContext getNamingContextFromName(javax.naming.CompositeName name)
                                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getNamingContext

public NamingContext getNamingContext(javax.naming.CompositeName name)
                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

delete

public void delete(NamingContextId ncid,
                   javax.naming.CompositeName name)
            throws javax.naming.NamingException
Throws:
javax.naming.NamingException

copyNamingContexts

public NamingContextInfo[] copyNamingContexts(java.lang.Object serverId)
                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException

newNamingContext

public NamingContext newNamingContext(java.lang.Object ownerId,
                                      NamingContextId ncid,
                                      javax.naming.CompositeName name)
                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addNamingContext

public void addNamingContext(NamingContextInfo ncInfo)
                      throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getRootNamingContext

public NamingContext getRootNamingContext()
                                   throws javax.naming.NamingException
Throws:
javax.naming.NamingException

storeNamingContext

public void storeNamingContext(NamingContext nc)
                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException

changeOwner

public NamingContextInfo[] changeOwner(javax.naming.CompositeName cn,
                                       java.lang.Object formerOwnerId,
                                       java.lang.Object newOwnerId)
                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

resetNamingContext

public void resetNamingContext(NamingContext context)
                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException

registerMBean

private void registerMBean(NamingContext context,
                           javax.naming.CompositeName cn)

unregisterMBean

private void unregisterMBean(javax.naming.CompositeName cn)

reloadMBean

private void reloadMBean(NamingContext context)

writeBag

public void writeBag(java.io.ObjectOutputStream out)
              throws java.io.IOException
Throws:
java.io.IOException

readBag

public void readBag(java.io.ObjectInputStream in)
             throws java.io.IOException,
                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


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