|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.pss.connector.file.DataManager
public class DataManager
A data manager manages data entries into a persistent file storage.
Constructor Summary | |
---|---|
DataManager()
Constuctor used for transaction delegation. |
|
DataManager(java.lang.String home_name,
java.lang.String datastore_name,
org.omg.PortableInterceptor.ORBInitInfo info)
Constructor |
Method Summary | |
---|---|
void |
addListener(java.lang.Thread thread,
TransactionalDataManagerSerializable tmz)
Add a listener |
void |
close()
|
java.util.Enumeration |
content()
Return the datastore content under an enumeration format |
long |
datastoreSize()
Return the datastore length |
void |
destroy()
This operation is used to destroy the datastore |
void |
finalize()
Finalize operation |
void |
flush()
|
void |
free_all()
|
java.util.Hashtable |
get_clean_table()
Return the clean index table |
java.util.Hashtable |
get_index_table()
Return the index table |
java.lang.String |
home()
Return home base name |
void |
invalidate_entry(PID pid)
Invalidate an entry |
java.lang.String |
key()
Return the hashtable key |
void |
lock_flush(boolean lock)
Disable or enable flush |
java.lang.Object |
lock()
Return the current lock |
long |
nextFreeID()
This operation returns a new free ID. |
DataEntry |
read_entry_from_clean_table(PID pid)
Read an entry from its PID. |
DataEntry |
read_entry_from_index(org.omg.CORBA.LongHolder index)
The operation reads an entry from its PID. |
DataEntry |
read_entry(PID pid)
Read an entry from its PID. |
void |
share()
Increment the shared value counter |
boolean |
shared()
Is this data manager shared ? |
boolean |
transaction_lock()
Return true if this data manager is locked for a transaction |
void |
transaction_lock(TransactionalDataManagerSerializable lock)
Set the lock value |
void |
transaction_unlock()
Unlock this data manager for another transaction |
void |
write_entry(DataEntry entry)
Add a data into the cache. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataManager(java.lang.String home_name, java.lang.String datastore_name, org.omg.PortableInterceptor.ORBInitInfo info)
public DataManager()
Method Detail |
---|
public void share()
public boolean shared()
public boolean transaction_lock()
public void transaction_unlock()
public void transaction_lock(TransactionalDataManagerSerializable lock)
public void addListener(java.lang.Thread thread, TransactionalDataManagerSerializable tmz)
public java.lang.String key()
public void finalize()
finalize
in class java.lang.Object
public DataEntry read_entry(PID pid) throws NotFoundException
NotFoundException
public DataEntry read_entry_from_clean_table(PID pid) throws NotFoundException
NotFoundException
public void invalidate_entry(PID pid)
public void write_entry(DataEntry entry)
public void flush()
public void free_all()
public void close()
public long nextFreeID()
public void destroy()
public DataEntry read_entry_from_index(org.omg.CORBA.LongHolder index)
public void lock_flush(boolean lock)
public java.lang.String home()
public java.util.Enumeration content()
public long datastoreSize()
public java.util.Hashtable get_index_table()
public java.util.Hashtable get_clean_table()
public java.lang.Object lock()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |