public virtual void OnOperationInvalidCredentialsFailure(string operationName)
        {
            EhfPerfCountersInstance instance = EhfPerfCounterHandler.GetInstance(operationName);

            if (instance == null)
            {
                return;
            }
            instance.OperationsTotal.Increment();
            instance.InvalidCredentialsFailedOperationsTotal.Increment();
        }
        public virtual void OnOperationContractViolationFailure(string operationName)
        {
            EhfPerfCountersInstance instance = EhfPerfCounterHandler.GetInstance(operationName);

            if (instance == null)
            {
                return;
            }
            instance.OperationsTotal.Increment();
            instance.ContractViolationFailedOperationsTotal.Increment();
        }
        public virtual void OnPerEntryFailures(string operationName, int transientFailureCount, int permanentFailureCount)
        {
            EhfPerfCountersInstance instance = EhfPerfCounterHandler.GetInstance(operationName);

            if (instance == null)
            {
                return;
            }
            instance.TransientEntryFailuresTotal.IncrementBy((long)transientFailureCount);
            instance.PermanentEntryFailuresTotal.IncrementBy((long)permanentFailureCount);
        }
        public virtual void OnOperationSuccessfullyCompleted(string operationName, long latency, int batchSize)
        {
            EhfPerfCountersInstance instance = EhfPerfCounterHandler.GetInstance(operationName);

            if (instance == null)
            {
                return;
            }
            instance.OperationsTotal.Increment();
            instance.SuccessfulOperationsTotal.Increment();
            instance.LastLatency.RawValue = latency;
            instance.AverageLatency.IncrementBy(latency);
            instance.AverageLatencyBase.Increment();
            instance.LastEntryCount.RawValue = (long)batchSize;
            instance.EntryCountTotal.IncrementBy((long)batchSize);
            if (batchSize > 0)
            {
                instance.AverageLatencyPerEntry.IncrementBy(latency / (long)batchSize);
                instance.AverageLatencyPerEntryBase.Increment();
            }
        }
 public EhfConfigTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IProvisioningService provisioningService, IManagementService managementService, EhfADAdapter adapter, EnhancedTimeSpan syncInterval) : base(localServerVersion, config, logSession, perfCounterHandler, provisioningService, managementService, null, adapter, syncInterval)
 {
 }
Пример #6
0
 public EhfRecipientTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IAdminSyncService adminSyncservice, EhfADAdapter adapter, EnhancedTimeSpan syncInterval, EhfSynchronizationProvider provider) : base(localServerVersion, config, logSession, perfCounterHandler, null, null, adminSyncservice, adapter, syncInterval)
 {
     this.provider = provider;
 }
Пример #7
0
 public EhfTargetConnection(int localServerVersion, EhfTargetServerConfig config, EdgeSyncLogSession logSession, EhfPerfCounterHandler perfCounterHandler, IProvisioningService provisioningService, IManagementService managementService, IAdminSyncService adminSyncService, EhfADAdapter adapter, EnhancedTimeSpan syncInterval) : this(localServerVersion, config, syncInterval, logSession)
 {
     this.provisioningService = new EhfProvisioningService(provisioningService, managementService, adminSyncService);
     this.adapter             = adapter;
     this.perfCounterHandler  = perfCounterHandler;
 }