Class RLJsonServer<T extends RLJsonServer>

java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<T>
org.nustaq.kontraktor.services.rlserver.RLJsonServer<T>
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Executor, org.nustaq.kontraktor.monitoring.Monitorable

public class RLJsonServer<T extends RLJsonServer>
extends org.nustaq.kontraktor.Actor<T>
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.nustaq.kontraktor.Actor

    org.nustaq.kontraktor.Actor.ActorReport
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.Class[] CLAZZES  
    protected org.nustaq.kontraktor.Scheduler[] clientThreads  
    protected DataClient dclient  
    protected java.util.Random rand  
    protected RLJsonServerService service  

    Fields 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

    Fields inherited from class org.nustaq.kontraktor.Actors

    CONT, DEFAULT_TIMOUT, defaultScheduler, delayedCalls, exec, instance, MAX_EXTERNAL_THREADS_POOL_SIZE, version
  • Constructor Summary

    Constructors 
    Constructor Description
    RLJsonServer()  
  • Method Summary

    Modifier and Type Method Description
    org.nustaq.kontraktor.IPromise<RLJsonAuthResult> authenticate​(java.lang.String user, java.lang.String pwd)  
    static SimpleRLConfig Cfg()  
    protected void createServer​(RLJsonServer app, java.lang.Class[] CLAZZES)  
    protected org.nustaq.kontraktor.IPromise<RLJsonAuthResult> createSession​(java.lang.Object customSessionData)  
    DataClient getDClient()  
    protected java.lang.Class<? extends RLJsonSession> getSessionActorClazz​(java.lang.Object authData)  
    org.nustaq.kontraktor.IPromise init​(java.lang.String[] args)  
    static void main​(java.lang.String[] args)  
    static void startUp​(java.lang.String[] args, java.lang.Class appClazz)  

    Methods 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, zzRoutingRefGC

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • Cfg

      public static SimpleRLConfig Cfg()
    • init

      public org.nustaq.kontraktor.IPromise init​(java.lang.String[] args)
    • authenticate

      public org.nustaq.kontraktor.IPromise<RLJsonAuthResult> authenticate​(java.lang.String user, java.lang.String pwd)
    • createSession

      protected org.nustaq.kontraktor.IPromise<RLJsonAuthResult> createSession​(java.lang.Object customSessionData)
    • getSessionActorClazz

      protected java.lang.Class<? extends RLJsonSession> getSessionActorClazz​(java.lang.Object authData)
    • createServer

      protected void createServer​(RLJsonServer app, java.lang.Class[] CLAZZES)
    • getDClient

      public DataClient getDClient()
    • main

      public static void main​(java.lang.String[] args) throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • startUp

      public static void startUp​(java.lang.String[] args, java.lang.Class appClazz) throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException