Пример #1
0
 private OrleansSiloInstanceManager(string clusterId, string storageConnectionString, ILoggerFactory loggerFactory)
 {
     DeploymentId = clusterId;
     logger       = loggerFactory.CreateLogger <OrleansSiloInstanceManager>();
     storage      = new AzureTableDataManager <SiloInstanceTableEntry>(
         INSTANCE_TABLE_NAME, storageConnectionString, loggerFactory);
 }
Пример #2
0
 private OrleansSiloInstanceManager(string deploymentId, string storageConnectionString)
 {
     DeploymentId = deploymentId;
     logger       = TraceLogger.GetLogger(this.GetType().Name, TraceLogger.LoggerType.Runtime);
     storage      = new AzureTableDataManager <SiloInstanceTableEntry>(
         INSTANCE_TABLE_NAME, storageConnectionString, logger);
 }
 private OrleansSiloInstanceManager(string clusterId, string storageConnectionString, string tableName, ILoggerFactory loggerFactory)
 {
     DeploymentId = clusterId;
     TableName    = tableName;
     logger       = loggerFactory.CreateLogger <OrleansSiloInstanceManager>();
     storage      = new AzureTableDataManager <SiloInstanceTableEntry>(
         tableName, storageConnectionString, loggerFactory);
 }
        async Task IClientMetricsDataPublisher.Init(ClientConfiguration config, IPAddress address, string clientId)
        {
            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);
        }
 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, logger);
     await storage.InitTableAsync().WithTimeout(initTimeout);
 }
 private ClientMetricsTableDataManager(ClientConfiguration config, IPAddress address, Guid clientId)
 {
     deploymentId  = config.DeploymentId;
     this.clientId = clientId.ToString();
     this.address  = address;
     myHostName    = config.DNSHostName;
     logger        = TraceLogger.GetLogger(this.GetType().Name, TraceLogger.LoggerType.Runtime);
     storage       = new AzureTableDataManager <ClientMetricsData>(
         INSTANCE_TABLE_NAME, config.DataConnectionString, logger);
 }
Пример #7
0
 private SiloMetricsTableDataManager(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;
     logger            = TraceLogger.GetLogger(this.GetType().Name, TraceLogger.LoggerType.Runtime);
     storage           = new AzureTableDataManager <SiloMetricsData>(
         INSTANCE_TABLE_NAME, storageConnectionString, logger);
 }
 private OrleansSiloInstanceManager(
     string clusterId,
     ILoggerFactory loggerFactory,
     AzureStorageOperationOptions options)
 {
     DeploymentId = clusterId;
     TableName    = options.TableName;
     logger       = loggerFactory.CreateLogger <OrleansSiloInstanceManager>();
     storage      = new AzureTableDataManager <SiloInstanceTableEntry>(
         options,
         loggerFactory.CreateLogger <AzureTableDataManager <SiloInstanceTableEntry> >());
     this.storagePolicyOptions = options.StoragePolicyOptions;
 }
Пример #9
0
        async Task IStatisticsPublisher.Init(bool isSilo, string storageConnectionString, string clusterId, string address, string siloName, string hostName)
        {
            this.deploymentId = clusterId;
            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);
        }
Пример #10
0
        private StatsTableDataManager(bool isSilo, string storageConnectionString, string deploymentId, string address, string siloName, string hostName)
        {
            logger            = TraceLogger.GetLogger(this.GetType().Name, TraceLogger.LoggerType.Runtime);
            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, logger);
        }