public ContainerAggregatorActorService(StatefulServiceContext context, ActorTypeInformation actorTypeInfo) : base(context, actorTypeInfo) { this.LoadLiveCounterSettings(); this.containerLivenessCounter = new LivenessCounter <string>(expirationIntervalInSeconds, fuzzIntervalInSeconds); this.ignoreOtherUpdatesEntries = new ConcurrentDictionary <string, Timer>(); this.updateLogQueue = new Queue <KeyValuePair <string, string> >(MaxUpdateLogEntriesToKeep); }
public WebFront(StatelessServiceContext context) : base(context) { this.LoadLiveCounterSettings(); this.counter = new LivenessCounter <string>(expirationIntervalInSeconds, fuzzIntervalInSeconds); nodeName = context.NodeContext.NodeName; serviceUri = ActorNameFormat.GetFabricServiceUri(typeof(IContainerAggregatorActor)); proxy = ActorServiceProxy.Create <IContainerAggregator>(serviceUri, 0); reportTimer = new Timer(this.Report, null, TimeSpan.FromSeconds(reportIntervalInSeconds), TimeSpan.FromSeconds(reportIntervalInSeconds)); }
public ValuesController(ILivenessCounter <string> counter, Uri serviceUri) { this.counter = counter; proxy = ActorServiceProxy.Create <IContainerAggregator>(serviceUri, 0); }