Exemplo n.º 1
0
 /* Start an asynchronous write of buffer contents to block on volume */
 public void startPush() {
   isPinned = true;
   try {
     _disk.startRequest(this, DiskOperationType.WRITE);
   } catch (IllegalArgumentException | IOException e) {
     e.printStackTrace();
   }
   isClean = true;
 }
Exemplo n.º 2
0
 /* Start an asynchronous fetch of associated block from the volume */
 public void startFetch() {
   isPinned = true;
   // fetch
   try {
     _disk.startRequest(this, DiskOperationType.READ);
   } catch (IllegalArgumentException | IOException e) {
     e.printStackTrace();
   }
   isValid = true;
 }