Package org.nustaq.reallive.client
Class TableSpaceSharding
java.lang.Object
org.nustaq.reallive.client.TableSpaceSharding
- All Implemented Interfaces:
TableSpace
- Direct Known Subclasses:
DynTableSpaceSharding
public class TableSpaceSharding extends java.lang.Object implements TableSpace
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
Fields Modifier and Type Field Description protected java.util.List<TableSpaceActor>shardsprotected java.util.HashMap<java.lang.String,TableDescription>tableDescriptionMapprotected java.util.HashMap<java.lang.String,RealLiveTable>tableMap -
Constructor Summary
Constructors Constructor Description TableSpaceSharding(TableSpaceActor[] shards) -
Method Summary
Modifier and Type Method Description org.nustaq.kontraktor.IPromise<RealLiveTable>createOrLoadTable(TableDescription desc0)protected ShardedTablecreateShardedTable(TableDescription desc, RealLiveTable[] tableShards)org.nustaq.kontraktor.IPromisedropTable(java.lang.String name)java.util.List<StorageStats>getStats()org.nustaq.kontraktor.IPromise<RealLiveTable>getTableAsync(java.lang.String name)org.nustaq.kontraktor.IPromise<java.util.List<TableDescription>>getTableDescriptions()org.nustaq.kontraktor.IPromise<java.util.List<RealLiveTable>>getTables()org.nustaq.kontraktor.IPromiseinit()org.nustaq.kontraktor.IPromiseshutDown()voidstateListener(org.nustaq.kontraktor.Callback<StateMessage> stateListener)
-
Field Details
-
Constructor Details
-
Method Details
-
init
public org.nustaq.kontraktor.IPromise init() -
createOrLoadTable
- Specified by:
createOrLoadTablein interfaceTableSpace
-
createShardedTable
-
dropTable
public org.nustaq.kontraktor.IPromise dropTable(java.lang.String name)- 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
-