org.garret.perst
Interface ReplicationSlaveStorage

All Superinterfaces:
Storage

public interface ReplicationSlaveStorage
extends Storage

Storage reciving modified pages from replication master and been able to run read-only transactions


Field Summary
 
Fields inherited from interface org.garret.perst.Storage
COOPERATIVE_TRANSACTION, DEFAULT_PAGE_POOL_SIZE, EXCLUSIVE_TRANSACTION, INFINITE_PAGE_POOL, REPLICATION_SLAVE_TRANSACTION, SERIALIZABLE_TRANSACTION
 
Method Summary
 boolean isConnected()
          Check if socket is connected to the master host
 void waitForModification()
          Wait until database is modified by master This method blocks current thread until master node commits trasanction and this transanction is completely delivered to this slave node
 
Methods inherited from interface org.garret.perst.Storage
backup, beginThreadTransaction, close, commit, createBitIndex, createBlob, createFieldIndex, createFieldIndex, createIndex, createIndex, createLink, createLink, createPatriciaTrie, createQuery, createRelation, createScalableSet, createScalableSet, createSet, createSortedCollection, createSpatialIndex, createSpatialIndexR2, createThickIndex, createTimeSeries, deallocateObject, endThreadTransaction, endThreadTransaction, exportXML, gc, getClassLoader, getDatabaseSize, getMemoryDump, getObjectByOID, getProperties, getProperty, getRoot, getUsedSize, importXML, isOpened, join, loadObject, lockObject, makePersistent, merge, modifyObject, open, open, open, open, open, rollback, rollbackThreadTransaction, setClassLoader, setGcThreshold, setListener, setProperties, setProperty, setRoot, storeFinalizedObject, storeObject
 

Method Detail

isConnected

boolean isConnected()
Check if socket is connected to the master host

Returns:
true if connection between slave and master is sucessfully established

waitForModification

void waitForModification()
Wait until database is modified by master This method blocks current thread until master node commits trasanction and this transanction is completely delivered to this slave node