Package org.nustaq.reallive.client
Class TableSpaceSharding
java.lang.Object
org.nustaq.reallive.client.TableSpaceSharding
- All Implemented Interfaces:
TableSpace
- Direct Known Subclasses:
DynTableSpaceSharding
Created by ruedi on 12.08.2015.
Provides a view on a clustered remote TableSpace as if it was a single node. Runs client side
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<TableSpaceActor>protected Map<String,TableDescription> protected Map<String,RealLiveTable> Fields inherited from interface org.nustaq.reallive.api.TableSpace
USE_BASE_DIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.nustaq.kontraktor.IPromise<RealLiveTable>protected ShardedTablecreateShardedTable(TableDescription desc, RealLiveTable[] tableShards) org.nustaq.kontraktor.IPromisegetStats()org.nustaq.kontraktor.IPromise<RealLiveTable>getTableAsync(String name) org.nustaq.kontraktor.IPromise<List<TableDescription>>org.nustaq.kontraktor.IPromise<List<RealLiveTable>>org.nustaq.kontraktor.IPromiseinit()org.nustaq.kontraktor.IPromiseshutDown()voidstateListener(org.nustaq.kontraktor.Callback<StateMessage> stateListener)
-
Field Details
-
shards
-
tableMap
-
tableDescriptionMap
-
-
Constructor Details
-
TableSpaceSharding
-
-
Method Details
-
init
public org.nustaq.kontraktor.IPromise init() -
createOrLoadTable
- Specified by:
createOrLoadTablein interfaceTableSpace
-
createShardedTable
-
dropTable
- Specified by:
dropTablein interfaceTableSpace
-
getTableDescriptions
- Specified by:
getTableDescriptionsin interfaceTableSpace
-
getStats
-
getTables
- Specified by:
getTablesin interfaceTableSpace
-
getTableAsync
- Specified by:
getTableAsyncin interfaceTableSpace
-
shutDown
public org.nustaq.kontraktor.IPromise shutDown()- Specified by:
shutDownin interfaceTableSpace
-
stateListener
- Specified by:
stateListenerin interfaceTableSpace
-