Class TableSpaceActor
java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<TableSpaceActor>
org.nustaq.reallive.server.actors.TableSpaceActor
- All Implemented Interfaces:
Serializable,Executor,org.nustaq.kontraktor.monitoring.Monitorable,TableSpace
- Direct Known Subclasses:
DynTableSpaceActor
public class TableSpaceActor
extends org.nustaq.kontraktor.Actor<TableSpaceActor>
implements TableSpace
Created by ruedi on 08.08.2015.
groups a set of table definitions. Runs server/node -side
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.kontraktor.Actor
org.nustaq.kontraktor.Actor.ActorReport -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic longprotected List<org.nustaq.kontraktor.Callback<StateMessage>>protected Map<String,TableDescription> protected Map<String,RealLiveTableActor> Fields inherited from class org.nustaq.kontraktor.Actor
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallbackFields inherited from class org.nustaq.kontraktor.Actors
CONT, DEFAULT_TIMOUT, defaultScheduler, delayedCalls, exec, instance, MAX_EXTERNAL_THREADS_POOL_SIZE, versionFields inherited from interface org.nustaq.reallive.api.TableSpace
USE_BASE_DIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.nustaq.kontraktor.IPromise<RealLiveTable>protected RealLiveTableActororg.nustaq.kontraktor.IPromiseprotected Stringorg.nustaq.kontraktor.IPromise<RealLiveTable>getTableAsync(String name) org.nustaq.kontraktor.IPromise<List<TableDescription>>org.nustaq.kontraktor.IPromise<List<RealLiveTable>>voidinit()voidsetBaseDataDir(String dir) overrides setting in table description if setorg.nustaq.kontraktor.IPromiseshutDown()voidstateListener(org.nustaq.kontraktor.Callback<StateMessage> stateListener) Methods inherited from class org.nustaq.kontraktor.Actor
__addDeadLetter, __addRemoteConnection, __addStopHandler, __dispatchRemoteCall, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, askMsg, asyncstop, checkThread, close, closeCurrentClient, current, cyclic, debounce, delayed, execInThreadPool, execute, getActor, getActorRef, getCallbackSize, getConnections, getCurrentDispatcher, getFactory, getMailboxSize, getQSizes, getReport, getScheduler, getSubMonitorables, getUntypedRef, hasStopped, inside, inThread, isCallbackQPressured, isEmpty, isMailboxPressured, isProxy, isPublished, isRemote, isStopped, ping, router$clientPing, self, serialOn, setServerMsgCallback, stop, stopSafeClose, tell, tellMsg, unpublish, zzkrouterLostClient, zzRoutingRefGCMethods inherited from class org.nustaq.kontraktor.Actors
AddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsUntypedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, flow, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, kYield, kYield, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yieldCallbacks
-
Field Details
-
MAX_WAIT_MMAP
public static long MAX_WAIT_MMAP -
__clientsideTag
-
tables
-
tableDesc
-
stateListeners
-
baseDir
-
-
Constructor Details
-
TableSpaceActor
public TableSpaceActor()
-
-
Method Details
-
init
public void init() -
setBaseDataDir
overrides setting in table description if set- Parameters:
dir-
-
getBaseDir
-
createOrLoadTable
- Specified by:
createOrLoadTablein interfaceTableSpace
-
createTableActor
-
dropTable
- Specified by:
dropTablein interfaceTableSpace
-
getTableDescriptions
- Specified by:
getTableDescriptionsin interfaceTableSpace
-
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
-