Exemplo n.º 1
0
        public GlobalSingleInstanceRegistrar(GrainDirectoryPartition partition, Logger logger, GlobalSingleInstanceActivationMaintainer gsiActivationMaintainer, int numRetries)

        {
            this.directoryPartition      = partition;
            this.logger                  = logger;
            this.gsiActivationMaintainer = gsiActivationMaintainer;
            this.numRetries              = numRetries;
        }
 public GlobalSingleInstanceRegistrar(GrainDirectoryPartition partition, Logger logger, GlobalSingleInstanceActivationMaintainer gsiActivationMaintainer, int numRetries)
      
 {
     this.directoryPartition = partition;
     this.logger = logger;
     this.gsiActivationMaintainer = gsiActivationMaintainer;
     this.numRetries = numRetries;
 }
Exemplo n.º 3
0
 public RegistrarManager(GrainDirectoryPartition directoryPartition, GlobalSingleInstanceActivationMaintainer gsiActivationMaintainer, GlobalConfiguration globalConfig, Logger logger)
 {
     this.Register <ClusterLocalRegistration>(new ClusterLocalRegistrar(directoryPartition));
     this.Register <GlobalSingleInstanceRegistration>(
         new GlobalSingleInstanceRegistrar(
             directoryPartition,
             logger,
             gsiActivationMaintainer,
             globalConfig.GlobalSingleInstanceNumberRetries));
 }
 public GlobalSingleInstanceRegistrar(
     LocalGrainDirectory localDirectory,
     Factory <string, Logger> loggerFactory,
     GlobalSingleInstanceActivationMaintainer gsiActivationMaintainer,
     GlobalConfiguration config,
     IInternalGrainFactory grainFactory,
     IMultiClusterOracle multiClusterOracle)
 {
     this.directoryPartition      = localDirectory.DirectoryPartition;
     this.logger                  = loggerFactory(nameof(GlobalSingleInstanceRegistrar));
     this.gsiActivationMaintainer = gsiActivationMaintainer;
     this.numRetries              = config.GlobalSingleInstanceNumberRetries;
     this.grainFactory            = grainFactory;
     this.multiClusterOracle      = multiClusterOracle;
     this.hasMultiClusterNetwork  = config.HasMultiClusterNetwork;
     this.clusterId               = config.ClusterId;
 }
Exemplo n.º 5
0
 public GlobalSingleInstanceRegistrar(
     LocalGrainDirectory localDirectory,
     ILogger <GlobalSingleInstanceRegistrar> logger,
     GlobalSingleInstanceActivationMaintainer gsiActivationMaintainer,
     IInternalGrainFactory grainFactory,
     IMultiClusterOracle multiClusterOracle,
     ILocalSiloDetails siloDetails,
     IOptions <MultiClusterOptions> multiClusterOptions)
 {
     this.directoryPartition      = localDirectory.DirectoryPartition;
     this.logger                  = logger;
     this.gsiActivationMaintainer = gsiActivationMaintainer;
     this.numRetries              = multiClusterOptions.Value.GlobalSingleInstanceNumberRetries;
     this.grainFactory            = grainFactory;
     this.multiClusterOracle      = multiClusterOracle;
     this.hasMultiClusterNetwork  = multiClusterOptions.Value.HasMultiClusterNetwork;
     this.clusterId               = siloDetails.ClusterId;
 }