public class ServiceRegistry extends org.nustaq.kontraktor.Actor<ServiceRegistry>
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceRegistry.RestApi |
static class |
ServiceRegistry.StatusEntry |
| Modifier and Type | Field and Description |
|---|---|
static String |
AVAILABLE |
static String |
CONFIGUPDATE |
static RegistryArgs |
options |
static String |
SERVICEDUMP |
static String |
TIMEOUT |
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallback| Constructor and Description |
|---|
ServiceRegistry() |
__addDeadLetter, __addRemoteConnection, __addStopHandler, __dispatchRemoteCall, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, askMsg, asyncstop, checkThread, close, closeCurrentClient, current, cyclic, 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, zzRoutingRefGCAddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsUntypedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, flow, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yield, yield, yieldCallbackspublic static final String CONFIGUPDATE
public static final String SERVICEDUMP
public static final String AVAILABLE
public static final String TIMEOUT
public static RegistryArgs options
public void init()
public void serviceDumper()
public void registerService(ServiceDescription desc)
public org.nustaq.kontraktor.IPromise<Map<String,ServiceDescription>> getServiceMap()
public void subscribe(org.nustaq.kontraktor.Callback<org.nustaq.kontraktor.util.Pair<String,ServiceDescription>> cb)
protected void broadcastAvailable(ServiceDescription desc)
protected void broadCastTimeOut(ServiceDescription desc)
public org.nustaq.kontraktor.IPromise<ClusterCfg> getConfig()
public void receiveHeartbeatWithStatus(String serviceName, String uniqueKey, Serializable status)
protected void removeStatus(String key)
protected void updateStatus(long now,
ServiceDescription td,
String key,
Serializable status)
public void checkTimeout()
protected List<ServiceDescription> getServiceList(String serviceName)
public static ServiceArgs parseCommandLine(String[] args, ServiceArgs options)
public org.nustaq.kontraktor.IPromise<List<ServiceRegistry.StatusEntry>> getStati()
public static void main(String[] args)
public static ServiceRegistry start(String[] args)
Copyright © 2018. All rights reserved.