Package fr.dyade.aaa.jndi2.impl
Class ContextManager
- java.lang.Object
-
- fr.dyade.aaa.jndi2.impl.ContextManager
-
- All Implemented Interfaces:
Serializable
public class ContextManager extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ContextTablecontextIdTableprivate ContextTablecontextNameTableprivate NamingContextIdrootContextIdprivate static longserialVersionUIDDefine serialVersionUID for interoperability.private StorageManagerstorageManager
-
Constructor Summary
Constructors Constructor Description ContextManager(Transaction transaction, Object serverId, Object rootOwnerId)
-
Method Summary
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- 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, Object serverId, Object rootOwnerId)
-
-
Method Detail
-
put
private void put(NamingContext nc)
-
put
private void put(CompositeName name, NamingContext nc)
-
getNamingContext
public NamingContext getNamingContext(NamingContextId ncid) throws NamingException
- Throws:
NamingException
-
getNamingContext
public NamingContext getNamingContext(NamingContextId ncid, boolean cache) throws NamingException
- Throws:
NamingException
-
getNamingContextFromName
private NamingContext getNamingContextFromName(CompositeName name) throws NamingException
- Throws:
NamingException
-
getNamingContext
public NamingContext getNamingContext(CompositeName name) throws NamingException
- Throws:
NamingException
-
delete
public void delete(NamingContextId ncid, CompositeName name) throws NamingException
- Throws:
NamingException
-
copyNamingContexts
public NamingContextInfo[] copyNamingContexts(Object serverId) throws NamingException
- Throws:
NamingException
-
newNamingContext
public NamingContext newNamingContext(Object ownerId, NamingContextId ncid, CompositeName name) throws NamingException
- Throws:
NamingException
-
addNamingContext
public void addNamingContext(NamingContextInfo ncInfo) throws NamingException
- Throws:
NamingException
-
getRootNamingContext
public NamingContext getRootNamingContext() throws NamingException
- Throws:
NamingException
-
storeNamingContext
public void storeNamingContext(NamingContext nc) throws NamingException
- Throws:
NamingException
-
changeOwner
public NamingContextInfo[] changeOwner(CompositeName cn, Object formerOwnerId, Object newOwnerId) throws NamingException
- Throws:
NamingException
-
resetNamingContext
public void resetNamingContext(NamingContext context) throws NamingException
- Throws:
NamingException
-
registerMBean
private void registerMBean(NamingContext context, CompositeName cn)
-
unregisterMBean
private void unregisterMBean(CompositeName cn)
-
reloadMBean
private void reloadMBean(NamingContext context)
-
-