private static HashSet<Address> GetPartitionOwners(int partitionCount, IClientPartitionService partitionService) { var partitionOwners = new HashSet<Address>(); for (int i = 0; i < partitionCount; i++) { partitionOwners.Add(partitionService.GetPartitionOwner(i)); } return partitionOwners; }
public RepairingHandler(string localUuid, NearCache nearCache, IClientPartitionService partitionService) { _localUuid = localUuid; _nearCache = nearCache; _partitionService = partitionService; _partitionCount = partitionService.GetPartitionCount(); _metaDataContainers = CreateMetadataContainers(_partitionCount); _maxToleratedMissCount = NearCacheManager.GetMaxToleratedMissCount(); }
private static HashSet <Address> GetPartitionOwners(int partitionCount, IClientPartitionService partitionService) { var partitionOwners = new HashSet <Address>(); for (var i = 0; i < partitionCount; i++) { partitionOwners.Add(partitionService.GetPartitionOwner(i)); } return(partitionOwners); }
internal ClientContext(ISerializationService serializationService, IClientClusterService clusterService, IClientPartitionService partitionService, IClientInvocationService invocationService, IClientExecutionService executionService, IClientListenerService listenerService, ProxyManager proxyManager, ClientConfig clientConfig) { this.serializationService = serializationService; this.clusterService = clusterService; this.partitionService = partitionService; this.invocationService = invocationService; this.executionService = executionService; this.listenerService = listenerService; this.proxyManager = proxyManager; this.clientConfig = clientConfig; }
internal ClientContext(ISerializationService serializationService, IClientClusterService clusterService, IClientPartitionService partitionService, IClientInvocationService invocationService, IClientExecutionService executionService, IClientListenerService listenerService, ProxyManager proxyManager, ClientConfig clientConfig) { _serializationService = serializationService; _clusterService = clusterService; _partitionService = partitionService; _invocationService = invocationService; _executionService = executionService; _listenerService = listenerService; _proxyManager = proxyManager; _clientConfig = clientConfig; }