public async Task Init(string deploymentId, string storageConnectionString, SiloAddress siloAddress, string siloName, IPEndPoint gateway, string hostName)
 {
     this.deploymentId = deploymentId;
     this.siloAddress  = siloAddress;
     this.siloName     = siloName;
     this.gateway      = gateway;
     myHostName        = hostName;
     storage           = new AzureTableDataManager <SiloMetricsData>(INSTANCE_TABLE_NAME, storageConnectionString, this.loggerFactory);
     await storage.InitTableAsync().WithTimeout(initTimeout);
 }
        async Task IClientMetricsDataPublisher.Init(ClientConfiguration config, IPAddress address, string clientId)
        {
            deploymentId  = config.DeploymentId;
            this.clientId = clientId;
            this.address  = address;
            myHostName    = config.DNSHostName;
            storage       = new AzureTableDataManager <ClientMetricsData>(
                INSTANCE_TABLE_NAME, config.DataConnectionString, this.loggerFactory);

            await storage.InitTableAsync().WithTimeout(initTimeout);
        }
Beispiel #3
0
        async Task IStatisticsPublisher.Init(bool isSilo, string storageConnectionString, string deploymentId, string address, string siloName, string hostName)
        {
            this.deploymentId = deploymentId;
            this.address      = address;
            name        = siloName;
            myHostName  = hostName;
            this.isSilo = isSilo;
            if (!this.isSilo)
            {
                clientEpoch = SiloAddress.AllocateNewGeneration();
            }
            counter = 0;
            var tableName = isSilo ? "OrleansSiloStatistics" : "OrleansClientStatistics";

            tableManager = new AzureTableDataManager <StatsTableData>(tableName, storageConnectionString, this.loggerFactory);
            await tableManager.InitTableAsync().WithTimeout(initTimeout);
        }