1 8 package org.ozoneDB.core.storage.gammaStore; 9 10 import java.io.IOException ; 11 import java.io.ObjectInputStream ; 12 import java.io.ObjectOutputStream ; 13 import java.io.Serializable ; 14 15 23 final class ObjectLocation implements Serializable { 24 25 private long oldClusterId; 26 private long oldPosition; 27 28 private long newClusterId; 29 private long newPosition; 30 31 ObjectLocation() { 32 } 33 34 public String toString() { 35 return super.toString() + 36 "; oldClusterId: " + oldClusterId + 37 ", oldPosition: " + oldPosition + 38 ", newClusterId: " + newClusterId + 39 ", newPosition: " + newPosition; 40 } 41 42 final long getOldClusterId() { 43 return oldClusterId; 44 } 45 46 final void setOldClusterId(long oldClusterId) { 47 this.oldClusterId = oldClusterId; 48 } 49 50 final long getOldPosition() { 51 return oldPosition; 52 } 53 54 final void setOldPosition(long oldPosition) { 55 this.oldPosition = oldPosition; 56 } 57 58 final long getNewClusterId() { 59 return newClusterId; 60 } 61 62 final void setNewClusterId(long newClusterId) { 63 this.newClusterId = newClusterId; 64 } 65 66 final long getNewPosition() { 67 return newPosition; 68 } 69 70 final void setNewPosition(long newPosition) { 71 this.newPosition = newPosition; 72 } 73 74 } 75 | Popular Tags |