Example #1
0
 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);
 }
Example #2
0
 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));
 }
Example #3
0
 public ValuesController(ILivenessCounter <string> counter, Uri serviceUri)
 {
     this.counter = counter;
     proxy        = ActorServiceProxy.Create <IContainerAggregator>(serviceUri, 0);
 }