C# Class Scalien.ConfigStateHelpers

ファイルを表示 Open project: scalien/scaliendb Class Usage Examples

Public Methods

Method Description
GenerateNumericKeys ( ulong start, ulong count ) : string[]
GenerateNumericKeysBackwards ( ulong start, ulong count ) : string[]
GetControllerURL ( ConfigState controller, uint controllerPort = 8080 ) : string
GetEndpointWithPort ( string endpoint, uint port ) : string
GetQuorum ( ConfigState configState, System.Int64 quorumID ) : ConfigState.Quorum
GetQuorumActiveShardServers ( ConfigState configState, ConfigState quorum ) : List
GetShardServer ( ConfigState configState, System.Int64 nodeID ) : ConfigState.ShardServer
GetShardServerURL ( ConfigState shardServer ) : string
GetShardServersByTable ( ConfigState table, ConfigState configState ) : List
GetTable ( ConfigState configState, System.Int64 tableID ) : ConfigState.Table
GetTableShards ( ConfigState table, List allShards ) : List
ParallelFetchKeyValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
ParallelFetchTableKeyValuesHTTP ( List shardServers, System.Int64 tableID, byte startKey, byte endKey, bool forward ) : byte[]>>[].List
ParallelFetchTableKeysHTTP ( List shardServers, System.Int64 tableID, string startKey, string endKey, bool forward ) : string[][]
ParallelFetchValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
TryCreateDatabase ( Scalien.Client client, string databaseName ) : Database
TryCreateTable ( Database database, string tableName ) : Table
TryDeleteDatabase ( Scalien.Client client, string databaseName ) : bool

Method Details

GenerateNumericKeys() public static method

public static GenerateNumericKeys ( ulong start, ulong count ) : string[]
start ulong
count ulong
return string[]

GenerateNumericKeysBackwards() public static method

public static GenerateNumericKeysBackwards ( ulong start, ulong count ) : string[]
start ulong
count ulong
return string[]

GetControllerURL() public static method

public static GetControllerURL ( ConfigState controller, uint controllerPort = 8080 ) : string
controller ConfigState
controllerPort uint
return string

GetEndpointWithPort() public static method

public static GetEndpointWithPort ( string endpoint, uint port ) : string
endpoint string
port uint
return string

GetQuorum() public static method

public static GetQuorum ( ConfigState configState, System.Int64 quorumID ) : ConfigState.Quorum
configState ConfigState
quorumID System.Int64
return ConfigState.Quorum

GetQuorumActiveShardServers() public static method

public static GetQuorumActiveShardServers ( ConfigState configState, ConfigState quorum ) : List
configState ConfigState
quorum ConfigState
return List

GetShardServer() public static method

public static GetShardServer ( ConfigState configState, System.Int64 nodeID ) : ConfigState.ShardServer
configState ConfigState
nodeID System.Int64
return ConfigState.ShardServer

GetShardServerURL() public static method

public static GetShardServerURL ( ConfigState shardServer ) : string
shardServer ConfigState
return string

GetShardServersByTable() public static method

public static GetShardServersByTable ( ConfigState table, ConfigState configState ) : List
table ConfigState
configState ConfigState
return List

GetTable() public static method

public static GetTable ( ConfigState configState, System.Int64 tableID ) : ConfigState.Table
configState ConfigState
tableID System.Int64
return ConfigState.Table

GetTableShards() public static method

public static GetTableShards ( ConfigState table, List allShards ) : List
table ConfigState
allShards List
return List

ParallelFetchKeyValuesHTTP() public static method

public static ParallelFetchKeyValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
shardServers List
tableID System.Int64
key byte
return List

ParallelFetchTableKeyValuesHTTP() public static method

public static ParallelFetchTableKeyValuesHTTP ( List shardServers, System.Int64 tableID, byte startKey, byte endKey, bool forward ) : byte[]>>[].List
shardServers List
tableID System.Int64
startKey byte
endKey byte
forward bool
return byte[]>>[].List

ParallelFetchTableKeysHTTP() public static method

public static ParallelFetchTableKeysHTTP ( List shardServers, System.Int64 tableID, string startKey, string endKey, bool forward ) : string[][]
shardServers List
tableID System.Int64
startKey string
endKey string
forward bool
return string[][]

ParallelFetchValuesHTTP() public static method

public static ParallelFetchValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
shardServers List
tableID System.Int64
key byte
return List

TryCreateDatabase() public static method

public static TryCreateDatabase ( Scalien.Client client, string databaseName ) : Database
client Scalien.Client
databaseName string
return Database

TryCreateTable() public static method

public static TryCreateTable ( Database database, string tableName ) : Table
database Database
tableName string
return Table

TryDeleteDatabase() public static method

public static TryDeleteDatabase ( Scalien.Client client, string databaseName ) : bool
client Scalien.Client
databaseName string
return bool