Exemple #1
0
 internal ClientMmap(ShortCircuitReplica replica, MappedByteBuffer map, bool anchored
                     )
 {
     this.replica  = replica;
     this.map      = map;
     this.anchored = anchored;
 }
Exemple #2
0
            public void Visit(int numOutstandingMmaps, IDictionary <ExtendedBlockId, ShortCircuitReplica
                                                                    > replicas, IDictionary <ExtendedBlockId, SecretManager.InvalidToken> failedLoads
                              , IDictionary <long, ShortCircuitReplica> evictable, IDictionary <long, ShortCircuitReplica
                                                                                                > evictableMmapped)
            {
                ShortCircuitReplica replica = replicas[ExtendedBlockId.FromExtendedBlock(block)];

                NUnit.Framework.Assert.IsNotNull(replica);
                NUnit.Framework.Assert.IsFalse(replica.GetSlot().IsValid());
            }
Exemple #3
0
 /// <summary>Close the ClientMmap object.</summary>
 public virtual void Close()
 {
     if (replica != null)
     {
         if (anchored)
         {
             replica.RemoveNoChecksumAnchor();
         }
         replica.Unref();
     }
     replica = null;
 }
 public ShortCircuitReplicaInfo(SecretManager.InvalidToken exc)
 {
     this.replica = null;
     this.exc     = exc;
 }
 public ShortCircuitReplicaInfo(ShortCircuitReplica replica)
 {
     this.replica = replica;
     this.exc     = null;
 }
 public ShortCircuitReplicaInfo()
 {
     this.replica = null;
     this.exc     = null;
 }