Class DynDataServiceRegistry
java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<ServiceRegistry>
org.nustaq.kontraktor.services.ServiceRegistry
org.nustaq.kontraktor.services.datacluster.dynamic.DynDataServiceRegistry
- All Implemented Interfaces:
Serializable,Executor,org.nustaq.kontraktor.monitoring.Monitorable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.kontraktor.services.ServiceRegistry
ServiceRegistry.RestApi, ServiceRegistry.StatusEntryNested classes/interfaces inherited from class org.nustaq.kontraktor.Actor
org.nustaq.kontraktor.Actor.ActorReport -
Field Summary
FieldsFields inherited from class org.nustaq.kontraktor.services.ServiceRegistry
AVAILABLE, config, CONFIGUPDATE, listeners, options, SERVICEDUMP, services, statusMap, TIMEOUTFields 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.IPromiseonly valid on DynData cluster, rebalance data loadprotected voidbroadcastDistribution(org.nustaq.reallive.server.dynamic.DynClusterDistribution mapping) protected voidbroadCastTimeOut(org.nustaq.kontraktor.remoting.base.ServiceDescription desc) protected org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution>org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution>org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution>only valid on DynData cluster, get distribution as assumed by registryorg.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution>only valid on DynData cluster, get distribution as reported by datanodesprotected org.nustaq.kontraktor.IPromise<DynDataShard>getOrConnect(String name) org.nustaq.kontraktor.IPromise<Boolean>static voidvoidregisterService(org.nustaq.kontraktor.remoting.base.ServiceDescription desc) org.nustaq.kontraktor.IPromisereleaseDynShard(String shardName2Release) drop node, remove all data !!static ServiceRegistrystatic ServiceRegistrystart(RegistryArgs options) static voidstart(SingleProcessRLClusterArgs options, ClusterCfg cfg) protected voidwaitForAutoStart(int trial) collects distribution and triggers a balance as soon full coverage is presentMethods inherited from class org.nustaq.kontraktor.services.ServiceRegistry
broadcastAvailable, checkTimeout, getConfig, getPrepareResponse, getReqAuth, getService, getServiceList, getServiceMap, getStati, init, parseCommandLine, receiveHeartbeat, receiveHeartbeatWithStatus, removeStatus, sendServiceBroadcast, serviceDumper, start, subscribe, updateStatusMethods 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
-
RECORD_DISTRIBUTION
- See Also:
-
INTERVAL_AUTOSTART_TRIAL_MILLIS
public static final int INTERVAL_AUTOSTART_TRIAL_MILLIS- See Also:
-
ACTIONS_ENABLED
public static boolean ACTIONS_ENABLED -
TRIALS_FOR_AUTOSTART
public static int TRIALS_FOR_AUTOSTART
-
-
Constructor Details
-
DynDataServiceRegistry
public DynDataServiceRegistry()
-
-
Method Details
-
registerService
public void registerService(org.nustaq.kontraktor.remoting.base.ServiceDescription desc) - Overrides:
registerServicein classServiceRegistry
-
getActiveDistribution
public org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution> getActiveDistribution() -
broadCastTimeOut
protected void broadCastTimeOut(org.nustaq.kontraktor.remoting.base.ServiceDescription desc) - Overrides:
broadCastTimeOutin classServiceRegistry
-
releaseDynShard
Description copied from class:ServiceRegistrydrop node, remove all data !!not yet implemented!!- Overrides:
releaseDynShardin classServiceRegistry- Returns:
-
getDynDataDistribution
public org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution> getDynDataDistribution()Description copied from class:ServiceRegistryonly valid on DynData cluster, get distribution as reported by datanodes- Overrides:
getDynDataDistributionin classServiceRegistry- Returns:
-
getActiveDynDataDistribution
public org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution> getActiveDynDataDistribution()Description copied from class:ServiceRegistryonly valid on DynData cluster, get distribution as assumed by registry- Overrides:
getActiveDynDataDistributionin classServiceRegistry- Returns:
-
balanceDynShards
public org.nustaq.kontraktor.IPromise balanceDynShards()Description copied from class:ServiceRegistryonly valid on DynData cluster, rebalance data load- Overrides:
balanceDynShardsin classServiceRegistry- Returns:
-
waitForAutoStart
protected void waitForAutoStart(int trial) collects distribution and triggers a balance as soon full coverage is present -
collectRecordDistribution
protected org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution> collectRecordDistribution() -
broadcastDistribution
protected void broadcastDistribution(org.nustaq.reallive.server.dynamic.DynClusterDistribution mapping) -
getOrConnect
-
isDynamic
- Overrides:
isDynamicin classServiceRegistry
-
main
-
start
-
start
-
start
-