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:
java.io.Serializable,java.util.concurrent.Executor,org.nustaq.kontraktor.monitoring.Monitorable
public class DynDataServiceRegistry extends ServiceRegistry
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.kontraktor.services.ServiceRegistry
ServiceRegistry.RestApi, ServiceRegistry.StatusEntry -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRECORD_DISTRIBUTIONFields 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, zzServerMsgCallback -
Constructor Summary
Constructors Constructor Description DynDataServiceRegistry() -
Method Summary
Modifier and Type Method Description org.nustaq.kontraktor.IPromisebalanceDynShards()protected 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>collectRecordDistribution()org.nustaq.kontraktor.IPromise<org.nustaq.reallive.server.dynamic.DynClusterDistribution>getActiveDistribution()protected org.nustaq.kontraktor.IPromise<DynDataShard>getOrConnect(java.lang.String name)static voidmain(java.lang.String[] args)voidregisterService(org.nustaq.kontraktor.remoting.base.ServiceDescription desc)org.nustaq.kontraktor.IPromisereleaseDynShard(java.lang.String shardName2Release)static ServiceRegistrystart(java.lang.String[] args)static ServiceRegistrystart(RegistryArgs options)static voidstart(SingleProcessRLClusterArgs options, ClusterCfg cfg)protected voidwaitForAutoStart()collects distribution and triggers a balance as soon full coverage is presentMethods inherited from class org.nustaq.kontraktor.services.ServiceRegistry
broadcastAvailable, checkTimeout, getConfig, getService, getServiceList, getServiceMap, getStati, init, parseCommandLine, parseCommandLine, receiveHeartbeat, receiveHeartbeatWithStatus, removeStatus, 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
public static final java.lang.String RECORD_DISTRIBUTION- See Also:
- Constant Field Values
-
-
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
public org.nustaq.kontraktor.IPromise releaseDynShard(java.lang.String shardName2Release)- Overrides:
releaseDynShardin classServiceRegistry
-
balanceDynShards
public org.nustaq.kontraktor.IPromise balanceDynShards()- Overrides:
balanceDynShardsin classServiceRegistry
-
waitForAutoStart
protected void waitForAutoStart()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
-
main
public static void main(java.lang.String[] args) -
start
-
start
-
start
-