Class DataClient

java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<T>
org.nustaq.reallive.client.ClusteredTableSpaceClient<DataClient>
org.nustaq.kontraktor.services.rlclient.DataClient
All Implemented Interfaces:
Serializable, Executor, org.nustaq.kontraktor.monitoring.Monitorable, org.nustaq.reallive.api.TableSpace
Direct Known Subclasses:
DynDataClient

public class DataClient extends org.nustaq.reallive.client.ClusteredTableSpaceClient<DataClient>
Created by ruedi on 15.08.2015. connector actor to rl data cluster
See Also:
  • 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
    protected DataCfg
     
    protected ServiceActor
     
    protected org.nustaq.reallive.server.actors.TableSpaceActor[]
     
    protected HashMap<String,org.nustaq.reallive.api.RealLiveTable>
     

    Fields inherited from class org.nustaq.reallive.client.ClusteredTableSpaceClient

    tableSpaceSharding

    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

    Fields inherited from interface org.nustaq.reallive.api.TableSpace

    USE_BASE_DIR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.nustaq.kontraktor.IPromise
    connect(DataCfg config, org.nustaq.reallive.server.actors.TableSpaceActor[] shards, ServiceActor hostingService)
     
    protected org.nustaq.reallive.client.TableSpaceSharding
    createTableSpaceSharding(org.nustaq.reallive.server.actors.TableSpaceActor[] shards)
     
    org.nustaq.kontraktor.IPromise
    export(String directory)
     
    org.nustaq.kontraktor.IPromise<Integer>
     
    org.nustaq.reallive.server.actors.TableSpaceActor[]
     
    org.nustaq.reallive.api.RealLiveTable
     
    protected org.nustaq.kontraktor.IPromise<Object>
    initTable(org.nustaq.reallive.api.TableDescription desc)
     
    void
    nodeDisconnected(org.nustaq.kontraktor.Actor act)
     
    void
    processSharded(String tableName, org.nustaq.reallive.api.RLPredicate<org.nustaq.reallive.api.Record> predicate, int shardNo, org.nustaq.kontraktor.Callback<org.nustaq.reallive.api.Record> cb)
     
    org.nustaq.reallive.api.RealLiveTable
    tbl(String name)
    shorthand for getTable
    void
    unsubscribe(int subsId)
     

    Methods inherited from class org.nustaq.reallive.client.ClusteredTableSpaceClient

    createOrLoadTable, dropTable, getStats, getTableAsync, getTableDescriptions, getTables, shutDown, stateListener

    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

    • config

      protected DataCfg config
    • hostingService

      protected ServiceActor hostingService
    • shards

      protected org.nustaq.reallive.server.actors.TableSpaceActor[] shards
    • syncTableAccess

      protected HashMap<String,org.nustaq.reallive.api.RealLiveTable> syncTableAccess
  • Constructor Details

    • DataClient

      public DataClient()
  • Method Details

    • connect

      public org.nustaq.kontraktor.IPromise connect(DataCfg config, org.nustaq.reallive.server.actors.TableSpaceActor[] shards, ServiceActor hostingService)
    • createTableSpaceSharding

      protected org.nustaq.reallive.client.TableSpaceSharding createTableSpaceSharding(org.nustaq.reallive.server.actors.TableSpaceActor[] shards)
    • initTable

      protected org.nustaq.kontraktor.IPromise<Object> initTable(org.nustaq.reallive.api.TableDescription desc)
    • getTable

      public org.nustaq.reallive.api.RealLiveTable getTable(String name)
    • tbl

      public org.nustaq.reallive.api.RealLiveTable tbl(String name)
      shorthand for getTable
      Parameters:
      name -
      Returns:
    • getNoShards

      public org.nustaq.kontraktor.IPromise<Integer> getNoShards()
    • nodeDisconnected

      public void nodeDisconnected(org.nustaq.kontraktor.Actor act)
    • getShards

      public org.nustaq.reallive.server.actors.TableSpaceActor[] getShards()
    • unsubscribe

      public void unsubscribe(int subsId)
    • processSharded

      public void processSharded(String tableName, org.nustaq.reallive.api.RLPredicate<org.nustaq.reallive.api.Record> predicate, int shardNo, org.nustaq.kontraktor.Callback<org.nustaq.reallive.api.Record> cb)
    • export

      public org.nustaq.kontraktor.IPromise export(String directory)
      Parameters:
      directory -