C# Class Bend.Repl.ReplHandler

Show file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Properties

Property Type Description
myrnd System.Random

Public Methods

Method Description
InitFresh ( IStepsSnapshotKVDB db, ServerContext ctx ) : ReplHandler
InitJoin ( IStepsSnapshotKVDB db, ServerContext ctx, string seed_name ) : ReplHandler
InitResume ( IStepsSnapshotKVDB db, ServerContext ctx ) : ReplHandler
ReplHandler ( IStepsSnapshotKVDB db, ServerContext ctx ) : System
Shutdown ( ) : void
ToString ( ) : string
getDataInstanceId ( ) : string
getEstimatedRemainingLogData ( string server_guid, RecordKeyType log_start_key ) : int
getServerGuid ( ) : string
getSnapshot ( ) : IStepsKVDB
getStatusForLog ( string server_guid ) : LogStatus
requestToJoin ( string server_guid ) : JoinInfo
setValue ( RecordKey skey, RecordUpdate supdate ) : void
setValueParsed ( string skey, string svalue ) : void
truncateLogs_Hack ( ) : void

Private Methods

Method Description
_decodeLogEntry ( RecordKey key, RecordData data ) : LogEntry
_recordLogEntry ( string from_server_guid, long logstamp, RecordUpdate logdata ) : void
_stopFetchers ( ) : void
applyLogEntry ( string from_server_guid, long logstamp, RecordUpdate logdata ) : void
checkActive ( ) : void
fetchLogEntries ( string log_server_guid, RecordKeyType log_start_key, int limit = -1, bool block = false ) : RecordData>>.IEnumerable
fetchLogEntries_block ( string log_server_guid, string log_start_key, string log_end_key ) : byte[]
getStatusForLogs ( ) : IEnumerable
workerFunc ( ) : void
workerThread ( ) : void
worker_fullRebuild ( ) : void
worker_logResume ( ) : void

Method Details

InitFresh() public static method

public static InitFresh ( IStepsSnapshotKVDB db, ServerContext ctx ) : ReplHandler
db IStepsSnapshotKVDB
ctx ServerContext
return ReplHandler

InitJoin() public static method

public static InitJoin ( IStepsSnapshotKVDB db, ServerContext ctx, string seed_name ) : ReplHandler
db IStepsSnapshotKVDB
ctx ServerContext
seed_name string
return ReplHandler

InitResume() public static method

public static InitResume ( IStepsSnapshotKVDB db, ServerContext ctx ) : ReplHandler
db IStepsSnapshotKVDB
ctx ServerContext
return ReplHandler

ReplHandler() public method

public ReplHandler ( IStepsSnapshotKVDB db, ServerContext ctx ) : System
db IStepsSnapshotKVDB
ctx ServerContext
return System

Shutdown() public method

public Shutdown ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

getDataInstanceId() public method

public getDataInstanceId ( ) : string
return string

getEstimatedRemainingLogData() public method

public getEstimatedRemainingLogData ( string server_guid, RecordKeyType log_start_key ) : int
server_guid string
log_start_key RecordKeyType
return int

getServerGuid() public method

public getServerGuid ( ) : string
return string

getSnapshot() public method

public getSnapshot ( ) : IStepsKVDB
return IStepsKVDB

getStatusForLog() public method

public getStatusForLog ( string server_guid ) : LogStatus
server_guid string
return LogStatus

requestToJoin() public method

public requestToJoin ( string server_guid ) : JoinInfo
server_guid string
return JoinInfo

setValue() public method

public setValue ( RecordKey skey, RecordUpdate supdate ) : void
skey RecordKey
supdate RecordUpdate
return void

setValueParsed() public method

public setValueParsed ( string skey, string svalue ) : void
skey string
svalue string
return void

truncateLogs_Hack() public method

public truncateLogs_Hack ( ) : void
return void

Property Details

myrnd public static property

public static Random,System myrnd
return System.Random