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 Transaction |
transaction |
Constructor and Description |
---|
StorageManager(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 Transaction transaction
private Hashtable nameToIdIndex
private Object serverId
public StorageManager(Transaction transaction, Object serverId)
public NamingContext newNamingContext(Object ownerId, NamingContextId ncid, CompositeName name) throws NamingException
NamingException
public void addNamingContext(NamingContext nc, CompositeName name) throws NamingException
NamingException
private NamingContextId newNamingContextId() throws NamingException
NamingException
public void storeNamingContext(NamingContext nc) throws NamingException
NamingException
public NamingContext loadNamingContext(NamingContextId ncid) throws NamingException
NamingException
public NamingContext loadNamingContext(String fileName) throws NamingException
NamingException
public void delete(NamingContextId ncid, CompositeName name) throws NamingException
NamingException
private void storeIndex() throws NamingException
NamingException
public Enumeration getContextIds()
public Enumeration getContextNames()
public NamingContextId getIdFromName(CompositeName name)
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.