public ProviderZookeeperRegistry(ServerCacheContainer cacheContainer)
        {
            _cacheContainer = cacheContainer;

            _zookeeperInvoker = new ZookeeperInvoker();

            _zooKeeper = _zookeeperInvoker.Create(_cacheContainer.Application.RegisterAddress, Constant.ZK_SESSION_TIMEOUT, null);
        }
Exemple #2
0
        public RpcServer()
        {
            _cacheContainer = new ServerCacheContainer();

            _localCacheService = new LocalCacheService(_section, _cacheContainer);

            _serializer = SerializerFactory.GetSerializer(_section.Serializer);

            _transportProvider = new TransportProvider(_cacheContainer, _serializer);

            _acceptor = _transportProvider.GetAcceptor();
        }
Exemple #3
0
 public PersistProvider(ServerCacheContainer serverCacheContainer)
 {
     this.serverCacheContainer = serverCacheContainer;
 }
Exemple #4
0
 public TransportProvider(ServerCacheContainer serverCacheContainer, ISerializer serializer)
     : this(serializer)
 {
     _serverCacheContainer = serverCacheContainer;
 }
Exemple #5
0
 public AbstractWatcher(ZooKeeper zookeeper, ServerCacheContainer serverCacheContainer, ISerializer serializer)
     : this(zookeeper, serializer)
 {
     _serverCacheContainer = serverCacheContainer;
 }
Exemple #6
0
        public LocalCacheService(ServerSection section, ServerCacheContainer cacheContainer)
        {
            _section = section;

            _cacheContainer = cacheContainer;
        }
Exemple #7
0
 public IRegister GetRegistry(ServerCacheContainer cacheContainer)
 {
     return(new ProviderZookeeperRegistry(cacheContainer));
 }
Exemple #8
0
 public DefaultProviderProcessor(ServerCacheContainer cacheContainer)
 {
     _cacheContainer = cacheContainer;
 }