C# Class Scalien.ConfigStateHelpers

Afficher le fichier Open project: scalien/scaliendb Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static GenerateNumericKeys ( ulong start, ulong count ) : string[]
start ulong
count ulong
Résultat string[]

GenerateNumericKeysBackwards() public static méthode

public static GenerateNumericKeysBackwards ( ulong start, ulong count ) : string[]
start ulong
count ulong
Résultat string[]

GetControllerURL() public static méthode

public static GetControllerURL ( ConfigState controller, uint controllerPort = 8080 ) : string
controller ConfigState
controllerPort uint
Résultat string

GetEndpointWithPort() public static méthode

public static GetEndpointWithPort ( string endpoint, uint port ) : string
endpoint string
port uint
Résultat string

GetQuorum() public static méthode

public static GetQuorum ( ConfigState configState, System.Int64 quorumID ) : ConfigState.Quorum
configState ConfigState
quorumID System.Int64
Résultat ConfigState.Quorum

GetQuorumActiveShardServers() public static méthode

public static GetQuorumActiveShardServers ( ConfigState configState, ConfigState quorum ) : List
configState ConfigState
quorum ConfigState
Résultat List

GetShardServer() public static méthode

public static GetShardServer ( ConfigState configState, System.Int64 nodeID ) : ConfigState.ShardServer
configState ConfigState
nodeID System.Int64
Résultat ConfigState.ShardServer

GetShardServerURL() public static méthode

public static GetShardServerURL ( ConfigState shardServer ) : string
shardServer ConfigState
Résultat string

GetShardServersByTable() public static méthode

public static GetShardServersByTable ( ConfigState table, ConfigState configState ) : List
table ConfigState
configState ConfigState
Résultat List

GetTable() public static méthode

public static GetTable ( ConfigState configState, System.Int64 tableID ) : ConfigState.Table
configState ConfigState
tableID System.Int64
Résultat ConfigState.Table

GetTableShards() public static méthode

public static GetTableShards ( ConfigState table, List allShards ) : List
table ConfigState
allShards List
Résultat List

ParallelFetchKeyValuesHTTP() public static méthode

public static ParallelFetchKeyValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
shardServers List
tableID System.Int64
key byte
Résultat List

ParallelFetchTableKeyValuesHTTP() public static méthode

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
Résultat byte[]>>[].List

ParallelFetchTableKeysHTTP() public static méthode

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
Résultat string[][]

ParallelFetchValuesHTTP() public static méthode

public static ParallelFetchValuesHTTP ( List shardServers, System.Int64 tableID, byte key ) : List
shardServers List
tableID System.Int64
key byte
Résultat List

TryCreateDatabase() public static méthode

public static TryCreateDatabase ( Scalien.Client client, string databaseName ) : Database
client Scalien.Client
databaseName string
Résultat Database

TryCreateTable() public static méthode

public static TryCreateTable ( Database database, string tableName ) : Table
database Database
tableName string
Résultat Table

TryDeleteDatabase() public static méthode

public static TryDeleteDatabase ( Scalien.Client client, string databaseName ) : bool
client Scalien.Client
databaseName string
Résultat bool