public ProviderZookeeperRegistry(ServerCacheContainer cacheContainer) { _cacheContainer = cacheContainer; _zookeeperInvoker = new ZookeeperInvoker(); _zooKeeper = _zookeeperInvoker.Create(_cacheContainer.Application.RegisterAddress, Constant.ZK_SESSION_TIMEOUT, null); }
public RpcServer() { _cacheContainer = new ServerCacheContainer(); _localCacheService = new LocalCacheService(_section, _cacheContainer); _serializer = SerializerFactory.GetSerializer(_section.Serializer); _transportProvider = new TransportProvider(_cacheContainer, _serializer); _acceptor = _transportProvider.GetAcceptor(); }
public PersistProvider(ServerCacheContainer serverCacheContainer) { this.serverCacheContainer = serverCacheContainer; }
public TransportProvider(ServerCacheContainer serverCacheContainer, ISerializer serializer) : this(serializer) { _serverCacheContainer = serverCacheContainer; }
public AbstractWatcher(ZooKeeper zookeeper, ServerCacheContainer serverCacheContainer, ISerializer serializer) : this(zookeeper, serializer) { _serverCacheContainer = serverCacheContainer; }
public LocalCacheService(ServerSection section, ServerCacheContainer cacheContainer) { _section = section; _cacheContainer = cacheContainer; }
public IRegister GetRegistry(ServerCacheContainer cacheContainer) { return(new ProviderZookeeperRegistry(cacheContainer)); }
public DefaultProviderProcessor(ServerCacheContainer cacheContainer) { _cacheContainer = cacheContainer; }