Class DynDataShard
java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<T>
org.nustaq.kontraktor.services.ServiceActor<DynDataShard>
org.nustaq.kontraktor.services.datacluster.dynamic.DynDataShard
- All Implemented Interfaces:
Serializable,Executor,org.nustaq.kontraktor.monitoring.Monitorable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.kontraktor.Actor
org.nustaq.kontraktor.Actor.ActorReport -
Field Summary
FieldsFields inherited from class org.nustaq.kontraktor.services.ServiceActor
cmdline, config, currentDistribution, dclient, DEFAULT_START_TIMEOUT, REGISTRY_DISCONNECTED, REGISTRY_RECONNECTED, requiredServices, serviceDescription, serviceRegistry, UNCONNECTEDFields 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, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.nustaq.kontraktor.IPromise_moveHashShardsTo(String tableName, int[] hashShards2Move, org.nustaq.kontraktor.remoting.base.ServiceDescription otherRef) org.nustaq.kontraktor.IPromise_receiveHashTransmission(String tableName, int[] hashShards2Move, List<org.nustaq.reallive.api.Record> toTransmit) org.nustaq.kontraktor.IPromise_setMapping(String tableName, org.nustaq.reallive.server.storage.ClusterTableRecordMapping mapping) protected org.nustaq.kontraktor.remoting.base.ServiceDescriptionprotected DataShardArgsprotected intgetPort()protected String[]protected Serializableorg.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.actors.DynTableSpaceActor>org.nustaq.kontraktor.IPromiseinit(org.nustaq.kontraktor.remoting.base.ConnectableActor registryConnectable, ServiceArgs options, boolean auto) protected voidprotected booleanstatic voidstatic DynDataShardstatic DynDataShardstart(DataShardArgs options) Methods inherited from class org.nustaq.kontraktor.services.ServiceActor
addServiceEventListener, awaitRequiredServices, awaitRequiredServicesInternal, connectRequiredServices, connectService, createDefaultConnectable, fireServiceEvent, getAllServiceNames, getConfig, getDataClient, getHost, getService, getServiceDescription, getServiceRegistry, gravityDisconnected, heartBeat, initRealLiveDynamic, InitRealLiveDynamic, initRealLiveFixed, isDynamicDataCluster, notifyConfigChanged, old_initRealLiveDynamic, onRegistryConnected, onRegistryDisconnected, onServiceRegistryReconnected, publishSelf, registerSelf, removeServiceEventListener, requiredSerivceWentDown, RunTCP, RunTCP, RunTCP, RunTCP, RunTCP, RunTCP, serviceDisconnected, serviceEventMethods 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
-
DATA_SHARD_NAME
- See Also:
-
WAIT_TABLE_LOAD
public static int WAIT_TABLE_LOAD
-
-
Constructor Details
-
DynDataShard
public DynDataShard()
-
-
Method Details
-
init
public org.nustaq.kontraktor.IPromise init(org.nustaq.kontraktor.remoting.base.ConnectableActor registryConnectable, ServiceArgs options, boolean auto) - Overrides:
initin classServiceActor<DynDataShard>
-
getPort
protected int getPort()- Overrides:
getPortin classServiceActor<DynDataShard>- Returns:
- port this service wants to expose (with default tcp exposure)
-
initTableSpace
protected void initTableSpace() -
getTableSpace
public org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.actors.DynTableSpaceActor> getTableSpace() -
isFixedDataCluster
protected boolean isFixedDataCluster()- Overrides:
isFixedDataClusterin classServiceActor<DynDataShard>
-
getRequiredServiceNames
- Specified by:
getRequiredServiceNamesin classServiceActor<DynDataShard>
-
createServiceDescription
protected org.nustaq.kontraktor.remoting.base.ServiceDescription createServiceDescription()- Specified by:
createServiceDescriptionin classServiceActor<DynDataShard>
-
getCmdline
- Overrides:
getCmdlinein classServiceActor<DynDataShard>
-
getStatus
- Overrides:
getStatusin classServiceActor<DynDataShard>
-
getStates
-
_setMapping
public org.nustaq.kontraktor.IPromise _setMapping(String tableName, org.nustaq.reallive.server.storage.ClusterTableRecordMapping mapping) -
main
-
start
-
start
-
_moveHashShardsTo
public org.nustaq.kontraktor.IPromise _moveHashShardsTo(String tableName, int[] hashShards2Move, org.nustaq.kontraktor.remoting.base.ServiceDescription otherRef) -
_receiveHashTransmission
-