C# 클래스 Scalien.ConfigStateHelpers

파일 보기 프로젝트 열기: scalien/scaliendb 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

GenerateNumericKeys() 공개 정적인 메소드

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

GenerateNumericKeysBackwards() 공개 정적인 메소드

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

GetControllerURL() 공개 정적인 메소드

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

GetEndpointWithPort() 공개 정적인 메소드

public static GetEndpointWithPort ( string endpoint, uint port ) : string
endpoint string
port uint
리턴 string

GetQuorum() 공개 정적인 메소드

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

GetQuorumActiveShardServers() 공개 정적인 메소드

public static GetQuorumActiveShardServers ( ConfigState configState, ConfigState quorum ) : List
configState ConfigState
quorum ConfigState
리턴 List

GetShardServer() 공개 정적인 메소드

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

GetShardServerURL() 공개 정적인 메소드

public static GetShardServerURL ( ConfigState shardServer ) : string
shardServer ConfigState
리턴 string

GetShardServersByTable() 공개 정적인 메소드

public static GetShardServersByTable ( ConfigState table, ConfigState configState ) : List
table ConfigState
configState ConfigState
리턴 List

GetTable() 공개 정적인 메소드

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

GetTableShards() 공개 정적인 메소드

public static GetTableShards ( ConfigState table, List allShards ) : List
table ConfigState
allShards List
리턴 List

ParallelFetchKeyValuesHTTP() 공개 정적인 메소드

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

ParallelFetchTableKeyValuesHTTP() 공개 정적인 메소드

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
리턴 byte[]>>[].List

ParallelFetchTableKeysHTTP() 공개 정적인 메소드

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
리턴 string[][]

ParallelFetchValuesHTTP() 공개 정적인 메소드

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

TryCreateDatabase() 공개 정적인 메소드

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

TryCreateTable() 공개 정적인 메소드

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

TryDeleteDatabase() 공개 정적인 메소드

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