public class StorageManager extends Object
| Modifier and Type | Field and Description |
|---|---|
private long |
contextCounter |
static String |
CTX_COUNTER |
static String |
CTX_INDEX |
private Hashtable |
nameToIdIndex |
static String |
ROOT |
private Object |
serverId |
private fr.dyade.aaa.util.Transaction |
transaction |
| Constructor and Description |
|---|
StorageManager(fr.dyade.aaa.util.Transaction transaction,
Object serverId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamingContext(NamingContext nc,
CompositeName name) |
void |
delete(NamingContextId ncid,
CompositeName name) |
Enumeration |
getContextIds() |
Enumeration |
getContextNames() |
NamingContextId |
getIdFromName(CompositeName name) |
void |
initialize() |
NamingContext |
loadNamingContext(NamingContextId ncid) |
NamingContext |
loadNamingContext(String fileName) |
NamingContext |
newNamingContext(Object ownerId,
NamingContextId ncid,
CompositeName name) |
private NamingContextId |
newNamingContextId() |
private void |
storeIndex() |
void |
storeNamingContext(NamingContext nc) |
public static final String ROOT
public static final String CTX_COUNTER
public static final String CTX_INDEX
private long contextCounter
private fr.dyade.aaa.util.Transaction transaction
private Hashtable nameToIdIndex
private Object serverId
public StorageManager(fr.dyade.aaa.util.Transaction transaction,
Object serverId)
public NamingContext newNamingContext(Object ownerId, NamingContextId ncid, CompositeName name) throws NamingException
NamingExceptionpublic void addNamingContext(NamingContext nc, CompositeName name) throws NamingException
NamingExceptionprivate NamingContextId newNamingContextId() throws NamingException
NamingExceptionpublic void storeNamingContext(NamingContext nc) throws NamingException
NamingExceptionpublic NamingContext loadNamingContext(NamingContextId ncid) throws NamingException
NamingExceptionpublic NamingContext loadNamingContext(String fileName) throws NamingException
NamingExceptionpublic void delete(NamingContextId ncid, CompositeName name) throws NamingException
NamingExceptionprivate void storeIndex()
throws NamingException
NamingExceptionpublic Enumeration getContextIds()
public Enumeration getContextNames()
public NamingContextId getIdFromName(CompositeName name)
Copyright © 2019 ScalAgent D.T.. All Rights Reserved.