public class ServiceRegistry extends org.nustaq.kontraktor.Actor<ServiceRegistry>
| Modifier and Type | Field and Description |
|---|---|
static String |
AVAILABLE |
static String |
CONFIGUPDATE |
static Class[] |
JSONCLASSES |
static ServiceArgs |
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() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
broadcastAvailable(ServiceDescription desc) |
protected void |
broadCastTimeOut(ServiceDescription desc) |
void |
checkTimeout() |
org.nustaq.kontraktor.IPromise<ClusterCfg> |
getConfig() |
protected List<ServiceDescription> |
getServiceList(String serviceName) |
org.nustaq.kontraktor.IPromise<Map<String,ServiceDescription>> |
getServiceMap() |
void |
init() |
static void |
main(String[] args) |
static ServiceArgs |
parseCommandLine(String[] args,
ServiceArgs options) |
void |
receiveHeartbeat(String serviceName,
String uniqueKey) |
void |
registerService(ServiceDescription desc) |
void |
serviceDumper() |
void |
subscribe(org.nustaq.kontraktor.Callback<org.nustaq.kontraktor.util.Pair<String,ServiceDescription>> cb) |
__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 Class[] JSONCLASSES
public static ServiceArgs 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 checkTimeout()
protected List<ServiceDescription> getServiceList(String serviceName)
public static ServiceArgs parseCommandLine(String[] args, ServiceArgs options)
public static void main(String[] args)
Copyright © 2018. All rights reserved.