C# Class Volante.Impl.ReplicationSlaveDatabaseImpl

Inheritance: DatabaseImpl, ReplicationSlaveDatabase
Datei anzeigen Open project: kjk/volante

Public Properties

Property Type Description
LingerTime int
ListenQueueSize int

Protected Properties

Property Type Description
acceptor Socket
commit object
done object
file IFile
init object
initialized bool
lck IResource
listening bool
port int
prevIndex int
socket Socket
thread Thread

Public Methods

Method Description
BeginThreadTransaction ( TransactionMode mode ) : void
Close ( ) : void
EndThreadTransaction ( int maxDelay ) : void
HandleError ( ) : bool

When overriden by base class this method perfroms socket error handling @return true if host should be reconnected and attempt to send data to it should be repeated, false if no more attmpts to communicate with this host should be performed

IsConnected ( ) : bool

Check if socket is connected to the master host @return true if connection between slave and master is sucessfully established

Open ( IFile file, int cacheSizeInBytes ) : void
ReplicationSlaveDatabaseImpl ( int port ) : System
WaitForModification ( ) : void

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

run ( ) : void

Protected Methods

Method Description
WaitInitializationCompletion ( ) : void
isDirty ( ) : bool

Private Methods

Method Description
connect ( ) : void
hangup ( ) : void

Method Details

BeginThreadTransaction() public method

public BeginThreadTransaction ( TransactionMode mode ) : void
mode TransactionMode
return void

Close() public method

public Close ( ) : void
return void

EndThreadTransaction() public method

public EndThreadTransaction ( int maxDelay ) : void
maxDelay int
return void

HandleError() public method

When overriden by base class this method perfroms socket error handling @return true if host should be reconnected and attempt to send data to it should be repeated, false if no more attmpts to communicate with this host should be performed
public HandleError ( ) : bool
return bool

IsConnected() public method

Check if socket is connected to the master host @return true if connection between slave and master is sucessfully established
public IsConnected ( ) : bool
return bool

Open() public method

public Open ( IFile file, int cacheSizeInBytes ) : void
file IFile
cacheSizeInBytes int
return void

ReplicationSlaveDatabaseImpl() public method

public ReplicationSlaveDatabaseImpl ( int port ) : System
port int
return System

WaitForModification() public method

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
public WaitForModification ( ) : void
return void

WaitInitializationCompletion() protected method

protected WaitInitializationCompletion ( ) : void
return void

isDirty() protected method

protected isDirty ( ) : bool
return bool

run() public method

public run ( ) : void
return void

Property Details

LingerTime public_oe static_oe property

public static int LingerTime
return int

ListenQueueSize public_oe static_oe property

public static int ListenQueueSize
return int

acceptor protected_oe property

protected Socket acceptor
return Socket

commit protected_oe property

protected object commit
return object

done protected_oe property

protected object done
return object

file protected_oe property

protected IFile file
return IFile

init protected_oe property

protected object init
return object

initialized protected_oe property

protected bool initialized
return bool

lck protected_oe property

protected IResource lck
return IResource

listening protected_oe property

protected bool listening
return bool

port protected_oe property

protected int port
return int

prevIndex protected_oe property

protected int prevIndex
return int

socket protected_oe property

protected Socket socket
return Socket

thread protected_oe property

protected Thread thread
return Thread